crud_path/
lib.rs

1mod common;
2pub use common::*;
3
4mod unix;
5#[cfg(not(target_os = "windows"))]
6pub use unix::*;
7
8pub mod windows;
9#[cfg(target_os = "windows")]
10pub use windows::*;
11
12mod github;
13pub use github::*;
14
15#[cfg(target_os = "windows")]
16pub const DELIMITER: char = ';';
17
18#[cfg(not(target_os = "windows"))]
19pub const DELIMITER: char = ':';
20
21#[cfg(test)]
22mod test {
23    use crate::{add_path, has_path};
24
25    #[test]
26    fn test() {
27        add_path("abcd");
28        assert!(has_path("abcd"))
29    }
30}