Skip to content

Commit

Permalink
Merge pull request #91 from Berrysoft/dev/unix-pipe
Browse files Browse the repository at this point in the history
Add unix pipe.
  • Loading branch information
Berrysoft committed Oct 18, 2023
2 parents 13e5685 + f0770ec commit 636a8ee
Show file tree
Hide file tree
Showing 8 changed files with 540 additions and 13 deletions.
9 changes: 9 additions & 0 deletions compio-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,20 @@ windows-sys = { version = "0.48", features = ["Win32_Security_Authorization"] }
# Unix specific dependencies
[target.'cfg(unix)'.dependencies]
libc = "0.2"
os_pipe = "1"

# Shared dev dependencies for all platforms
[dev-dependencies]
compio-runtime = { workspace = true, features = ["time"] }
futures-util = "0.3"

# Windows specific dev dependencies
[target.'cfg(target_os = "windows")'.dev-dependencies]
windows-sys = { version = "0.48", features = ["Win32_Security_Authorization"] }

# Unix specific dev dependencies
[target.'cfg(unix)'.dev-dependencies]
nix = { version = "0.27", features = ["fs"] }

[features]
runtime = ["dep:compio-buf", "dep:compio-io", "dep:compio-runtime"]
3 changes: 3 additions & 0 deletions compio-fs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ pub use open_options::*;

#[cfg(windows)]
pub mod named_pipe;

#[cfg(unix)]
pub mod pipe;
Loading

0 comments on commit 636a8ee

Please sign in to comment.