Skip to content

Comments

chore: initialize Cargo workspace and finalize crate structure#7

Merged
miguemagicdev merged 6 commits intomainfrom
chore/cargo-workspace
Feb 21, 2026
Merged

chore: initialize Cargo workspace and finalize crate structure#7
miguemagicdev merged 6 commits intomainfrom
chore/cargo-workspace

Conversation

@miguemagicdev
Copy link
Contributor

Summary

This PR transitions the project into a Cargo Workspace, completes the configuration for the physcontinuum-core crate, and removes legacy artifacts from the initial Rust migration.

Changes

  • Workspace Management: Created a root Cargo.toml to manage multiple crates and centralize dependency versions.
  • Crate Configuration: * Finalized physcontinuum-core/Cargo.toml to inherit from the workspace.
    • Explicitly mapped the library entry point to src/lib.rs.
    • Added missing license headers for legal/compliance consistency.
  • Source Cleanup: * Created the initial src/lib.rs for the core crate.
    • Deleted crates/physcontinuum-core/src/core.cpp (obsolete legacy file).
  • Build Artifacts: Generated the initial Cargo.lock to ensure reproducible builds across environments.

Why this is necessary

Moving to a workspace structure allows for better modularity as the project grows and ensures that physcontinuum-core is properly recognized as a library crate by the Rust compiler. Deleting the old C++ source prevents linker confusion and reduces repository bloat.

Verification Results

[x] cargo check passes.
[x] cargo metadata correctly identifies the workspace members.
[x] Workspace-level linting/formatting is now functional.

miguemagicdev and others added 6 commits February 20, 2026 23:57
Co-authored-by: aider (gemini/gemini-2.5-flash) <aider@aider.chat>
- Add root Cargo.toml to define the workspace.
- Update physcontinuum-core Cargo.toml to inherit workspace metadata.
- Explicitly define the library path in physcontinuum-core/Cargo.toml.
- Create physcontinuum-core/src/lib.rs.
- Remove obsolete C++ source file (core.cpp) from migration.
- Add license headers to all Cargo.toml files.
- Generate Cargo.lock file.
@miguemagicdev miguemagicdev merged commit f6cd118 into main Feb 21, 2026
4 of 6 checks passed
@miguemagicdev miguemagicdev deleted the chore/cargo-workspace branch February 21, 2026 17:27
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