[package]
edition = "2024"
rust-version = "1.100.0"
name = "ic-wire"
version = "0.25.0"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bounded Serde/Postcard encoding with host schema and TypeScript generation"
readme = "README.md"
license-file = "LICENSE.md"
repository = "https://github.com/dragginzgame/ic-wire"
[package.metadata.cargo-machete]
ignored = ["toko-tooling"]
[features]
derive = [
"typescript",
"dep:ic-wire-derive",
]
platform-types = [
"typescript",
"dep:ic-platform-types",
]
typescript = ["dep:serde_json"]
[lib]
name = "ic_wire"
path = "src/lib.rs"
[[test]]
name = "decode_tests"
path = "tests/decode_tests.rs"
[[test]]
name = "derive_tests"
path = "tests/derive_tests.rs"
[[test]]
name = "encode_tests"
path = "tests/encode_tests.rs"
[[test]]
name = "fields_tests"
path = "tests/fields_tests.rs"
[[test]]
name = "framing_tests"
path = "tests/framing_tests.rs"
[[test]]
name = "packed_tests"
path = "tests/packed_tests.rs"
[[test]]
name = "schema"
path = "tests/schema.rs"
[dependencies.bytemuck]
version = "1.25.2"
features = ["must_cast"]
default-features = false
[dependencies.postcard]
version = "1.1.3"
features = ["alloc"]
default-features = false
[dependencies.serde]
version = "1.0.229"
features = ["alloc"]
default-features = false
[dependencies.serde_bytes]
version = "0.11.19"
features = ["alloc"]
default-features = false
[dev-dependencies.serde]
version = "1.0.229"
features = [
"alloc",
"derive",
]
default-features = false
[dev-dependencies.toko-tooling]
version = "=0.45.6"
[target.'cfg(not(target_family = "wasm"))'.dependencies.ic-platform-types]
version = "0.21.2"
optional = true
default-features = false
[target.'cfg(not(target_family = "wasm"))'.dependencies.ic-wire-derive]
version = "=0.25.0"
optional = true
[target.'cfg(not(target_family = "wasm"))'.dependencies.serde_json]
version = "1.0.154"
features = ["alloc"]
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 = "forbid"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"
[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_markdown_table = "deny"