Here's my Cargo.toml:
[package]
name = "smoltcp_plus"
version = "0.1.0"
Here's what I'm doing in examples/http_smol_tcp_tun_example.rs
:
use smoltcp_plus::virtual_tun::smol_stack::SmolStack;
When I run cargo build --examples
, I get:
--> examples/http_smol_tcp_tun_example.rs:19:5
|
19 | use smoltcp_plus::virtual_tun::smol_stack::SmolStack;
| ^^^^^^^^^^^^ use of undeclared type or module `smoltcp_plus`
I have both main.rs
and lib.rs
in src
, they export
pub mod virtual_tun;
pub use virtual_tun::VirtualTunInterface;
I don't get why I can't use the package smoltcp_plus
as it's the cargo package name