near-sdk-macros 5.7.1

Main macro of the library for writing NEAR smart contracts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
fn main() {
    println!("cargo:rustc-check-cfg=cfg(feature, values(\"__abi-embed-checked\"))");
    if cfg!(feature = "__abi-embed") {
        if option_env!("CARGO_NEAR_ABI_PATH").is_some() {
            println!("cargo:rustc-cfg=feature=\"__abi-embed-checked\"");
        } else {
            println!("cargo:warning=the `__abi-embed` feature flag is private and should not be activated manually, ignoring");
            println!("cargo:warning=\x1b[1mhelp\x1b[0m: consider using https://github.com/near/cargo-near");
        }
    }
}