mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-24 10:09:01 -06:00
libtest has no skipped status and hides the output of passing tests, so a test that returns early without a GPU, a corpus file, a craft-fonts face or a model passed silently. `lightcraft-testkit` (the testkit slot the layering table already reserves, dev-dependency only, std only) adds `skip!(Need, "reason")`: it prints the note as before and, when LIGHTCRAFT_SKIP_LOG names a file, appends one JSON line (need, reason, test, binary, file:line). Plain `cargo test` is unchanged. The 61 existing skip sites use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
30 lines
901 B
TOML
30 lines
901 B
TOML
[package]
|
|
name = "lightcraft-segment"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license = "Apache-2.0"
|
|
description = "LightCraft segmentation: SAM 3 (Segment Anything with Concepts) inference in pure Rust (L3)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
# the model runs natively only (the web build has no AI masks)
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
candle-core = { workspace = true }
|
|
candle-nn = { workspace = true }
|
|
lightcraft-fetch = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
candle-core = { workspace = true, features = ["metal"] }
|
|
candle-nn = { workspace = true, features = ["metal"] }
|
|
|
|
[dev-dependencies]
|
|
# tests record why they skip (`cargo xtask ci` lists the skips)
|
|
lightcraft-testkit = { workspace = true }
|