diff --git a/Cargo.toml b/Cargo.toml index ecf7e37..6ccfad3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,8 @@ hickory-client = { version = "0.24.1", optional = true } tokio = { version = "1.39.2", features = ["macros", "rt-multi-thread"] } [features] -file-sscv = ["dep:dashmap", "tokio/fs"] +file-sscv = ["file"] +file = ["dep:dashmap", "tokio/fs"] dane = ["hickory"] hickory = ["dep:hickory-client"] @@ -51,4 +52,4 @@ path = "examples/simple.rs" [[example]] name = "main" path = "examples/main.rs" -required-features = ["file-sscv", "dane"] +required-features = ["file", "dane"] diff --git a/src/certs/file/mod.rs b/src/certs/file/mod.rs new file mode 100644 index 0000000..802f9e7 --- /dev/null +++ b/src/certs/file/mod.rs @@ -0,0 +1 @@ +pub mod sscv; diff --git a/src/certs/file_sscv.rs b/src/certs/file/sscv.rs similarity index 100% rename from src/certs/file_sscv.rs rename to src/certs/file/sscv.rs diff --git a/src/certs/mod.rs b/src/certs/mod.rs index 219bb3d..af9b63d 100644 --- a/src/certs/mod.rs +++ b/src/certs/mod.rs @@ -3,8 +3,8 @@ pub mod fingerprint; pub mod verifier; -#[cfg(feature = "file-sscv")] -pub mod file_sscv; +#[cfg(feature = "file")] +pub mod file; #[cfg(feature = "hickory")] pub mod dane;