Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
.
├── Cargo.toml
└── src
├── main.rs
│
└── lib.rs[package]
name = "package_name"
version = "0.0.1"
authors = ["me <me@gmail.com>"]
[lib]
name = "lib_name"
path = "src/lib.rs"
[[bin]]
name = "binary_name"
path = "src/bin.rs"It seems that you have to use relative import when using the above structure ...
lib.rsis the entrance place of the library (similar to thatmain.rsis the entrance place of the binary). It is not a module!