fix windows issues

This commit is contained in:
ssrlive 2024-08-29 09:18:46 +08:00
parent 8334acd085
commit beb3d364a8
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "tun2proxy"
version = "1.0.0"
version = "0.4.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/blechschmidt/tun2proxy"

View file

@ -5,8 +5,8 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
use std::io::Write;
f.write_all(format!("CARGO_TARGET_DIR: '{}'\r\n", cargo_target_dir.display()).as_bytes())?;
// The wintun crate's root directory
let crate_dir = get_crate_dir("wintun")?;
// The wintun-bindings crate's root directory
let crate_dir = get_crate_dir("wintun-bindings")?;
// The path to the DLL file, relative to the crate root, depending on the target architecture
let dll_path = get_wintun_bin_relative_path()?;