fn make_do_nothing_with_start() -> Vec<u8> {
    let module = builder::module()
        .function()
        // A signature with 0 params and no return type
        .signature()
        .build()
        // main() marks given function as a start() node
        .main()
        .body()
        .build()
        .build()
        // Export above function
        .export()
        .field(DEFAULT_ENTRY_POINT_NAME)
        .build()
        // Memory section is mandatory
        .memory()
        .build()
        .build();

    parity_wasm::serialize(module).expect("should serialize")
}
/// Creates minimal session code that does nothing but has start node
Creates minimal session code that does nothing but has start node
Creates minimal session code that does nothing but has start node
fn make_do_nothing_with_start() -> Vec<u8> {
    let module = builder::module()
        .function()
        // A signature with 0 params and no return type
        .signature()
        .build()
        // main() marks given function as a start() node
        .main()
        .body()
        .build()
        .build()
        // Export above function
        .export()
        .field(DEFAULT_ENTRY_POINT_NAME)
        .build()
        // Memory section is mandatory
        .memory()
        .build()
        .build();
    parity_wasm::serialize(module).expect("should serialize")
}
fn make_do_nothing_with_start ( ) -> Vec < u8 > { let module = builder :: module ( ) . function ( ) // A signature with 0 params and no return type . signature ( ) . build ( ) // main() marks given function as a start() node . main ( ) . body ( ) . build ( ) . build ( ) // Export above function . export ( ) . field ( DEFAULT_ENTRY_POINT_NAME ) . build ( ) // Memory section is mandatory . memory ( ) . build ( ) . build ( ) ; parity_wasm :: serialize ( module ) . expect ( " " ) }
Creates minimal session code that does nothing but has start node
Creates minimal session code that does nothing but has start node