ic-testkit 0.72.0

PocketIC-oriented test utilities for IC canister tests
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.91.0"
name = "ic-testkit"
version = "0.72.0"
authors = ["borovan <84897664+borovan@users.noreply.github.com>"]
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PocketIC-oriented test utilities for IC canister tests"
homepage = "https://github.com/dragginzgame/ic-tooling"
readme = "README.md"
keywords = [
    "internet-computer",
    "canister",
    "dfinity",
    "icp",
    "testing",
]
categories = [
    "development-tools::testing",
    "wasm",
]
license = "MIT"
repository = "https://github.com/dragginzgame/ic-tooling"

[features]
cli = [
    "dep:clap",
    "clap/derive",
]
default = []
held-reply-fixtures = [
    "reply-fixtures",
    "ic-host-artifacts/wasm-text",
]
reply-fixtures = ["ic-host-artifacts/wasm-encoding"]
wire = [
    "dep:ic-wire",
    "dep:serde",
]

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

[[bin]]
name = "ic-testkit-server"
path = "src/bin/ic-testkit-server.rs"
required-features = ["cli"]

[[example]]
name = "benchmark_report"
path = "examples/benchmark_report/main.rs"

[[example]]
name = "multi_canister_baseline_pool"
path = "examples/multi_canister_baseline_pool.rs"

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

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

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

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

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

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

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

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

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

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

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

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

[[test]]
name = "server_runner"
path = "tests/server_runner.rs"
required-features = ["cli"]

[dependencies.ic-platform]
version = "0.11.1"
features = ["principal-external"]
default-features = false

[dependencies.thiserror]
version = "2.0.18"

[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dependencies.libc]
version = "0.2.190"

[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dev-dependencies.ic-host-fs]
version = "0.72"
features = ["test-support"]
default-features = false

[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dev-dependencies.ic-host-process]
version = "0.72"
features = ["test-support"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.clap]
version = "4.6.7"
features = [
    "std",
    "help",
    "usage",
    "error-context",
    "string",
]
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-host-artifacts]
version = "0.72"
features = ["gzip"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-host-fs]
version = "0.72"
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-host-process]
version = "0.72"
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-platform]
version = "0.11.1"
features = [
    "pocket-ic",
    "candid",
    "management-canister-types",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-wire]
version = "0.10.0"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.serde]
version = "1.0.228"
optional = true
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1.52.3"
features = ["time"]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.clap]
version = "4.6.7"
features = [
    "std",
    "help",
    "usage",
    "error-context",
    "string",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.ic-host-artifacts]
version = "0.72"
features = [
    "wasm-validation",
    "wasm-text",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.serde_json]
version = "1.0.150"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.tokio]
version = "1.52.3"
features = [
    "net",
    "rt",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.ic-platform]
version = "0.11.1"
features = ["ic0"]
default-features = false

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

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

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

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