Skip to content

Commit

Permalink
Merge pull request #855 from nilfit/pub-config
Browse files Browse the repository at this point in the history
Make `config` constants public
  • Loading branch information
Dirbaio committed Nov 13, 2023
2 parents 9b791ae + 88fa2c2 commit b57e2f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -150,7 +150,7 @@ mod config {
}

#[cfg(not(test))]
mod config {
pub mod config {
#![allow(unused)]
include!(concat!(env!("OUT_DIR"), "/config.rs"));
}
Expand Down

0 comments on commit b57e2f9

Please sign in to comment.