Cargo Features

casper-types has no features set by default.

[dependencies]
casper-types = { version = "5.0.1", features = ["json-schema", "testing", "std", "std-fs-io", "gens", "version-sync", "datasize"] }
json-schema = once_cell, schemars

Enables json-schema of serde-map-to-array

serde-map-to-array:

Provide support for JSON schema documentation.

testing gens? = bincode, derp, getrandom, proptest, proptest-derive, rand_pcg, strum, thiserror

Enables rand ^0.8.3

std std-fs-io? = derp, humantime, libc, once_cell, pem, thiserror, untrusted

Includes a restricted set of std lib functionality suitable for usage e.g. in a JS environment when compiled to Wasm.

Enables use_std of itertools ^0.10.3, preserve_order of serde_json, std of base16 and getrandom ^0.2.0

Affects casper-types::OS_PAGE_SIZE

std-fs-io = std

Includes a complete set of std lib functionality, including filesystem I/O operations.

gens = testing

DEPRECATED - use "testing" instead of "gens".

version-sync

Enables version-sync

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.

bincode testing?

Enables bincode ^1.3.1

datasize implicit feature

Enables datasize

datasize:

A simplified heap memory size estimator

derp std? testing?

Enables derp ^0.0.14

getrandom std? testing?

Enables getrandom ^0.2.0

humantime std?
libc std?
once_cell json-schema? std?
pem std?

Enables pem ^0.8.1

proptest-derive testing?
rand_pcg testing?

Enables rand_pcg ^0.3.0

schemars json-schema?
strum testing?
thiserror std? testing?

Enables thiserror ^1

untrusted std?

Enables untrusted ^0.7.1

proptest testing?