mirror of
https://github.com/pezkuwichain/wasm-instrument.git
synced 2026-04-29 03:17:59 +00:00
add example
This commit is contained in:
+2
-1
@@ -410,7 +410,8 @@ impl Module {
|
||||
Ok(res)
|
||||
}
|
||||
|
||||
fn generate(&self) -> Result<elements::Module, Error> {
|
||||
/// Generate raw format representation.
|
||||
pub fn generate(&self) -> Result<elements::Module, Error> {
|
||||
use self::ImportedOrDeclared::*;
|
||||
|
||||
let mut idx = 0;
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ pub use gas::inject_gas_counter;
|
||||
pub use optimizer::{optimize, Error as OptimizerError};
|
||||
pub use pack::{pack_instance, Error as PackingError};
|
||||
pub use runtime_type::inject_runtime_type;
|
||||
pub use graph::{Module, parse, generate};
|
||||
pub use graph::{Module, parse as graph_parse, generate as graph_generate};
|
||||
pub use ref_list::{RefList, Entry, EntryRef, DeleteTransaction};
|
||||
|
||||
pub struct TargetSymbols {
|
||||
|
||||
Reference in New Issue
Block a user