[package] name = "casper-types" version = "4.0.2" # 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/CasperLabs/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" blake2 = { version = "0.9.0", default-features = false } datasize = { version = "0.2.4", 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"], optional = true } hex = { version = "0.4.2", default-features = false, features = ["alloc"] } hex_fmt = "0.3.0" humantime = { version = "2", optional = true } k256 = { version = "0.13.3", default-features = false, features = ["ecdsa", "sha256"] } num = { version = "0.4.0", default-features = false, features = ["alloc"] } num-derive = { version = "0.3.0", default-features = false } num-integer = { version = "0.1.42", default-features = false } num-rational = { version = "0.4.0", default-features = false } 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.5", features = ["preserve_order"], optional = true } 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 } uint = { version = "0.9.0", default-features = false } untrusted = { version = "0.7.1", optional = true } version-sync = { version = "0.9", optional = true } [dev-dependencies] 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"] std = ["derp", "getrandom/std", "humantime", "once_cell", "pem", "serde_json/preserve_order", "thiserror", "untrusted"] testing = ["proptest", "proptest-derive", "rand_pcg", "strum"] # DEPRECATED - use "testing" instead of "gens". gens = ["testing"] [[bench]] name = "bytesrepr_bench" harness = false