Cargo Features

[dependencies]
concordium-std = { version = "10.1.0", default-features = false, features = ["std", "wasm-test", "internal-wasm-test", "build-schema", "crypto-primitives", "concordium-quickcheck", "debug", "bump_alloc", "p7"] }
default = std

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

std default concordium-quickcheck?

Enables std of concordium-contracts-common

wasm-test internal-wasm-test?

Enables wasm-test of concordium-contracts-common

Affects test_infrastructure::report_error

internal-wasm-test = concordium-quickcheck, wasm-test

Own internal wasm-tests leak out to the smart contracts using this library,
so a separate feature 'internal-wasm-test' is introduced for these.

build-schema

Enables build-schema of concordium-contracts-common

crypto-primitives = ed25519-zebra, secp256k1, sha2, sha3
concordium-quickcheck internal-wasm-test? = getrandom, quickcheck, std

Enables concordium-quickcheck of concordium-contracts-common

Affects test_infrastructure::concordium_qc, test_infrastructure::concordium_qc

debug

Affects concordium-std::debug_print, prims::debug_print

bump_alloc

Affects concordium-std::bump_alloc

p7

p7 enables support for functionality introduced in protocol version 7.

Affects traits::HasHost.contract_module_reference, traits::HasHost.contract_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.

sha2 crypto-primitives?
sha3 crypto-primitives?
secp256k1 crypto-primitives?

Enables secp256k1 ^0.22

ed25519-zebra crypto-primitives?

Enables ed25519-zebra ^2.2

quickcheck concordium-quickcheck?
getrandom concordium-quickcheck?