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

Includes the schema 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 schema1 = include_schema!("bin_name");

// Another package
let schema2 = include_schema!("/path/to/package", "bin_name");