11[package ]
22name = " tun"
3- version = " 0.8.0 "
4- edition = " 2021 "
3+ version = " 0.7.20 "
4+ edition = " 2024 "
55authors = [" meh. <meh@schizofreni.co>" , " @ssrlive" ]
66license = " WTFPL"
77description = " TUN device creation and handling."
88repository = " https://github.com/meh/rust-tun"
99keywords = [" tun" , " network" , " tunnel" , " bindings" ]
10- rust-version = " 1.77 "
10+ # rust-version = "1.85 "
1111
1212[package .metadata .docs .rs ]
1313all-features = true
1414
1515[lib ]
16- crate-type = [" staticlib" , " cdylib " , " lib" ]
16+ crate-type = [" staticlib" , " lib" ]
1717
1818[features ]
19- default = []
2019# default = ["async"]
2120async = [
2221 " tokio" ,
@@ -40,16 +39,8 @@ tokio = { version = "1", features = [
4039], optional = true }
4140tokio-util = { version = " 0.7" , features = [" codec" ], optional = true }
4241
43- [dev-dependencies ]
44- ctrlc2 = { version = " 3" , features = [" tokio" , " termination" ] }
45- env_logger = " 0.11"
46- futures = " 0.3"
47- packet = " 0.1"
48- serde_json = " 1"
49- tokio = { version = " 1" , features = [" rt-multi-thread" ] }
50-
51- [target .'cfg(unix)' .dependencies ]
52- nix = { version = " 0.29" , features = [" ioctl" ] }
42+ [target .'cfg(any(target_os = "macos", target_os = "freebsd"))' .dependencies ]
43+ ipnet = " 2"
5344
5445[target .'cfg(target_os = "windows")' .dependencies ]
5546futures = { version = " 0.3" , optional = true }
@@ -66,10 +57,24 @@ wintun-bindings = { version = "^0.7.7", features = [
6657 " panic_on_unsent_packets" ,
6758 " verify_binary_signature" ,
6859 " async" ,
60+ " enable_inner_logging" ,
61+ " winreg" ,
6962] }
7063
71- [target .'cfg(any(target_os = "macos", target_os = "freebsd"))' .dependencies ]
72- ipnet = " 2"
64+ [target .'cfg(unix)' .dependencies ]
65+ nix = { version = " 0.30" , features = [" ioctl" ] }
66+
67+ [dev-dependencies ]
68+ ctrlc2 = { version = " 3" , features = [" tokio" , " termination" ] }
69+ env_logger = " 0.11"
70+ futures = " 0.3"
71+ packet = " 0.1"
72+ serde_json = " 1"
73+ tokio = { version = " 1" , features = [" rt-multi-thread" ] }
74+
75+ [target .'cfg(unix)' .dev-dependencies ]
76+ futures = " 0.3"
77+ nix = { version = " 0.30" , features = [" ioctl" ] }
7378
7479[[example ]]
7580name = " read-async"
0 commit comments