[package]
edition = "2024"
rust-version = "1.88.0"
name = "ic-memory"
version = "0.14.3"
authors = ["borovan <84897664+borovan@users.noreply.github.com>"]
build = false
exclude = ["images/dont-overwrite.png"]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Durable stable-memory allocation governance for Internet Computer canisters"
homepage = "https://github.com/dragginzgame/ic-memory"
documentation = "https://docs.rs/ic-memory"
readme = "README.md"
keywords = [
"ic-stable-structures",
"memory-id",
"registry",
"canister",
"icp",
]
categories = [
"wasm",
"data-structures",
]
license = "MIT"
repository = "https://github.com/dragginzgame/ic-memory"
[lib]
name = "ic_memory"
path = "src/lib.rs"
[[example]]
name = "allocation_measurements"
path = "examples/allocation_measurements.rs"
[[example]]
name = "key_only"
path = "examples/key_only.rs"
[[example]]
name = "recovered_admission"
path = "examples/recovered_admission.rs"
[[example]]
name = "wasm-admission-size-probe"
crate-type = ["cdylib"]
path = "examples/wasm_admission_size_probe.rs"
[[example]]
name = "wasm-core-size-probe"
crate-type = ["cdylib"]
path = "examples/wasm_core_size_probe.rs"
[[example]]
name = "wasm-diagnostics-size-probe"
crate-type = ["cdylib"]
path = "examples/wasm_diagnostics_size_probe.rs"
[[example]]
name = "wasm-key-only-size-probe"
crate-type = ["cdylib"]
path = "examples/wasm_key_only_size_probe.rs"
[[test]]
name = "compile_fail"
path = "tests/compile_fail.rs"
[[test]]
name = "default_config"
path = "tests/default_config.rs"
[[test]]
name = "default_custom_policy"
path = "tests/default_custom_policy.rs"
[[test]]
name = "memory_runtime"
path = "tests/memory_runtime.rs"
[[test]]
name = "runtime_macros"
path = "tests/runtime_macros.rs"
[dependencies.ciborium]
version = "0.2.2"
[dependencies.ctor]
version = "1.0"
[dependencies.ic-stable-structures]
version = "=0.7.2"
[dependencies.serde]
version = "1.0"
features = [
"alloc",
"derive",
]
default-features = false
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.trybuild]
version = "1.0.121"
[lints.clippy]
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
enum_variant_names = "allow"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "warn"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "warn"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
redundant_clone = "warn"
semicolon_if_nothing_returned = "warn"
significant_drop_tightening = "allow"
struct_field_names = "allow"
uninlined_format_args = "warn"
use_self = "warn"
used_underscore_binding = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[profile.wasm-size]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
inherits = "release"
strip = "symbols"