[package] name = "casper-types" version = "5.0.0" # when updating, also update 'html_root_url' in lib.rs authors = ["Fraser Hutchison "] edition = "2021" description = "Types shared by many casper crates for use on the Casper network." readme = "README.md" documentation = "https://docs.rs/casper-types" homepage = "https://casperlabs.io" repository = "https://github.com/casper-network/casper-node/tree/master/types" license = "Apache-2.0" [dependencies] base16 = { version = "0.2.1", default-features = false, features = ["alloc"] } base64 = { version = "0.13.0", default-features = false } bitflags = "1" bincode = { version = "1.3.1", optional = true } blake2 = { version = "0.9.0", default-features = false } datasize = { version = "0.2.15", optional = true } derp = { version = "0.0.14", optional = true } ed25519-dalek = { version = "2.1.1", default-features = false, features = ["alloc", "zeroize"] } getrandom = { version = "0.2.0", features = ["rdrand", "js"], optional = true } hex = { version = "0.4.2", default-features = false, features = ["alloc"] } hex_fmt = "0.3.0" humantime = { version = "2", optional = true } itertools = { version = "0.10.3", default-features = false } libc = { version = "0.2.146", optional = true, default-features = false } k256 = { version = "0.13.1", default-features = false, features = ["ecdsa", "sha256"] } num = { version = "0.4.0", default-features = false, features = ["alloc"] } num-derive = { version = "0.4.2", default-features = false } num-integer = { version = "0.1.42", default-features = false } num-rational = { version = "0.4.0", default-features = false, features = ["serde"] } num-traits = { version = "0.2.10", default-features = false } once_cell = { version = "1.5.2", optional = true } pem = { version = "0.8.1", optional = true } proptest = { version = "1.0.0", optional = true } proptest-derive = { version = "0.3.0", optional = true } rand = { version = "0.8.3", default-features = false, features = ["small_rng"] } rand_pcg = { version = "0.3.0", optional = true } schemars = { version = "0.8.21", features = ["preserve_order"], optional = true } serde-map-to-array = "1.1.0" serde = { version = "1", default-features = false, features = ["alloc", "derive"] } serde_bytes = { version = "0.11.5", default-features = false, features = ["alloc"] } serde_json = { version = "1.0.59", default-features = false, features = ["alloc"] } strum = { version = "0.24", features = ["derive"], optional = true } thiserror = { version = "1", optional = true } tracing = { version = "0.1.37", default-features = false } uint = { version = "0.9.0", default-features = false } untrusted = { version = "0.7.1", optional = true } version-sync = { version = "0.9", optional = true } derive_more = "0.99.17" [dev-dependencies] base16 = { version = "0.2.1", features = ["std"] } bincode = "1.3.1" criterion = "0.3.5" derp = "0.0.14" getrandom = "0.2.0" humantime = "2" once_cell = "1.5.2" openssl = "0.10.66" pem = "0.8.1" proptest = "1.0.0" proptest-derive = "0.3.0" proptest-attr-macro = "1.0.0" rand = "0.8.3" rand_pcg = "0.3.0" serde_json = "1" serde_test = "1" strum = { version = "0.24", features = ["derive"] } tempfile = "3.4.0" thiserror = "1" untrusted = "0.7.1" [features] json-schema = ["once_cell", "schemars", "serde-map-to-array/json-schema"] testing = ["proptest", "proptest-derive", "rand/default", "rand_pcg", "strum", "bincode", "thiserror", "getrandom", "derp"] # Includes a restricted set of std lib functionality suitable for usage e.g. in a JS environment when compiled to Wasm. std = ["base16/std", "derp", "getrandom/std", "humantime", "itertools/use_std", "libc", "once_cell", "pem", "serde_json/preserve_order", "thiserror", "untrusted"] # Includes a complete set of std lib functionality, including filesystem I/O operations. std-fs-io = ["std"] # DEPRECATED - use "testing" instead of "gens". gens = ["testing"] [[bench]] name = "bytesrepr_bench" harness = false required-features = ["testing"] [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]