Closed fw-immunant closed 3 months ago
Seems unfortunate that the user's project needs this extra c2rust-analysis-rt
dependency that they'll never use in normal builds. How does c2rust-instrument
go about injecting this dependency? Could c2rust-analyze
do the same?
Seems unfortunate that the user's project needs this extra
c2rust-analysis-rt
dependency that they'll never use in normal builds. How doesc2rust-instrument
go about injecting this dependency? Couldc2rust-analyze
do the same?
c2rust instrument
has an option to add it as an optional dependency automatically.
Dropped the dependency-adding commit as we actually don't need it as @kkysen indicated.
Turns out we need to pass the profile flags twice: once for the outer invocation of cargo itself and once for the inner invocation of our cargo wrapper. This, along with the
--feature
flags for the inner crate and the addition of an optional dependency, make things work with the same crate ID.