-
Notifications
You must be signed in to change notification settings - Fork 293
Open
Description
Currently, when c2rust-transpile is run with --binary main_cu, it generates a Cargo crate with two targets, a lib target and a bin target. It puts the main compilation unit main_cu in the bin target and puts all other compilation units in the lib target. This means there are two separate targets, both of which contain non-trivial code.
It would be convenient for CRISP if there was only one target to worry about. One option would be to put all compilation units into the bin target, and remove the lib target entirely. Another option would be to put all compilation units into the lib target, and have the bin target consist only of a trivial stub that calls lib::main().
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels