Skip to content

Commit 88fa2c2

Browse files
committed
Make config constants public
This allows dependent crates to use the constants directly instead of duplicating the system of features and conversion into constants.
1 parent 9b791ae commit 88fa2c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ mod parsers;
130130
mod rand;
131131

132132
#[cfg(test)]
133-
mod config {
133+
pub mod config {
134134
#![allow(unused)]
135135
pub const ASSEMBLER_MAX_SEGMENT_COUNT: usize = 4;
136136
pub const DNS_MAX_NAME_SIZE: usize = 255;
@@ -150,7 +150,7 @@ mod config {
150150
}
151151

152152
#[cfg(not(test))]
153-
mod config {
153+
pub mod config {
154154
#![allow(unused)]
155155
include!(concat!(env!("OUT_DIR"), "/config.rs"));
156156
}

0 commit comments

Comments
 (0)