Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ criterion = { version = "0.5.1", features = ["html_reports"] }
[target.'cfg(target_os = "linux")'.dependencies]
fuse3 = { version = "0.8.1", features = ["tokio-runtime", "unprivileged"] }

[target.'cfg(target_os = "windows")'.dependencies]
winfsp = { version = "0.12", features = ["async-io"] }
tokio = { version = "1.36", features = ["full"] }

[[bench]]
name = "crypto_read"
harness = false
Expand Down
6 changes: 3 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ use anyhow::Result;

mod keyring;

#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "windows"))]
mod run;

#[tokio::main]
async fn main() -> Result<()> {
#[cfg(any(target_os = "macos", target_os = "windows"))]
#[cfg(target_os = "macos")]
{
eprintln!("he he, not yet ready for this platform, but soon my friend, soon :)");
eprintln!("Bye!");
Expand All @@ -20,6 +20,6 @@ async fn main() -> Result<()> {
return Ok(());
}

#[cfg(target_os = "linux")]
#[cfg(any(target_os = "linux", target_os = "windows"))]
run::run().await
}
13 changes: 10 additions & 3 deletions src/mount.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,18 @@ use linux::MountHandleInnerImpl;
#[cfg(target_os = "linux")]
use linux::MountPointImpl;

#[cfg(not(target_os = "linux"))]
#[cfg(target_os = "windows")]
mod windows;
#[cfg(target_os = "windows")]
use windows::MountHandleInnerImpl;
#[cfg(target_os = "windows")]
use windows::MountPointImpl;

#[cfg(not(any(target_os = "linux", target_os = "windows")))]
mod dummy;
#[cfg(not(target_os = "linux"))]
#[cfg(not(any(target_os = "linux", target_os = "windows")))]
use dummy::MountHandleInnerImpl;
#[cfg(not(target_os = "linux"))]
#[cfg(not(any(target_os = "linux", target_os = "windows")))]
use dummy::MountPointImpl;

#[async_trait]
Expand Down
Loading