-
Notifications
You must be signed in to change notification settings - Fork 16
Unable to compile with 'cargo web build' #12
Comments
This is because In the meantime, try |
I tried the command with the new option, got same error. Thanks |
Sorry, you actually need to set # before
buf_redux = "0.8"
# after
buf_redux = { version = "0.8", default-features = false } It should be a trivial fix but I need to install cargo-web to test it, I haven't gotten around to it yet. |
My program uses rpgp which depends on buf_redux. I see in rpgp's Cargo.toml file having following entries: [dependencies.buf_redux] I do not know if I can change my App's Cargo.toml to have any impact, but tried anyway with same error. please advise. |
Try doing the same with your dependency on rpgp. |
Okay. That nailed it. In case anyone else has similar issue, I used following entry in Cargo.toml: pgp = { version = "*", default-features = false } Thanks again. |
I have a web client rust app that needs stdweb crate which uses 'cargo web build' subcommand. Also the app dependency chain needs buf_redux crate. The 'cargo web build' causes error when building bug_redux. The error is message is below. Please advice how to resolve the issue:
cargo/registry/src/github.com-1ecc6299db9ec823/buf_redux-0.8.1
dude@ubuntu:~/.cargo/registry/src/github.com-1ecc6299db9ec823/buf_redux-0.8.1$ cargo web build
Compiling safemem v0.2.0
Compiling memchr v2.2.0
Compiling buf_redux v0.8.1 (/home/dude/.cargo/registry/src/github.com-1ecc6299db9ec823/buf_redux-0.8.1)
error[E0463]: can't find crate for
slice_deque
--> src/buffer/slice_deque_buf.rs:14:1
|
14 | extern crate slice_deque;
| ^^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate
error: aborting due to previous error
For more information about this error, try
rustc --explain E0463
.error: Could not compile
buf_redux
.To learn more, run the command again with --verbose.
error: build failed
The text was updated successfully, but these errors were encountered: