Skip to content

Commit 8611792

Browse files
authored
Prepare release spiffe 0.7.3 (#194)
* Prepare release spiffe 0.7.3 Signed-off-by: Max Lambrecht <[email protected]> * Update CHANGELOG for 0.7.3 Signed-off-by: Max Lambrecht <[email protected]> --------- Signed-off-by: Max Lambrecht <[email protected]>
1 parent 66cec5f commit 8611792

File tree

5 files changed

+33
-13
lines changed

5 files changed

+33
-13
lines changed

spiffe/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## [0.7.3] – 2025-12-24
4+
5+
### Fixed
6+
7+
* Fixed compilation when building with --no-default-features.
8+
* Correctly feature-gated public re-exports and error variants tied to optional dependencies.
9+
* Prevented optional dependencies from being required in minimal builds.
10+
311
## [0.7.2] – 2025-12-24
412

513
### Changed

spiffe/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "spiffe"
3-
version = "0.7.2"
3+
version = "0.7.3"
44
edition = "2024"
55
authors = ["Max Lambrecht <[email protected]>"]
66
description = "Rust client library implementation for SPIFFE"
@@ -61,6 +61,7 @@ spiffe-types = []
6161

6262
# SPIRE Workload API client implementation.
6363
workload-api = [
64+
"spiffe-types",
6465
"dep:prost",
6566
"dep:prost-types",
6667
"dep:tokio",

spiffe/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Add `spiffe` to your `Cargo.toml`:
2626

2727
```toml
2828
[dependencies]
29-
spiffe = "0.7.2"
29+
spiffe = "0.7.3"
3030
````
3131

3232
This includes both core SPIFFE types and a Workload API client.

spiffe/src/error.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@ pub enum GrpcClientError {
4141
SpiffeId(#[from] SpiffeIdError),
4242

4343
/// gRPC status returned by the Workload API.
44+
#[cfg(feature = "workload-api")]
4445
#[error("gRPC status: {0}")]
4546
Grpc(#[from] tonic::Status),
4647

4748
/// Transport error while connecting to the Workload API.
49+
#[cfg(feature = "workload-api")]
4850
#[error("gRPC transport error: {0}")]
4951
Transport(#[from] tonic::transport::Error),
5052
}

spiffe/src/lib.rs

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,27 @@ pub mod endpoint;
8989
#[cfg(feature = "workload-api")]
9090
pub mod workload_api;
9191

92-
// Core SPIFFE types and utilities re-exported for simplified access.
93-
pub use bundle::BundleSource;
94-
pub use bundle::jwt::{JwtBundle, JwtBundleError, JwtBundleSet};
95-
pub use bundle::x509::{X509Bundle, X509BundleError, X509BundleSet};
96-
pub use spiffe_id::{SpiffeId, SpiffeIdError, TrustDomain};
97-
pub use svid::SvidSource;
98-
pub use svid::jwt::{JwtSvid, JwtSvidError};
99-
pub use svid::x509::{X509Svid, X509SvidError};
92+
// -----------------------
93+
// Re-exports
94+
// -----------------------
95+
96+
/// Core SPIFFE types and utilities re-exported for simplified access.
97+
#[cfg(feature = "spiffe-types")]
98+
pub use crate::{
99+
bundle::BundleSource,
100+
bundle::jwt::{JwtBundle, JwtBundleError, JwtBundleSet},
101+
bundle::x509::{X509Bundle, X509BundleError, X509BundleSet},
102+
spiffe_id::{SpiffeId, SpiffeIdError, TrustDomain},
103+
svid::SvidSource,
104+
svid::jwt::{JwtSvid, JwtSvidError},
105+
svid::x509::{X509Svid, X509SvidError},
106+
};
100107

101108
#[cfg(feature = "workload-api")]
102-
pub use workload_api::client::WorkloadApiClient;
109+
pub use crate::workload_api::client::WorkloadApiClient;
110+
103111
#[cfg(feature = "workload-api")]
104-
pub use workload_api::x509_context::X509Context;
112+
pub use crate::workload_api::x509_context::X509Context;
113+
105114
#[cfg(feature = "workload-api")]
106-
pub use workload_api::x509_source::{X509Source, X509SourceBuilder};
115+
pub use crate::workload_api::x509_source::{X509Source, X509SourceBuilder};

0 commit comments

Comments
 (0)