[package]
edition = "2024"
rust-version = "1.91.0"
name = "ic-testkit"
version = "0.68.6"
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_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.6.16"
features = ["principal"]
default-features = false
[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.68"
features = ["test-support"]
default-features = false
[target.'cfg(all(unix, not(target_arch = "wasm32")))'.dev-dependencies.ic-host-process]
version = "0.68"
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.68"
features = ["gzip"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-host-fs]
version = "0.68"
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-host-process]
version = "0.68"
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-platform]
version = "0.6.16"
features = [
"pocket-ic",
"candid",
"management-canister-types",
]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-wire]
version = "0.7.10"
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.thiserror]
version = "2.0.18"
[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.68"
features = ["wasm-validation"]
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.6.16"
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"