mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-29 01:36:18 +01:00
49 lines
1.5 KiB
TOML
49 lines
1.5 KiB
TOML
[package]
|
|
name = "craft-testkit"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
description = "Source-level platform regression guards, test deadlines, hostile-input helpers, a reentrant test lock and skip-or-fail helpers for the Craft application suite"
|
|
publish = false
|
|
|
|
[features]
|
|
default = []
|
|
# Image comparison, PNG reading and writing, and golden reference checks.
|
|
image = ["dep:png"]
|
|
# `mcp::McpChild`: an MCP stdio test client.
|
|
mcp = ["dep:serde_json"]
|
|
# Pinned-corpus manifests and the `corpus::pinned` test gate (native only).
|
|
corpus = ["dep:sha2", "dep:libc"]
|
|
# `font-coverage`: `skip::craft_fonts_cover`, which parses font data with skrifa.
|
|
font-coverage = ["dep:skrifa"]
|
|
|
|
[dependencies]
|
|
png = { version = "0.18", optional = true }
|
|
sha2 = { version = "0.10", default-features = false, features = ["std"], optional = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
skrifa = { workspace = true, optional = true }
|
|
toml = { version = "1", default-features = false, features = ["parse", "serde", "std"] }
|
|
serde_json = { workspace = true, optional = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = { version = "0.2", optional = true }
|
|
rustix = { version = "1.1", default-features = false, features = ["std", "fs"] }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
|
|
[[test]]
|
|
name = "mcp"
|
|
required-features = ["mcp"]
|
|
|
|
[[test]]
|
|
name = "mcp_child"
|
|
harness = false
|
|
required-features = ["mcp"]
|
|
|
|
[lints]
|
|
workspace = true
|