Cargo Features

[dependencies]
tezos-smart-rollup-encoding = { version = "0.2.2", default-features = false, features = ["alloc", "crypto", "bls", "tezos-encoding", "proto-alpha", "testing"] }
default = alloc, bls, crypto, tezos-encoding

These default features are set whenever tezos-smart-rollup-encoding is added without default-features = false somewhere in the dependency tree.

alloc default = crypto, hex, num-bigint, num-traits, thiserror

Affects pages::make_preimage_hash, tezos-smart-rollup-encoding::entrypoint, tezos-smart-rollup-encoding::inbox, tezos-smart-rollup-encoding::michelson, tezos-smart-rollup-encoding::outbox, michelson::ticket

crypto default alloc testing? = tezos_crypto_rs

Affects dac::certificate, tezos-smart-rollup-encoding::contract, tezos-smart-rollup-encoding::public_key, tezos-smart-rollup-encoding::public_key_hash, tezos-smart-rollup-encoding::smart_rollup

bls default

Enables bls of tezos_crypto_rs =0.5.2

tezos-encoding default = tezos_data_encoding, tezos_data_encoding_derive, time
proto-alpha

Enables proto-alpha of tezos-smart-rollup-core and tezos-smart-rollup-host

Affects outbox::OutboxMessageWhitelistUpdate, outbox::InvalidWhitelist

testing = crypto, num-bigint, num-traits, proptest

Affects contract::testing, tezos-smart-rollup-encoding::testing, ticket::testing

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.

tezos_data_encoding tezos-encoding

Enables tezos_data_encoding =0.5.2

tezos_data_encoding_derive tezos-encoding

Enables tezos_data_encoding_derive =0.5.2

tezos_crypto_rs bls crypto

Enables tezos_crypto_rs =0.5.2

num-bigint alloc testing?

Enables num-bigint ^0.3

num-traits alloc testing?
time tezos-encoding
hex alloc
thiserror alloc
proptest testing?