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'd like to understand how to put crate at the root. I did an experiment (see branch crate-root, but I couldn't figure out syntax for including the lib. Probably something really basic I'm missing here...
cargo run --example stdin
output
Compiling add v0.1.0 (/Users/sallen/src/rust/clib)
error[E0432]: unresolved import `add`
--> examples/stdin.rs:1:5
|
1 | use add::add;
| ^^^ use of undeclared type or module `add`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0432`.
error: could not compile `add`.
The text was updated successfully, but these errors were encountered:
ultrasaurus
changed the title
example doesn't compile
how to make example work with crate at root?
Feb 8, 2020
ultrasaurus
changed the title
how to make example work with crate at root?
how to make example work?
Feb 8, 2020
I'd like to understand how to put crate at the root. I did an experiment (see branch crate-root, but I couldn't figure out syntax for including the lib. Probably something really basic I'm missing here...
output
The text was updated successfully, but these errors were encountered: