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:
@@ -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
4
build.rs
Normal file
@@ -0,0 +1,4 @@
|
||||
fn main() {
|
||||
#[cfg(target_os = "windows")]
|
||||
static_vcruntime::metabuild();
|
||||
}
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user