ic-platform 0.6.1

Controlled Candid and IC runtime dependency boundary
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.88.0"
name = "ic-platform"
version = "0.6.1"
build = false
include = [
    "src/**",
    "README.md",
    "LICENSE",
    "Cargo.toml",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Controlled Candid and IC runtime dependency boundary"
readme = "README.md"
license = "MIT AND Apache-2.0"
repository = "https://github.com/dragginzgame/ic-platform"

[features]
agent = [
    "principal",
    "dep:ic-agent",
]
bls = ["dep:ic-verify-bls-signature"]
candid = [
    "principal",
    "dep:candid",
    "candid/bignum",
]
candid-parser = [
    "principal",
    "dep:candid_parser",
]
candid-service = [
    "candid",
    "candid/printer",
]
canister-sig-creation = [
    "principal",
    "dep:ic-certification",
    "dep:sha2",
]
cdk = [
    "runtime",
    "dep:ic-platform-macros",
]
certification = ["dep:ic-certification"]
default = []
ecdsa = ["dep:k256"]
ed25519 = [
    "dep:curve25519-dalek",
    "dep:ed25519-dalek",
]
executor = ["dep:ic-cdk-executor"]
ic0 = ["dep:ic0"]
icrc-ledger-types = [
    "principal",
    "dep:icrc-ledger-types",
]
management-canister-types = [
    "principal",
    "dep:ic-management-canister-types",
]
pocket-ic = [
    "principal",
    "dep:pocket-ic",
]
principal = [
    "dep:crc32fast",
    "dep:data-encoding",
    "dep:ic_principal",
    "dep:serde",
]
runtime = [
    "principal",
    "executor",
    "ic0",
    "dep:pin-project-lite",
    "dep:thiserror",
]
secp256k1 = [
    "principal",
    "dep:ic-secp256k1",
]
signature-verification = [
    "canister-sig-creation",
    "dep:ic-verify-bls-signature",
    "dep:serde_bytes",
    "dep:serde_cbor",
]

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

[dependencies.candid]
version = "0.10.38"
optional = true
default-features = false

[dependencies.crc32fast]
version = "1.5"
optional = true

[dependencies.curve25519-dalek]
version = "4.1.3"
optional = true
default-features = false

[dependencies.data-encoding]
version = "2.11"
optional = true

[dependencies.ed25519-dalek]
version = "2.2"
optional = true
default-features = false

[dependencies.ic-cdk-executor]
version = "=2.0.0"
optional = true

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

[dependencies.ic-management-canister-types]
version = "=0.11.0"
optional = true

[dependencies.ic-platform-macros]
version = "0.6.1"
optional = true

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

[dependencies.ic0]
version = "=1.2.0"
optional = true

[dependencies.ic_principal]
version = "0.1.5"
features = [
    "convert",
    "self_authenticating",
    "serde",
]
optional = true
default-features = false

[dependencies.icrc-ledger-types]
version = "0.2.0"
optional = true
default-features = false

[dependencies.k256]
version = "0.13.4"
features = ["ecdsa"]
optional = true
default-features = false

[dependencies.pin-project-lite]
version = "0.2.17"
optional = true

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

[dependencies.serde_bytes]
version = "0.11"
optional = true

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

[dependencies.sha2]
version = "0.10"
optional = true

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

[dev-dependencies.assert_matches]
version = "1.5"

[dev-dependencies.ic-representation-independent-hash]
version = "3.0"

[dev-dependencies.serde_bytes]
version = "0.11"

[dev-dependencies.serde_cbor]
version = "0.11.2"

[dev-dependencies.serde_test]
version = "1.0.177"

[target.'cfg(not(target_family = "wasm"))'.dependencies.candid_parser]
version = "0.4.1"
optional = true
default-features = false

[target.'cfg(not(target_family = "wasm"))'.dependencies.ic-agent]
version = "0.49.2"
features = ["pem"]
optional = true
default-features = false

[target.'cfg(not(target_family = "wasm"))'.dependencies.ic-secp256k1]
version = "=0.3.0"
optional = true

[target.'cfg(not(target_family = "wasm"))'.dependencies.pocket-ic]
version = "16.1.0"
optional = true

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"