[package]
edition = "2024"
rust-version = "1.100.0"
name = "ic-auth"
version = "0.47.3"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Canonical authentication, proof verification and bounded volatile receiver/issuer state"
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",
]
receiver-memory = [
"dep:ic-wire",
"dep:serde",
]
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 = "tests/receiver_memory/main.rs"
[[test]]
name = "session_request"
path = "tests/session_request.rs"
[[test]]
name = "verification"
path = "tests/verification.rs"
[dependencies.ic-auth-protocol-types]
version = "0.43.0"
[dependencies.ic-platform]
version = "0.34.11"
optional = true
default-features = false
[dependencies.ic-wire]
version = "0.24.3"
optional = true
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true
[dependencies.sha2]
version = "0.11.1"
[dev-dependencies.toko-tooling]
version = "=0.44.11"
[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"