@@ -89,18 +89,27 @@ pub mod endpoint;
8989#[ cfg( feature = "workload-api" ) ]
9090pub 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