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

Includes the ABI 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 abi1 = include_abi!("bin_name");

// Another package
let abi2 = include_abi!("/path/to/package", "bin_name");