Skip to content

Commit

Permalink
Merge pull request #211 from Xynnn007/fix-feature
Browse files Browse the repository at this point in the history
fix: bring tuf feature out of rekor and add related docs
  • Loading branch information
flavio authored Feb 8, 2023
2 parents 01acef6 + 11d3a97 commit dbb5655
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "Apache-2.0"
readme = "README.md"

[features]
default = ["full-native-tls", "cached-client"]
default = ["full-native-tls", "cached-client", "tuf"]

full-native-tls = ["fulcio-native-tls", "rekor-native-tls", "cosign-native-tls", "mock-client-native-tls"]
full-rustls-tls = ["fulcio-rustls-tls", "rekor-rustls-tls", "cosign-rustls-tls", "mock-client-rustls-tls"]
Expand All @@ -28,7 +28,8 @@ oauth = []

rekor-native-tls = [ "reqwest/native-tls", "rekor"]
rekor-rustls-tls = [ "reqwest/rustls-tls", "rekor" ]
rekor = [ "tuf" ]
rekor = []

tuf = [ "tough", "regex" ]

cosign-native-tls = [ "oci-distribution/native-tls", "cert", "cosign", "registry-native-tls" ]
Expand Down
1 change: 1 addition & 0 deletions src/cosign/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ impl Client {
}
}

#[cfg(feature = "mock-client")]
#[cfg(test)]
mod tests {
use super::*;
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@
//! - `cached-client`: Enables support for OCI registry client caching.
//!
//! - `test-registry`: Enables tests based on a temporary OCI registry.
//! - `tuf`: Enables support for TUF to request for fulcio certs and rekor public key.
#![forbid(unsafe_code)]
#![warn(clippy::unwrap_used, clippy::panic)]
Expand Down

0 comments on commit dbb5655

Please sign in to comment.