Skip to content

Commit b3e356c

Browse files
committed
f
1 parent 38e8dbf commit b3e356c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

chisel/src/driver.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use libchisel::{
1717
checkfloat::CheckFloat, checkstartfunc::CheckStartFunc, deployer::Deployer,
1818
dropsection::DropSection, remapimports::RemapImports, remapstart::RemapStart, repack::Repack,
1919
snip::Snip, trimexports::TrimExports, trimstartfunc::TrimStartFunc,
20-
verifyexports::VerifyExports, verifyimports::VerifyImports, Module, ModulePreset,
20+
verifyexports::VerifyExports, verifyimports::VerifyImports, WasmModule, ModulePreset,
2121
ModuleTranslator, ModuleValidator,
2222
};
2323

@@ -161,7 +161,7 @@ impl ChiselDriver {
161161
};
162162

163163
// Deserialize the Wasm binary and parse its names section.
164-
let mut wasm = match Module::from_bytes(wasm_raw) {
164+
let mut wasm = match WasmModule::from_bytes(wasm_raw) {
165165
Ok(wasm) => {
166166
chisel_debug!(1, "Successfully deserialized Wasm module");
167167
// TODO: Make this error recoverable
@@ -216,7 +216,7 @@ impl ChiselDriver {
216216
&mut self,
217217
name: String,
218218
module: ModuleConfig,
219-
wasm: &mut Module,
219+
wasm: &mut WasmModule,
220220
) -> Result<ModuleResult, DriverError> {
221221
let result = match name.as_str() {
222222
"checkfloat" => {

chisel/src/result.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::path::PathBuf;
1515

1616
use ansi_term::Colour::{Green, Red, Yellow};
1717

18-
use libchisel::{Module, ModuleError};
18+
use libchisel::{WasmModule, ModuleError};
1919

2020
#[derive(Clone)]
2121
/// Main result structure returned by ChiselDriver, containing a manifest of modules executed and
@@ -28,7 +28,7 @@ pub struct RulesetResult {
2828
ruleset_name: String,
2929
results: Vec<ModuleResult>,
3030
output_path: PathBuf,
31-
output_module: Option<Module>,
31+
output_module: Option<WasmModule>,
3232
}
3333

3434
#[derive(Clone)]
@@ -76,7 +76,7 @@ impl RulesetResult {
7676
self.output_path = path;
7777
}
7878

79-
pub fn set_output_module(&mut self, module: Module) {
79+
pub fn set_output_module(&mut self, module: WasmModule) {
8080
self.output_module = Some(module);
8181
}
8282

@@ -204,7 +204,7 @@ mod tests {
204204
fn writer_success_to_stdout() {
205205
let mut ruleset_result = {
206206
let mut result = RulesetResult::new("Test".to_string());
207-
let module = Module::default();
207+
let module = WasmModule::default();
208208
result.set_output_module(module);
209209
result.set_output_path(PathBuf::from("/dev/stdout"));
210210
result
@@ -225,7 +225,7 @@ mod tests {
225225
fn writer_deny_raw_binary_to_stdout() {
226226
let mut ruleset_result = {
227227
let mut result = RulesetResult::new("Test".to_string());
228-
let module = Module::default();
228+
let module = WasmModule::default();
229229
result.set_output_module(module);
230230
result.set_output_path(PathBuf::from("/dev/stdout"));
231231
result
@@ -239,7 +239,7 @@ mod tests {
239239
fn writer_invalid_mode() {
240240
let mut ruleset_result = {
241241
let mut result = RulesetResult::new("Test".to_string());
242-
let module = Module::default();
242+
let module = WasmModule::default();
243243
result.set_output_module(module);
244244
result.set_output_path(PathBuf::from("/dev/stdout"));
245245
result

0 commit comments

Comments
 (0)