Draft: add in-repo Rust backend connector package#1251
Draft
gustavorubim wants to merge 3 commits into
Draft
Conversation
This was referenced Jun 30, 2026
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
This is a draft comparison PR for the architecture Miles asked to evaluate: the Python/Rust connector package lives in the PySR repository instead of in
astroautomata/symbolic_regression.rs.It is intentionally based on the existing Rust backend adapter PR (#1242), then adds an in-repo
pysr_rust_backend/subproject that builds thepysr-rust-backenddistribution and exposes thesymbolic_regression_rsimport module consumed by PySR's adapter.What this demonstrates
pysr_rust_backend/.astroautomata/symbolic_regression.rs; the connector uses Git dependencies forsymbolic_regressionanddynamic_expressions.Why draft
This is for design evaluation, not an immediate merge candidate. It lets maintainers compare two structures:
symbolic_regression.rsvia Add Python wrapper package symbolic_regression.rs#47.symbolic_regression.rs.Validation
cargo check --manifest-path pysr_rust_backend/Cargo.tomlcargo fmt --check --manifest-path pysr_rust_backend/Cargo.tomlpython -m pytest pysr_rust_backend/tests -q: 12 passedpython -m pysr test rust: 14 passed with the in-repo connector installed.github/workflows/CI_rust_backend_connector.ymlwith PyYAMLRelated PRs