We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bbc08e commit f5d49b2Copy full SHA for f5d49b2
src/lib.rs
@@ -60,6 +60,12 @@ extern crate std;
60
mod tests;
61
62
mod pemfile;
63
+#[cfg(feature = "std")]
64
+use core::iter;
65
+/// --- Legacy APIs:
66
67
+use std::io;
68
+
69
#[cfg(feature = "std")]
70
pub use pemfile::{read_all, read_one};
71
pub use pemfile::{read_one_from_slice, Error, Item};
@@ -71,12 +77,6 @@ use pki_types::{
77
PrivatePkcs8KeyDer, PrivateSec1KeyDer, SubjectPublicKeyInfoDer,
72
78
};
73
79
74
-#[cfg(feature = "std")]
75
-use core::iter;
76
-/// --- Legacy APIs:
-use std::io;
-
80
/// Return an iterator over certificates from `rd`.
81
///
82
/// Filters out any PEM sections that are not certificates and yields errors if a problem
0 commit comments