mirror of
https://github.com/bherbruck/solidcraft.git
synced 2026-11-04 19:15:57 +00:00
8695af8acc
A new crate (L1, only the kernel uses it) builds tangency-labs/smlib's SMLib, SM_API and C API with the cc crate when its `native` feature is on, from the commit in crates/smlib/SMLIB_REV (scripts/fetch-smlib.sh fetches just those sources). The kernel's `smlib` feature turns it on. Without it nothing C++ is built and every call returns NotBuilt, so workspace builds need no C++ toolchain. unsafe is confined to src/ffi.rs. The wrapper owns handles, maps statuses to errors, checks the C API version, and sends SMLib's per-call log to the log crate. Crash reports note the native kernel call in flight. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>