Merge pull request #636 from fukusuket/bugfix-error-when-target-env-not-installed-vcc-redistribute-package

Bugfix error when target env not installed vc redistribute package
This commit is contained in:
DustInDark
2022-07-31 11:39:05 +09:00
committed by GitHub
3 changed files with 7 additions and 4 deletions

View File

@@ -38,9 +38,11 @@ hyper = "0.14.*"
lock_api = "0.4.*"
crossbeam-utils = "0.8.*"
[build-dependencies]
static_vcruntime = "2.*"
[target.'cfg(windows)'.dependencies]
is_elevated = "0.1.*"
static_vcruntime = "2.*"
[target.'cfg(unix)'.dependencies] #Mac and Linux
openssl = { version = "*", features = ["vendored"] } #vendored is needed to compile statically.

4
build.rs Normal file
View File

@@ -0,0 +1,4 @@
fn main() {
#[cfg(target_os = "windows")]
static_vcruntime::metabuild();
}

View File

@@ -3,9 +3,6 @@ extern crate downcast_rs;
extern crate serde;
extern crate serde_derive;
#[cfg(target_os = "windows")]
extern crate static_vcruntime;
use bytesize::ByteSize;
use chrono::{DateTime, Datelike, Local};
use evtx::{EvtxParser, ParserSettings};