Skip to content

Commit 0cb6db5

Browse files
committed
f
1 parent c5b91df commit 0cb6db5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

chisel/src/driver.rs

+3-3
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

@@ -144,7 +144,7 @@ impl ChiselDriver {
144144
};
145145

146146
// Deserialize the Wasm binary and parse its names section.
147-
let mut wasm = match Module::from_bytes(wasm_raw) {
147+
let mut wasm = match WasmModule::from_bytes(wasm_raw) {
148148
Ok(wasm) => {
149149
chisel_debug!(1, "Successfully deserialized Wasm module");
150150
// TODO: Make this error recoverable
@@ -199,7 +199,7 @@ impl ChiselDriver {
199199
&mut self,
200200
name: String,
201201
module: ModuleConfig,
202-
wasm: &mut Module,
202+
wasm: &mut WasmModule,
203203
) -> Result<ModuleResult, DriverError> {
204204
let result = match name.as_str() {
205205
"checkfloat" => {

chisel/src/result.rs

+6-6
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)