Skip to content

fix: emit generated Rust as .rs, not .rust - #22

Merged
Kinflou merged 1 commit into
masterfrom
feature/rs-extension
Aug 28, 2026
Merged

fix: emit generated Rust as .rs, not .rust#22
Kinflou merged 1 commit into
masterfrom
feature/rs-extension

Conversation

@Kinflou

@Kinflou Kinflou commented Aug 28, 2026

Copy link
Copy Markdown
Member

find_generator returned "rust" as the file extension for the rust
target. Every caller builds the output path as format!("{}.{}", namespace, ext), so comline generate wrote main.rust / other.rust instead of
main.rs / other.rs.

One-character fix: the extension string becomes "rs". The match name { "rust" => … } key and the rust module name are unchanged.

cargo test -p comline-core green (no test referenced the extension).

find_generator returned "rust" as the file extension for the rust
target; every caller does format!("{}.{}", namespace, ext), so the
generated files were named e.g. main.rust. Use "rs".
@Kinflou
Kinflou merged commit 488dc12 into master Aug 28, 2026
6 checks passed
@Kinflou
Kinflou deleted the feature/rs-extension branch August 28, 2026 05:34
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