You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to follow the getting started guide and it's crashing on the diesel_cli installation step:
[user@localhost diesel_demo]$ cargo install diesel_cli
Updating registry `https://github.com/rust-lang/crates.io-index`
Compiling diesel v0.5.0
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20 use self::raw::*;
^~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:20 use self::raw::*;
^~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22 use self::stmt::*;
^~~~~~~~~~~~~~
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/.cargo/registry/src/github.com-88ac128001ac3a9a/diesel-0.5.0/src/sqlite/connection/mod.rs:22 use self::stmt::*;
^~~~~~~~~~~~~~
error: aborting due to 4 previous errors
failed to compile `diesel_cli v0.5.1`, intermediate artifacts can be found at `/home/user/projs/diesel_demo/target-install`
Caused by:
Could not compile `diesel`.
I'm having the same error when I'm trying to compile diesel_cli:
[user@localhost diesel_cli]$ cargo build
Compiling diesel v0.5.0 (file:///home/user/projs/diesel/diesel)
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20 use self::raw::*;
^~~~~~~~~~~~~
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20:5: 20:18 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:20 use self::raw::*;
^~~~~~~~~~~~~
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `ffi` conflicts with imported crate in this module (maybe you meant `use ffi::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22 use self::stmt::*;
^~~~~~~~~~~~~~
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22:5: 22:19 error: import `libc` conflicts with imported crate in this module (maybe you meant `use libc::*`?) [E0254]
/home/user/projs/diesel/diesel/src/sqlite/connection/mod.rs:22 use self::stmt::*;
^~~~~~~~~~~~~~
error: aborting due to 4 previous errors
Could not compile `diesel`.
To learn more, run the command again with --verbose.
The text was updated successfully, but these errors were encountered:
It looks like our build is failing on the most recent nightly as well, I'll look into it. In the meantime, it should work on nightly-2016-01-23 or older, or beta/stable, so you could switch to one of those for now
Looks like this was caused by rust-lang/rust#31487. I'll push up a fix as soon as I can (we need to synchronize dependencies for syntex versions), but I won't be doing a release for this change.
I've updated the website to include a note about this. Thank you for bringing it to our attention, @defyrlt
I've tried to follow the getting started guide and it's crashing on the diesel_cli installation step:
rustc:
I'm having the same error when I'm trying to compile
diesel_cli
:The text was updated successfully, but these errors were encountered: