unc-sdk-macros 0.7.4

Main macro of the library for writing UNC smart contracts.
Documentation
1
2
3
4
5
6
7
8
9
10
fn main() {
    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/unc/cargo-unc");
        }
    }
}