refactor: split spnl monolith into 5 crates under crates/ layout#919
Merged
Conversation
430697a to
b93fe03
Compare
Split the monolithic `spnl` crate into a multi-crate workspace: - spnl-core: IR types, simplify, capabilities, LLO tokenizer (minimal deps) - spnl-run: execution engine, generate backends, RAG, optimizer (async, heavy deps) - spnl-ffi: Python FFI bindings via PyO3/maturin - spnl: facade crate re-exporting core + run for backward compatibility - spnl-cli: CLI binary (moved from cli/) Update all CI workflows, Dockerfiles, and docs to reflect new crates/ paths. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Nick Mitchell <nickm@us.ibm.com>
b93fe03 to
763adf5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
spnlmonolith into 5 crates under a conventionalcrates/directory layoutcli/)Dependency graph
Test plan
cargo check -p spnl-corecompiles independentlycargo check -p spnl-runcompiles with core dependencycargo check -p spnlfacade compiles and re-exports workcargo build -p spnl-cliCLI builds (via manifest-path)cargo test— 33 tests pass (21 core, 12 run)cargo check -p spnl-run --features rag,openai,ollamafeature-gated compilationcargo fmt --all -- --checkformatting cleanmaturin develop -m crates/spnl-ffi/Cargo.toml— Python wheel builds🤖 Generated with Claude Code