sunfishcode / eyra

Rust programs written entirely in Rust
Other
772 stars 12 forks source link

Don't depend on libc inside a test #38

Closed bjorn3 closed 9 months ago

bjorn3 commented 9 months ago

When the rustc-dev component is installed there will be two versions of libc in the sysroot. This would result in an error as rustc doesn't know which version to pick. In this case we don't actually depend on the libc crate, so we can just remove the extern crate libc.

bjorn3 commented 9 months ago

CI won't pass until https://github.com/sunfishcode/eyra/pull/39 is merged.

sunfishcode commented 9 months ago

Would it work to remove the extern crate libc; from src/main.rs, instead of adding libc to Cargo.toml?

bjorn3 commented 9 months ago

That works too.