ic-platform 0.34.3

Explicit IC certificate and authentication boundaries
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.100.0"
name = "ic-platform"
version = "0.34.3"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Explicit IC certificate and authentication boundaries"
documentation = "https://docs.rs/ic-platform"
readme = "README.md"
license-file = "LICENSE.md"
repository = "https://github.com/dragginzgame/ic-platform"

[package.metadata.cargo-machete]
ignored = ["toko-tooling"]

[features]
canister-signature-authentication = [
    "canister-signature-decode",
    "certificate-authentication",
    "dep:sha2",
    "dep:spki",
]
canister-signature-decode = ["certificate-decode"]
certificate-authentication = [
    "certificate-decode",
    "dep:candidate-types",
    "dep:ic-verify-bls-signature",
]
certificate-decode = [
    "dep:ic-certification",
    "dep:serde",
    "dep:serde_cbor",
    "dep:thiserror",
]
default = []

[lib]
name = "ic_platform"
path = "src/lib.rs"

[[test]]
name = "observed_certificates"
path = "tests/observed_certificates.rs"

[[test]]
name = "subgroup"
path = "tests/subgroup.rs"

[dependencies.candidate-types]
version = "=0.21.1"
optional = true
default-features = false
package = "ic-platform-types"

[dependencies.ic-certification]
version = "=3.2.0"
optional = true
default-features = false

[dependencies.ic-verify-bls-signature]
version = "=0.6.0"
features = ["alloc"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.229"
features = [
    "alloc",
    "derive",
]
optional = true
default-features = false

[dependencies.serde_cbor]
version = "0.11.2"
optional = true

[dependencies.sha2]
version = "0.11.1"
optional = true
default-features = false

[dependencies.spki]
version = "0.8.1"
optional = true
default-features = false

[dependencies.thiserror]
version = "=2.0.18"
optional = true

[dev-dependencies.ic_bls12_381]
version = "=0.10.1"
features = ["groups"]
default-features = false

[target."cfg(any())".dev-dependencies.toko-tooling]
version = "=0.44.5"

[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"