From 88fa2c22540506b16914f5b571c4b2ae49c91e49 Mon Sep 17 00:00:00 2001 From: Nils Fitinghoff Date: Mon, 13 Nov 2023 10:44:13 +0100 Subject: [PATCH] Make `config` constants public This allows dependent crates to use the constants directly instead of duplicating the system of features and conversion into constants. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5f38606a8..040ff5749 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -130,7 +130,7 @@ mod parsers; mod rand; #[cfg(test)] -mod config { +pub mod config { #![allow(unused)] pub const ASSEMBLER_MAX_SEGMENT_COUNT: usize = 4; pub const DNS_MAX_NAME_SIZE: usize = 255; @@ -150,7 +150,7 @@ mod config { } #[cfg(not(test))] -mod config { +pub mod config { #![allow(unused)] include!(concat!(env!("OUT_DIR"), "/config.rs")); }