Skip to content

fix: generated Rust files are .rs, not .rust - #3

Merged
Kinflou merged 1 commit into
mainfrom
fix/rs-extension
Aug 28, 2026
Merged

fix: generated Rust files are .rs, not .rust#3
Kinflou merged 1 commit into
mainfrom
fix/rs-extension

Conversation

@Kinflou

@Kinflou Kinflou commented Aug 28, 2026

Copy link
Copy Markdown
Member

comline generate was writing main.rust / other.rust. The extension
comes from comline-core's find_generator; fixed there in
ComlineProject/core#22 (merged). This bumps the comline-core pin to pick it
up, so generate now writes main.rs.

Also hardens the test fixture copy: fixture_project() now copies only
config.idp + src/, so a .comline/ store or generated *.rs left in
tests/fixtures/simple_project/ by a local comline run can't break the
suite (this is what happened during manual testing). The fixture's
.gitignore ignores generated output too.

cargo test (17), cargo clippy --all-targets -- -D warnings, cargo fmt --check all green. Manually confirmed generate --target rust writes
main.rs and clean removes it.

… copy

- comline-core -> 488dc12 (ComlineProject/core#22): generator extension
  is now `rs`, so `comline generate` writes main.rs not main.rust
- tests: assert main.rs/other.rs; fixture_project() now copies only
  config.idp + src/ so a locally-generated .comline/ or *.rs in the
  fixture dir can't break the suite
- fixture .gitignore also ignores generated *.rs / *.rust
@Kinflou
Kinflou merged commit 22f9594 into main Aug 28, 2026
2 checks passed
@Kinflou
Kinflou deleted the fix/rs-extension branch August 28, 2026 05:40
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