Cargo Features

[dependencies]
polymesh-api-client = { version = "3.4.0", default-features = false, features = ["std", "wasm", "type_info", "serde", "v12", "v13", "v14", "utoipa"] }
default = serde, std, type_info, v12, v13, v14

These default features are set whenever polymesh-api-client is added without default-features = false somewhere in the dependency tree.

std default

Enables std of parity-scale-codec, frame-metadata =15.1.0, scale-info, sp-arithmetic ^16.0, sp-core ^21.0, sp-runtime ^24.0, sp-std ^8.0, and sp-weights ^20.0

parity-scale-codec:

substrate

Affects signer::DefaultSigner

wasm = v14

Enables web of subxt-signer ^0.32 and full_crypto of sp-application-crypto ^23.0

sp-application-crypto:

This feature enables all crypto primitives for no_std builds like microcontrollers or Intel SGX. For the regular wasm runtime builds this should not be used.

type_info default = scale-info, serde

Enables scale-info of primitive-types

Affects polymesh-api-client::type_def, polymesh-api-client::type_codec, polymesh-api-client::schema, polymesh-api-client::metadata

serde default type_info = impl-serde, serde-big-array

Enables serde of hex, impl-serde of primitive-types, impl-serde and serde of sp-core ^21.0, serde of sp-runtime ^24.0 and sp-weights ^20.0 and serde of sp-application-crypto ^23.0 and sp-arithmetic ^16.0

sp-application-crypto:

Serde support without relying on std features.

Affects basic_types::AccountTraits, block::block_number, client::RuntimeVersion.extra, transaction::RuntimeTraits

v12 default

Enables v12 of frame-metadata =15.1.0

v13 default

Enables v13 of frame-metadata =15.1.0

v14 default wasm?

Enables v14 of frame-metadata =15.1.0

Affects schema::is_type_compact, schema::get_type_name

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.

impl-serde serde

Enables impl-serde ^0.3.1

serde-big-array serde

Enables serde-big-array ^0.4.1

scale-info std type_info
utoipa implicit feature

Enables utoipa

utoipa:

Compile time generated OpenAPI documentation for Rust