[package]
edition = "2024"
rust-version = "1.100.0"
name = "ic-storage"
version = "0.76.2"
build = "build.rs"
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Experimental scoped native collections and portable recovery for the Internet Computer"
readme = "README.md"
license-file = "LICENSE.md"
repository = "https://github.com/dragginzgame/ic-storage"
[package.metadata.cargo-machete]
ignored = ["toko-tooling"]
[features]
checkpoint = []
derive = ["dep:ic-storage-derive"]
map = ["dep:sha2"]
ordered = ["dep:sha2"]
platform = [
"records",
"dep:ic-platform-runtime",
]
records = [
"checkpoint",
"dep:sha2",
]
retained = ["ordered"]
retained-build = [
"dep:wasm-encoder",
"dep:wasmparser",
]
[lib]
name = "ic_storage"
path = "src/lib.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[[test]]
name = "map_firehose"
path = "tests/map_firehose.rs"
[dependencies.ic-storage-derive]
version = "0.76.2"
optional = true
[dependencies.sha2]
version = "0.11.1"
optional = true
default-features = false
[dependencies.wasm-encoder]
version = "0.263.0"
features = [
"std",
"wasmparser",
]
optional = true
default-features = false
[dependencies.wasmparser]
version = "0.263.0"
features = [
"std",
"validate",
"features",
]
optional = true
default-features = false
[target."cfg(any())".dev-dependencies.toko-tooling]
version = "=0.44.11"
[target.'cfg(target_arch = "wasm32")'.dependencies.ic-platform-runtime]
version = "0.23.17"
features = ["system-raw"]
optional = true
default-features = false
[lints.cargo]
missing_lints_inheritance = "deny"
unknown_lints = "deny"
unused_dependencies = "deny"
unused_workspace_dependencies = "deny"
unused_workspace_package_fields = "deny"
[lints.clippy]
missing_panics_doc = "warn"
must_use_candidate = "warn"
needless_pass_by_value = "warn"
redundant_clone = "warn"
too_many_lines = "allow"
wildcard_imports = "warn"
[lints.clippy.all]
level = "warn"
priority = -2
[lints.clippy.correctness]
level = "deny"
priority = -1
[lints.rust]
dead_code = "deny"
missing_docs = "warn"
unfulfilled_lint_expectations = "deny"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"
[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_markdown_table = "deny"