Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port windows implementation from winapi to windows-rs #302

Merged
merged 4 commits into from
Aug 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 13 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ description = "A multiprocess drop-in replacement for Rust channels"
authors = ["The Servo Project Developers"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/servo/ipc-channel"
edition = "2018"
edition = "2021"

[features]
force-inprocess = []
memfd = ["sc"]
unstable = []
async = ["futures", "futures-test"]
win32-trace = []
windows-shared-memory-equality = []
windows-shared-memory-equality = ["windows/Win32_System_LibraryLoader"]

[dependencies]
bincode = "1"
Expand All @@ -25,7 +25,7 @@ lazy_static = "1"
libc = "0.2.12"
rand = "0.7"
serde = { version = "1.0", features = ["rc"] }
tempfile = "3"
tempfile = "3.4"
uuid = { version = "1", features = ["v4"] }

[target.'cfg(any(target_os = "linux", target_os = "openbsd", target_os = "freebsd"))'.dependencies]
Expand All @@ -35,16 +35,15 @@ sc = { version = "0.2.2", optional = true }
[dev-dependencies]
crossbeam-utils = "0.8"

[target.'cfg(target_os = "windows")'.dependencies.winapi]
version = "0.3.7"
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "0.48.0"
features = [
"minwindef",
"ioapiset",
"memoryapi",
"namedpipeapi",
"handleapi",
"fileapi",
"impl-default",
"synchapi",
"errhandlingapi"
"Win32_Foundation",
"Win32_System_WindowsProgramming",
"Win32_System_Threading",
"Win32_System_Pipes",
"Win32_System_Memory",
"Win32_System_IO",
"Win32_Storage_FileSystem",
"Win32_Security",
]
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ extern crate futures_test;
pub mod asynch;

#[cfg(all(not(feature = "force-inprocess"), target_os = "windows"))]
extern crate winapi;
extern crate windows;


pub mod ipc;
Expand Down