xch 0.2.1

A CLI utility and rust crate to atomically swap the content of two paths.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13

cfg_if! {
    if #[cfg(windows)] {
        mod windows;
        pub use self::windows::{xch, PlatformError};
    } else if #[cfg(all(target_os = "linux", feature = "nightly"))] {
        mod linux;
        pub use self::linux::{xch, PlatformError};
    } else {
        mod not_implemented;
        pub use self::not_implemented::{xch, PlatformError};
    }
}