Skip to content

Commit

Permalink
change method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
baoyachi committed Jul 22, 2024
1 parent 0508f45 commit 48ab3c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ mod dep_source_replace {

/// Create all `shadow-rs` constants which are determined by the build environment.
/// The data for these constants is provided by the `std_env` argument.
pub fn new_system_env(std_env: &BTreeMap<String, String>) -> BTreeMap<ShadowConst, ConstVal> {
pub(crate) fn new_system_env(
std_env: &BTreeMap<String, String>,
) -> BTreeMap<ShadowConst, ConstVal> {
let mut env = SystemEnv::default();
env.map.insert(
BUILD_OS,
Expand Down Expand Up @@ -328,7 +330,7 @@ The debug configuration with which the project was built.
Note that this is not the Rust channel, but either `debug` or `release`, depending on whether debug assertions were enabled in the build or not. "#;
const BUILD_RUST_CHANNEL: ShadowConst = "BUILD_RUST_CHANNEL";

pub fn build_time(project: &mut Project) {
pub(crate) fn build_time(project: &mut Project) {
// Enable reproducible builds: https://reproducible-builds.org/docs/source-date-epoch/
let time = now_date_time();
project.map.insert(
Expand Down Expand Up @@ -358,7 +360,7 @@ pub fn build_time(project: &mut Project) {
);
}

pub fn new_project(std_env: &BTreeMap<String, String>) -> BTreeMap<ShadowConst, ConstVal> {
pub(crate) fn new_project(std_env: &BTreeMap<String, String>) -> BTreeMap<ShadowConst, ConstVal> {
let mut project = Project::default();
build_time(&mut project);
project.map.insert(
Expand Down
2 changes: 1 addition & 1 deletion src/git.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl Git {
}
}

pub fn new_git(
pub(crate) fn new_git(
path: &Path,
ci: CiType,
std_env: &BTreeMap<String, String>,
Expand Down

0 comments on commit 48ab3c7

Please sign in to comment.