[package]
edition = "2024"
rust-version = "1.91.0"
name = "ic-testkit"
version = "0.63.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"]
default = []
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_diagnostics"
path = "tests/pocket_ic_diagnostics.rs"
[[test]]
name = "pocket_ic_install"
path = "tests/pocket_ic_install.rs"
[[test]]
name = "pocket_ic_platform"
path = "tests/pocket_ic_platform.rs"
[[test]]
name = "pocket_ic_reexport"
path = "tests/pocket_ic_reexport.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"
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-process]
version = "0.63"
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.63"
features = ["gzip"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-host-fs]
version = "0.63"
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-host-process]
version = "0.63"
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-platform]
version = "0.6"
features = ["pocket-ic"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ic-wire]
version = "0.5"
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.63"
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"
features = ["ic0"]
default-features = false
[lints.clippy]
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
enum_variant_names = "allow"
missing_const_for_fn = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_inception = "allow"
module_name_repetitions = "allow"
must_use_candidate = "warn"
needless_pass_by_value = "allow"
option_if_let_else = "allow"
redundant_clone = "warn"
semicolon_if_nothing_returned = "warn"
significant_drop_tightening = "allow"
struct_field_names = "allow"
uninlined_format_args = "warn"
use_self = "warn"
used_underscore_binding = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1