Skip to content

Commit

Permalink
Renamed 'tuf' feature flag to 'sigstore-repository'
Browse files Browse the repository at this point in the history
  • Loading branch information
tannaurus committed Feb 27, 2024
1 parent 3ae01b9 commit 1e6a059
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ readme = "README.md"
repository = "https://github.com/sigstore/sigstore-rs"

[features]
default = ["full-native-tls", "cached-client", "tuf", "sign"]
default = ["full-native-tls", "cached-client", "sigstore-repository", "sign"]
wasm = ["getrandom/js"]

full-native-tls = [
Expand Down Expand Up @@ -40,7 +40,7 @@ rekor-native-tls = ["reqwest/native-tls", "rekor"]
rekor-rustls-tls = ["reqwest/rustls-tls", "rekor"]
rekor = ["reqwest"]

tuf = ["tough", "regex"]
sigstore-repository = ["tough", "regex"]

sign = []

Expand Down
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ pub enum SigstoreError {
#[error("No Signature Layer passed verification")]
SigstoreNoVerifiedLayer,

#[cfg(feature = "tuf")]
#[cfg(feature = "sigstore-repository")]
#[error(transparent)]
TufError(#[from] Box<tough::error::Error>),

Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ pub mod registry;
#[cfg(feature = "rekor")]
pub mod rekor;

#[cfg(all(feature = "tuf"))]
#[cfg(all(feature = "sigstore-repository"))]
pub mod tuf;

// Don't export yet -- these types should only be useful internally.
Expand Down
2 changes: 1 addition & 1 deletion src/rekor/models/proposed_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub enum ProposedEntry {
#[serde(rename = "spec")]
spec: serde_json::Value,
},
#[serde(rename = "tuf")]
#[serde(rename = "sigstore-repository")]
Tuf {
#[serde(rename = "apiVersion")]
api_version: String,
Expand Down
2 changes: 1 addition & 1 deletion src/rekor/models/search_index_public_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub enum Format {
Minisign,
#[serde(rename = "ssh")]
Ssh,
#[serde(rename = "tuf")]
#[serde(rename = "sigstore-repository")]
Tuf,
}

Expand Down

0 comments on commit 1e6a059

Please sign in to comment.