[package] name = "safety-rules" version = "0.2.7" authors = ["Aptos Labs "] description = "Aptos safety rules" repository = "https://github.com/aptos-labs/aptos-core" homepage = "https://aptoslabs.com" license = "Apache-2.0" edition = "2018" [dependencies] once_cell = "1.10.0" proptest = { version = "1.0.0", optional = true } rand = { version = "0.7.3", default-features = false } serde = { version = "1.0.137", default-features = false } serde_json = "1.0.81" thiserror = "1.0.31" aptos-config = { version = "0.2.1", path = "../../config" } aptos-crypto = { version = "0.2.1", path = "../../crates/aptos-crypto" } aptos-global-constants = { version = "0.2.1", path = "../../config/global-constants" } aptos-infallible = { version = "0.2.1", path = "../../crates/aptos-infallible" } aptos-logger = { version = "0.2.1", path = "../../crates/aptos-logger" } aptos-proptest-helpers = { version = "0.2.1", path = "../../crates/aptos-proptest-helpers", optional = true } aptos-secure-net = { version = "0.2.1", path = "../../secure/net" } aptos-secure-push-metrics = { version = "0.2.1", path = "../../secure/push-metrics" } aptos-secure-storage = { version = "0.2.1", path = "../../secure/storage" } aptos-temppath = { version = "0.2.1", path = "../../crates/aptos-temppath" } aptos-types = { version = "0.2.1", path = "../../types" } aptos-vault-client = { version = "0.2.1", path = "../../secure/storage/vault" } consensus-types = { version = "0.2.1", path = "../consensus-types" } crash-handler = { version = "0.2.1", path = "../../crates/crash-handler", package = "crash-handler-on-you" } [dev-dependencies] criterion = "0.3.5" proptest = "1.0.0" rusty-fork = "0.3.0" tempfile = "3.3.0" aptos-config = { version = "0.2.1", path = "../../config", features = [ "fuzzing" ] } aptos-proptest-helpers = { version = "0.2.1", path = "../../crates/aptos-proptest-helpers" } aptos-secure-storage = { version = "0.2.1", path = "../../secure/storage", features = [ "testing" ] } consensus-types = { version = "0.2.1", path = "../consensus-types", features = [ "fuzzing" ] } [[bench]] name = "safety_rules" harness = false required-features = ["testing"] [[test]] name = "binary" required-features = ["testing"] [features] default = [] fuzzing = [ "consensus-types/fuzzing", "aptos-config/fuzzing", "proptest", "aptos-proptest-helpers" ] testing = ["aptos-secure-storage/testing"]