Cargo Features
[dependencies]
polymesh-api = { version = "3.9.1", default-features = false, features = ["polymesh_v6", "polymesh_v7", "download_metadata", "std", "rpc", "v14", "ink", "type_info", "wasm", "serde", "serde_json"] }
- default = polymesh_v6, rpc, serde, std, v14
-
These default features are set whenever
polymesh-api
is added without
somewhere in the dependency tree.default-features = false - polymesh_v6 default
- polymesh_v7
- download_metadata
-
Download the chain metadata from a RPC node.
Enables download_metadata of polymesh-api-codegen-macro
- std default
-
Enables std of sp-arithmetic ^21.0
substrate
and std of polymesh-api-codegen-macro, optional ink ^4.3, optional polymesh-api-client, optional polymesh-api-ink, and optional scale-info
polymesh-api-ink:
For Ink! Smart Contract support.
- rpc default wasm? = async-trait, polymesh-api-client
- v14 default wasm?
-
Enables v14 of polymesh-api-client and polymesh-api-codegen-macro
- ink = polymesh-api-ink, type_info
-
Enables ink ^4.3, ink, no_std and v14 of polymesh-api-codegen-macro
- type_info ink? = scale-info
-
Enables type_info of optional polymesh-api-client
- wasm = rpc, v14
-
Enables wasm of polymesh-api-client, no_std of polymesh-api-codegen-macro
- serde default = serde-big-array
-
Enables serde, serde of sp-arithmetic ^21.0, serde of parity-scale-codec and polymesh-api-client
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- polymesh-api-client rpc serde v14 wasm?
- polymesh-api-ink ink?
- scale-info type_info?
- async-trait rpc
-
Enables async-trait
RPC Client needs these.
- serde-big-array serde
-
Enables serde-big-array ^0.4.1
- serde_json implicit feature
-
Enables serde_json
serde_json:
A JSON serialization file format