Skip to content

Upgrade to Rust 2024 and current Rust and Python dependencies - #15

Merged
mcroomp merged 3 commits into
mainfrom
upgrade/rust-2024-dependencies
Oct 28, 2026
Merged

mcroomp merged 3 commits into
mainfrom
upgrade/rust-2024-dependencies

Conversation

@mcroomp

@mcroomp mcroomp commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Upgrade the project to the Rust 2024 edition and current stable Rust/crate releases while preserving the published Python 3.10 minimum and NumPy 1.24 compatibility.

  • Update the local stable toolchain to Rust 1.99.1; declare Rust 1.99+ in both Cargo workspaces and use resolver 3 in the main workspace.
  • Upgrade PyO3 to 0.30.1, rust-numpy to 0.30, wide to 1.7.1, Criterion to 0.8.2, and eframe/egui to 0.37, plus the remaining direct Rust dependencies.
  • Migrate Python conversions, clone-based extraction, NumPy array construction, pickle serialization, Criterion black-box calls, and egui frame APIs. Keep visualizer simulation stepping separate from UI painting.
  • Refresh Python dependencies and update development/build-tool requirements. Most resolved Python packages were already current; the lock refresh updated zipp to 4.1.2. Lockfiles remain untracked under the existing repository policy.
  • Keep Python >=3.10 for the published package, Python >=3.11 for the development workspace, and NumPy >=1.24. Add Python-minimum, Rust-release, and standalone-visualizer CI checks.
  • Update installation and crate documentation; apply Rust 2024 formatting.

Validation

  • cargo check --workspace --all-targets
  • cargo test --release --workspace: 81 Rust core tests passed
  • cargo bench -p dynbem_rs --bench model_kernels -- --test: all six benchmark cases passed
  • Servo-flap directional validations: 17 servo-flap checks and 4 cyclic-phase checks passed
  • uv run pytest tests\ -q: 200 passed, 5 xfailed, 1 xpassed
  • Full Python suite also passed on Python 3.10 and 3.11, and on Python 3.10 with NumPy 1.24.0
  • Native BladeGeometry pickle round-trip passed
  • Release abi3 wheel build and twine check passed (existing missing long-description warnings)
  • Standalone visualizer compiled and opened a responsive window in a bounded startup smoke test
  • Workspace and standalone rustfmt checks, plus git whitespace checks, passed

Platform runtime verification was performed on Windows; Linux visualizer compilation is covered by the new CI step.

Release metadata

Use 0.9.0 consistently across all packages. Cargo workspace members inherit the workspace version, and maturin derives the Python package version from Cargo. Only the development project and standalone visualizer retain matching explicit versions. Verified installed Python metadata reports 0.9.0, Rust manifests compile, and all 200 Python regression tests pass.

mcroomp and others added 3 commits October 28, 2026 20:46
Migrate PyO3, NumPy bindings, SIMD, benchmarking and egui APIs while preserving Python 3.10 and NumPy 1.24 compatibility. Add minimum-Python, release-Rust and standalone visualizer CI checks.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Increment development workspace and tool versions and update the Rust dependency example.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Derive Python package metadata from Cargo via maturin and inherit the validation crate version. Keep standalone metadata aligned at 0.9.0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@mcroomp
mcroomp merged commit 6fd0df0 into main Oct 28, 2026
4 checks passed
@mcroomp
mcroomp deleted the upgrade/rust-2024-dependencies branch October 28, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant