Skip to content

refactor: convert to a Cargo workspace - #1

Merged
werner291 merged 1 commit into
mainfrom
refactor/workspace-layout
Jun 1, 2026
Merged

refactor: convert to a Cargo workspace#1
werner291 merged 1 commit into
mainfrom
refactor/workspace-layout

Conversation

@werner291

Copy link
Copy Markdown
Owner

Relocates the crate into a crates/maxbin-rs/ workspace member and adds a virtual workspace manifest at the repository root. Pure relocation: same binary, same outputs, no behavior change.

What moved:

  • src/, tests/, build.rs, vendor/crates/maxbin-rs/
  • the build-only FFI patch → crates/maxbin-rs/vendor/maxbin2-cpp-ffi.patch, with the matching build.rs path updated
  • [profile.bench] → the root manifest (Cargo only honors profiles at the workspace root)

flake.nix and nix/tests.nix reference the moved integration test scripts at their new path.

@werner291

Copy link
Copy Markdown
Owner Author

@claude Review please

Move the crate from the repository root into crates/maxbin-rs/ and add a
virtual workspace manifest at the root. Pure relocation: the binary, its
behavior, and its outputs are unchanged.

Three adjustments follow from the move:
- [profile.bench] moves to the root manifest, since Cargo only honors
  profiles at the workspace root.
- build.rs reads the FFI patch from vendor/maxbin2-cpp-ffi.patch rather
  than nix/, so it resolves relative to the crate, not the repo root.
- references to the moved files are updated to crates/maxbin-rs/: the
  flake (flake.nix, nix/tests.nix) for the integration test scripts, and
  CLAUDE.md for the test-script and source-file paths.
@werner291
werner291 force-pushed the refactor/workspace-layout branch from 91c078a to 09401a5 Compare June 1, 2026 13:55
@werner291
werner291 merged commit e643fc9 into main Jun 1, 2026
1 check passed
@werner291
werner291 deleted the refactor/workspace-layout branch June 1, 2026 14:02
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