canic-root 0.262.0

Root for bounded controller-approved application canisters
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 = "canic-root"
version = "0.262.0"
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Root for bounded controller-approved application canisters"
readme = false
license-file = "LICENSE.md"
repository = "https://github.com/dragginzgame/canic"

[features]
auth = ["canic/auth-enrollment"]
backup = [
    "canic-management/backup",
    "dep:serde",
]
blob = ["canic-management/blob"]
child-metrics = ["operator-client"]
fault-injection = ["canic-management/fault-injection"]
maintenance-candidate = ["canic-management/maintenance-candidate"]
operator-client = [
    "dep:clap",
    "dep:serde_json",
]
role-issuer = [
    "sharding",
    "canic-management/role-issuer",
    "canic-management-protocol/retirement",
]
sharding = [
    "canic-management-protocol/standby",
    "canic/sharding",
    "canic-management/sharding",
    "operator-client",
    "dep:ic-platform-types",
    "dep:serde",
]

[lib]
name = "canic_root"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "canic-root-client"
path = "client/main.rs"
required-features = ["operator-client"]

[dependencies.canic]
version = "0.262.0"
features = [
    "logging",
    "metrics",
]

[dependencies.canic-management]
version = "0.262.0"

[dependencies.canic-management-protocol]
version = "0.262.0"

[dependencies.ic-platform-runtime]
version = "0.23.25"
features = [
    "entrypoint-macros",
    "system-raw",
]
default-features = false

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

[dependencies.ic-wire]
version = "0.28.0"
default-features = false

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

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4.6.7"
features = ["derive"]
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.serde_json]
version = "1.0.154"
optional = true

[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 = "deny"
unsafe_op_in_unsafe_fn = "deny"
unused_must_use = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_markdown_table = "deny"