Initial commit
This commit is contained in:
commit
c1e7415871
56 changed files with 3225 additions and 0 deletions
10
burrow/Cargo.toml
Normal file
10
burrow/Cargo.toml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
[package]
|
||||
name = "burrow"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
tokio = { version = "1.21", features = ["rt", "macros"] }
|
||||
tun = { version = "0.1", path = "../tun" }
|
||||
14
burrow/src/main.rs
Normal file
14
burrow/src/main.rs
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
use tokio::io::Result;
|
||||
use tun::TunInterface;
|
||||
|
||||
async fn lol() -> Result<()> {
|
||||
let iface = TunInterface::new()?;
|
||||
println!("{:?}", iface.name());
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[tokio::main(flavor = "current_thread")]
|
||||
async fn main() {
|
||||
lol().await.unwrap();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue