This is my Rust project structure:
zlmediakit_rust/examples
zlmediakit_rust/src
zlmediakit_rust/src/interface/lots_of_files_and_mod_rs
zlmediakit_rust/src/zl_media/lots_of_files_and_mod_rs
zlmediakit_rust/src/main.rs
zlmediakit_rust/Cargo.toml
In Cargo.toml
:
[package]
name = "zlmediakit_rust"
version = "0.1.0"
In main.rs
I have:
use zlmediakit_rust::zl_media;
fn main() {
println!("hello world");
}
but it says it can't find any zlmediakit_rust
. Also tried adding an example that uses zlmediakit_rust
or declares it as an extern crate, won't work.
What am I doing wrong?