macro_rules! include_code {
    ($bin_name: expr) => { ... };
    ($package_dir: expr, $bin_name: expr) => { ... };
}
Expand description

Includes the WASM file of a Scrypto package.

Notes:

  • This macro will NOT compile the package;
  • The binary name is normally the package name with - replaced with _.

Example

use scrypto::prelude::*;

// This package
let wasm1 = include_code!("bin_name");

// Another package
let wasm2 = include_code!("/path/to/package", "bin_name");