From 21144daba63d23f9153a168f44fa028838cd281f Mon Sep 17 00:00:00 2001 From: Jude Nelson Date: Mon, 28 Aug 2023 11:06:27 -0400 Subject: [PATCH] chore: update cargo deps with new vendored deps' needs --- stacks-common/Cargo.toml | 9 +++++++++ stacks-common/src/libcommon.rs | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/stacks-common/Cargo.toml b/stacks-common/Cargo.toml index 19cd58172..863a82d53 100644 --- a/stacks-common/Cargo.toml +++ b/stacks-common/Cargo.toml @@ -32,6 +32,15 @@ slog-json = { version = "2.3.0", optional = true } chrono = "0.4.19" libc = "0.2.82" +[target.'cfg(unix)'.dependencies] +nix = "0.23" + +[target.'cfg(windows)'.dependencies] +winapi = { version = "0.3", features = ["consoleapi", "handleapi", "synchapi", "winbase"] } + +[target.'cfg(windows)'.dev-dependencies] +winapi = { version = "0.3", features = ["fileapi", "processenv", "winnt"] } + [dependencies.serde_json] version = "1.0" features = ["arbitrary_precision", "unbounded_depth"] diff --git a/stacks-common/src/libcommon.rs b/stacks-common/src/libcommon.rs index 87b241a03..79954d2ef 100644 --- a/stacks-common/src/libcommon.rs +++ b/stacks-common/src/libcommon.rs @@ -31,6 +31,12 @@ extern crate serde_derive; #[macro_use] extern crate serde_json; +#[cfg(unix)] +extern crate nix; + +#[cfg(windows)] +extern crate winapi; + #[macro_use] pub mod util;