diff --git a/wasm-ast/src/lib.rs b/wasm-ast/src/lib.rs index 96401e5..0dd2259 100644 --- a/wasm-ast/src/lib.rs +++ b/wasm-ast/src/lib.rs @@ -1,4 +1,3 @@ pub mod builder; pub mod node; pub mod visit; -pub mod writer; diff --git a/wasm-ast/src/writer.rs b/wasm-ast/src/writer.rs deleted file mode 100644 index ec5426b..0000000 --- a/wasm-ast/src/writer.rs +++ /dev/null @@ -1,19 +0,0 @@ -use std::io::{Result, Write}; - -use parity_wasm::elements::Module; - -pub type Writer<'a> = &'a mut dyn Write; - -pub trait Transpiler<'a> { - fn new(wasm: &'a Module) -> Self - where - Self: Sized; - - /// # Errors - /// Returns `Err` if writing to `Writer` failed. - fn runtime(writer: Writer) -> Result<()>; - - /// # Errors - /// Returns `Err` if writing to `Writer` failed. - fn transpile(&self, writer: Writer) -> Result<()>; -}