ic-auth 0.49.2

Canonical authentication, proof verification and bounded receiver/issuer state with optional stable upgrade checkpoints
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-auth"
version = "0.49.2"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Canonical authentication, proof verification and bounded receiver/issuer state with optional stable upgrade checkpoints"
documentation = "https://docs.rs/ic-auth"
readme = "README.md"
license-file = "LICENSE.md"
repository = "https://github.com/dragginzgame/ic-auth"

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

[features]
certified-issuer-verification = [
    "dep:ic-platform",
    "ic-platform/canister-signature-authentication",
]
certified-verification = [
    "certified-issuer-verification",
    "root-delegation-verification",
    "ic-auth-protocol-types/principal-self-authenticating",
]
ed25519-verification = [
    "dep:ic-platform",
    "ic-platform/ed25519",
    "ic-auth-protocol-types/principal-self-authenticating",
]
issuer-memory = [
    "dep:ic-wire",
    "dep:serde",
    "ic-auth-protocol-types/principal-self-authenticating",
]
issuer-stable = [
    "issuer-memory",
    "dep:ic-storage",
    "ic-auth-protocol-types/stable-records",
]
receiver-memory = [
    "dep:ic-wire",
    "dep:serde",
]
receiver-stable = [
    "receiver-memory",
    "dep:ic-storage",
    "ic-auth-protocol-types/stable-records",
]
root-delegation-verification = [
    "dep:ic-platform",
    "ic-platform/ecdsa",
]

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

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

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

[[test]]
name = "issuer_memory"
path = "tests/issuer_memory/main.rs"

[[test]]
name = "receiver_memory"
path = "src/receiver_memory/publication_faults/tests/receiver_memory.rs"

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

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

[dependencies.ic-auth-protocol-types]
version = "0.44.0"

[dependencies.ic-platform]
version = "0.34.19"
optional = true
default-features = false

[dependencies.ic-storage]
version = "0.78.7"
optional = true

[dependencies.ic-wire]
version = "0.28.0"
optional = true

[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true

[dependencies.sha2]
version = "0.11.1"

[dev-dependencies.ic-storage]
version = "0.78.7"
features = ["test-support"]

[dev-dependencies.toko-tooling]
version = "=0.46.2"

[lints.cargo]
missing_lints_inheritance = "deny"
unknown_lints = "deny"
unused_dependencies = "deny"
unused_workspace_dependencies = "deny"
unused_workspace_package_fields = "deny"

[lints.clippy]
empty_line_after_doc_comments = "allow"
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"