mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
The downloader in lightcraft-segment (mirrors, resume, pinned SHA-256, pure-Rust HTTPS) was already generic apart from four SAM 3 constants. Move it to crates/fetch (L0, native only) so other model features can use it without depending on the SAM 3 inference code. lightcraft-segment keeps SAM3_FILES, DEFAULT_MIRRORS, MIRRORS_ENV and wraps mirrors(); no behaviour change. The downloader's 13 tests moved with it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
26 lines
775 B
TOML
26 lines
775 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"] }
|