solidcore, the pure-Rust kernel, is always built and stays the default. The `smlib` feature (apps, engine, kernel; solidcraft-smlib's `native`) now has to be asked for to compile and link SMLib: the app, the CLI and the web app drop it from `default`, and solidcraft-gpu's dev-dependency no longer forces it on. Without it no C++ toolchain, fetch-smlib.sh, prebuilt or build.rs work is needed. On a build without it, asking for the C++ kernel (SOLIDCRAFT_KERNEL=smlib, diagnostics.kernel, the rig) is refused with Error::NotBuilt, which now says "this build doesn't include the C++ SMLib kernel; build with --features smlib", and SOLIDCRAFT_KERNEL=smlib logs that once. `cargo xtask kernel-cases` builds the CLI with --features smlib only when --kernel smlib or both asks for it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SdcgEtwSrdwZxqTQp5MfnU
35 lines
1.2 KiB
TOML
35 lines
1.2 KiB
TOML
[package]
|
|
name = "solidcraft-kernel"
|
|
description = "SolidCraft B-rep kernel boundary: solids, extrude/revolve/booleans/fillets, meshes, measures and STEP, behind our own API (implemented with SMLib)"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# Also link NVIDIA's C++ SMLib (tangency-labs/smlib), off by default; needs a C++ toolchain and
|
|
# scripts/fetch-smlib.sh (ADR 0002). solidcore, the Rust port, answers every operation either way;
|
|
# without this, asking for the C++ kernel (SOLIDCRAFT_KERNEL=smlib) is refused as not built.
|
|
smlib = ["solidcraft-smlib/native"]
|
|
|
|
[dependencies]
|
|
solidcraft-geom = { workspace = true }
|
|
solidcraft-smlib = { workspace = true }
|
|
solidcraft-profile = { workspace = true }
|
|
solidcraft-step = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
log = { workspace = true }
|
|
spade = { workspace = true }
|
|
web-time = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
rayon = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
solidcraft-profile = { workspace = true, features = ["enabled"] }
|
|
proptest = { version = "1", default-features = false, features = ["std"] }
|