fix: make fs a feature

This commit is contained in:
Strix 2023-10-14 22:39:16 +02:00
parent 5ede522eeb
commit c29e2a70f0
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774
2 changed files with 4 additions and 1 deletions

View file

@ -6,7 +6,8 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["dom"]
default = ["dom", "fs"]
dom = []
fs = []
[dependencies]

View file

@ -5,6 +5,7 @@ pub mod dom;
/// All sorts of general use macros
pub mod macros;
#[cfg(feature = "fs")]
/// Filesystem things
pub mod filesystem;
@ -29,6 +30,7 @@ mod tests {
assert_eq!(String::from("foo"), into!(String, foo));
}
#[cfg(feature = "fs")]
#[test]
fn fs() {
if let Ok(_) = std::path::Path::new("./file").ensure_file() {