From 0225a26b6d8c046ff9a428c6ab4b4064080b0d7b Mon Sep 17 00:00:00 2001 From: Daniel McCarney Date: Sun, 10 Dec 2023 18:22:27 -0500 Subject: [PATCH] ext: mark new constructor as test-only --- rcgen/src/ext.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rcgen/src/ext.rs b/rcgen/src/ext.rs index 92893ffd..ddbf0f84 100644 --- a/rcgen/src/ext.rs +++ b/rcgen/src/ext.rs @@ -203,6 +203,7 @@ impl Extensions { /// # Errors /// /// Returns [Error::DuplicateExtension] if any of the extensions have the same OID. + #[cfg(test)] pub(crate) fn new( extensions: impl IntoIterator>, ) -> Result {