File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,8 @@ impl<P: Profile> TbsCertificateInner<P> {
171
171
/// boolean.
172
172
///
173
173
/// ```
174
+ /// # #[cfg(feature = "pem")]
175
+ /// # fn pemonly() {
174
176
/// # const CERT_PEM: &str = include_str!("../tests/examples/amazon.pem");
175
177
/// use x509_cert::{der::DecodePem, ext::pkix::BasicConstraints, Certificate};
176
178
/// let certificate = Certificate::from_pem(CERT_PEM.as_bytes()).expect("parse certificate");
@@ -179,6 +181,7 @@ impl<P: Profile> TbsCertificateInner<P> {
179
181
/// .expect("Failed to parse extension")
180
182
/// .expect("Basic constraints expected");
181
183
/// # let _ = constraints;
184
+ /// # }
182
185
/// ```
183
186
///
184
187
/// # Errors
@@ -204,6 +207,8 @@ impl<P: Profile> TbsCertificateInner<P> {
204
207
/// Returns a filtered iterator over all the extensions with the OID.
205
208
///
206
209
/// ```
210
+ /// # #[cfg(feature = "pem")]
211
+ /// # fn pemonly() {
207
212
/// # const CERT_PEM: &str = include_str!("../tests/examples/amazon.pem");
208
213
/// use x509_cert::{der::DecodePem, ext::pkix::BasicConstraints, Certificate};
209
214
/// let certificate = Certificate::from_pem(CERT_PEM.as_bytes()).expect("parse certificate");
@@ -212,6 +217,7 @@ impl<P: Profile> TbsCertificateInner<P> {
212
217
/// while let Some(Ok((critical, extension))) = extensions_found.next() {
213
218
/// println!("Found (critical={critical}): {extension:?}");
214
219
/// }
220
+ /// # }
215
221
/// ```
216
222
///
217
223
/// # Safety
You can’t perform that action at this time.
0 commit comments