Skip to content

transpile: add --c2rust-dir to resolve relative c2rust dependencies#1559

Merged
kkysen merged 3 commits into
masterfrom
kkysen/transpile-c2rust-dir-arg
Jan 22, 2026
Merged

transpile: add --c2rust-dir to resolve relative c2rust dependencies#1559
kkysen merged 3 commits into
masterfrom
kkysen/transpile-c2rust-dir-arg

Conversation

@kkysen
Copy link
Copy Markdown
Contributor

@kkysen kkysen commented Jan 21, 2026

Our internal c2rust dependencies like c2rust-bitfields and c2rust-asm-casts need to be patched when building from source/repo (as opposed to crates.io), as the crates.io versions can be out of sync with HEAD for c2rust-transpile, etc. We manually patch this in tests/integration, CRISP, etc. This replaces that with a --c2rust-dir arg so that c2rust-transpile can emit the correct Cargo.toml in the first place.

Comment thread c2rust-transpile/src/build_files/Cargo.toml.hbs
@kkysen kkysen merged commit 11e9938 into master Jan 22, 2026
11 checks passed
@kkysen kkysen deleted the kkysen/transpile-c2rust-dir-arg branch January 22, 2026 02:04
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.

Point c2rust-bitfields and c2rust-asm-casts to the local versions

2 participants