[package] name = "tor-persist" version = "0.10.1" authors = ["The Tor Project, Inc.", "Nick Mathewson "] edition = "2021" rust-version = "1.70" license = "MIT OR Apache-2.0" homepage = "https://gitlab.torproject.org/tpo/core/arti/-/wikis/home" description = "Persistent state for the Arti Tor implementation" keywords = ["tor", "arti"] categories = ["config"] repository = "https://gitlab.torproject.org/tpo/core/arti.git/" [features] # Enable the state_dir module state-dir = ["__is_experimental", "amplify", "fslock-guard"] # Enable testing-only APIs. APIs under this feature are not # covered by semver. testing = ["__is_experimental"] full = ["fs-mistrust/full", "tor-error/full", "fslock-guard?/full"] experimental = ["state-dir", "testing"] __is_experimental = [] [dependencies] amplify = { version = "4", default-features = false, features = ["derive"], optional = true } derive-adhoc = "0.8" derive_more = "0.99.3" filetime = { version = "0.2", default-features = false } fs-mistrust = { path = "../fs-mistrust", version = "0.7.7", features = ["walkdir"] } fslock-guard = { path = "../fslock-guard", version = "0.1.1", optional = true } itertools = "0.12.0" paste = "1" sanitize-filename = "0.5.0" serde = { version = "1.0.103", features = ["derive"] } serde_json = "1.0.50" thiserror = "1" tor-error = { path = "../tor-error", version = "0.6.0", features = ["tracing"] } tracing = "0.1.36" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] fslock = { version = "0.2.0" } [dev-dependencies] anyhow = { version = "1.0.23" } derive-adhoc = "0.8" itertools = "0.12.0" tempfile = "3" test-temp-dir = { version = "0.2.0", path = "../test-temp-dir" } tracing-test = "0.2.4" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "docsrs"]