Cargo Features

[dependencies]
ac-node-api = { version = "1.16.0", default-features = false, features = ["disable_target_static_assertions", "std", "mocks"] }
default = std

The std feature is set by default whenever ac-node-api is added without default-features = false somewhere in the dependency tree.

disable_target_static_assertions

To support no_std builds in non-32 bit environments.

Enables disable_target_static_assertions of sp-runtime-interface

std default

Enables either and std of bitvec and parity-scale-codec

bitvec:

The standard library includes the allocator.

and std of sp-core, sp-runtime, sp-runtime-interface, and sp-storage

sp-core:

substrate

and std of frame-metadata ^16.0, hex, log, scale-info, serde, serde_json, and sp-application-crypto

sp-application-crypto:

need to add this for no_std

mocks

Enable import of test_utils also outside of crate (feature test does not allow to do so).