From 10983ade88387546d672b94a2b9b07a7c3f79f0a Mon Sep 17 00:00:00 2001 From: Krystian Bajno Date: Sat, 12 Oct 2024 04:45:39 +0200 Subject: [PATCH] build --- Cargo.lock | 8 +++++++- Cargo.toml | 5 ++++- build.rs | 3 +++ src/main.rs | 8 -------- 4 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 build.rs diff --git a/Cargo.lock b/Cargo.lock index 5f96890..6533495 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -389,7 +389,6 @@ dependencies = [ "clap", "colored", "flate2", - "log", "pem", "pkcs8", "rand", @@ -397,6 +396,7 @@ dependencies = [ "rouille", "rsa", "rustls-pemfile", + "static_vcruntime", "tokio", "tokio-rustls", "url", @@ -1298,6 +1298,12 @@ dependencies = [ "der", ] +[[package]] +name = "static_vcruntime" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "954e3e877803def9dc46075bf4060147c55cd70db97873077232eae0269dc89b" + [[package]] name = "string_cache" version = "0.8.7" diff --git a/Cargo.toml b/Cargo.toml index 5796cbb..4965fc8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,9 +18,12 @@ flate2 = "1.0.31" url = "2.2.2" colored = "2.0.0" ammonia = "4.0.0" -log = "0.4" +# log = "0.4" # simplelog = "0.11" +[build-dependencies] +static_vcruntime = "2.0" + [profile.release] opt-level = "z" strip = true diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..9be616d --- /dev/null +++ b/build.rs @@ -0,0 +1,3 @@ +fn main() { + static_vcruntime::metabuild(); +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 35eb53c..069bc96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,16 +10,8 @@ use clap::{Arg, Command}; use http::server; use proxy::proxy::start_ssl_proxy; -// use simplelog::*; -// use std::fs::File; - #[tokio::main] async fn main() { - // let log_file = File::create("droppa.log").unwrap(); - // CombinedLogger::init(vec![ - // WriteLogger::new(LevelFilter::Info, Config::default(), log_file), - // ]).unwrap(); - let matches = Command::new("DROPPA") .version("1.0") .author("Krystian Bajno")