Skip to content

Commit

Permalink
Merge pull request #636 from fukusuket/bugfix-error-when-target-env-n…
Browse files Browse the repository at this point in the history
…ot-installed-vcc-redistribute-package

Bugfix error when target env not installed vc redistribute package
  • Loading branch information
hitenkoku authored Jul 31, 2022
2 parents 1123159 + 3522f43 commit 1ce76f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fn main() {
#[cfg(target_os = "windows")]
static_vcruntime::metabuild();
}
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit 1ce76f1

Please sign in to comment.