4 commits, squashed; the originals stay reachable from tag archive/merge-main-develop. -10ea00e74jyviko: Profiler: every SMLib C API call is a span, timed by the C API itself -319c0bc9fjyviko: Profiler: kernel operations and STEP/IGES import stages are spans -9cd655259jyviko: Profiler: commands, feature evaluation, io; diagnostics.profile; CLI --profile -fafd977b0jyviko: Profiler: the Profile operations preference switches recording at run time Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DtL5M41G8Nua7HvuFPZkmJ
43 lines
1.3 KiB
TOML
43 lines
1.3 KiB
TOML
[package]
|
|
name = "solidcraft-smlib"
|
|
description = "SolidCraft: NVIDIA's SMLib B-rep kernel (tangency-labs/smlib, Apache-2.0), statically linked behind its C API, with a safe Rust wrapper"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish = false
|
|
links = "smlib"
|
|
|
|
# The workspace lints, except unsafe_code: denied, not forbidden, so that src/ffi.rs can allow it.
|
|
# Calling a C library has no safe API. Keep the rest in sync with [workspace.lints].
|
|
[lints.rust]
|
|
unsafe_code = "deny"
|
|
|
|
[lints.clippy]
|
|
dbg_macro = "warn"
|
|
todo = "warn"
|
|
too_many_arguments = "allow"
|
|
type_complexity = "allow"
|
|
neg_cmp_op_on_partial_ord = "allow"
|
|
|
|
[features]
|
|
# Compile and link SMLib. Off, the crate builds without a C++ toolchain or the SMLib sources, and
|
|
# every call returns `Error::NotBuilt`, so workspace-wide builds and checks need neither.
|
|
native = []
|
|
|
|
[dependencies]
|
|
log = { workspace = true }
|
|
solidcraft-geom = { workspace = true }
|
|
solidcraft-profile = { workspace = true }
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
# The clocks SMLib's C library asks for in a browser build (src/ffi.rs).
|
|
web-time = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
cc = { version = "1.2", features = ["parallel"] }
|
|
|
|
[dev-dependencies]
|
|
solidcraft-profile = { workspace = true, features = ["enabled"] }
|
|
flate2 = "1.1"
|
|
serde_json = { workspace = true }
|