Closed cameronelliott closed 9 months ago
Hi! That functionality to directly transpile a file without a compile commands was added recently, so it's only on master
, not released on crates.io yet. So you'd have to install c2rust
with cargo install c2rust --git https://github.com/immunant/c2rust
.
I'm quite excited about c2rust, thanks for making it.
My issue is c2rust is failing when I pass it a simple C program.
I presume c2rust is trying to read main.c like it is expecting a json compile_commands.json file.
But it seems like
c2rust transpile main.c
should work like the example in the Readme: https://github.com/immunant/c2rust/blob/master/README.md?plain=1#L156Is direct use of .c and .h supported?
Did I make a mistake.