Skip to content

Commit 7202ad3

Browse files
committed
make version less public
1 parent 6f4437c commit 7202ad3

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

vm/src/version.rs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ pub fn get_version_info() -> VersionInfo {
4040
}
4141
}
4242

43-
pub fn get_version_number() -> String {
43+
fn get_version_number() -> String {
4444
format!("{}.{}.{}{}", MAJOR, MINOR, MICRO, RELEASELEVEL)
4545
}
4646

47-
pub fn get_compiler() -> String {
47+
fn get_compiler() -> String {
4848
let rustc_version = rustc_version_runtime::version_meta();
4949
format!("\n[rustc {}]", rustc_version.semver)
5050
}
5151

52-
pub fn get_build_info() -> String {
52+
fn get_build_info() -> String {
5353
// See: https://reproducible-builds.org/docs/timestamps/
5454
let git_revision = get_git_revision();
5555
let separator = if git_revision.is_empty() { "" } else { ":" };
@@ -78,7 +78,7 @@ pub fn get_git_tag() -> String {
7878
option_env!("RUSTPYTHON_GIT_TAG").unwrap_or("").to_owned()
7979
}
8080

81-
pub fn get_git_branch() -> String {
81+
fn get_git_branch() -> String {
8282
option_env!("RUSTPYTHON_GIT_BRANCH")
8383
.unwrap_or("")
8484
.to_owned()
@@ -107,21 +107,14 @@ fn get_git_timestamp_datetime() -> DateTime<Local> {
107107
datetime
108108
}
109109

110-
pub fn get_git_date() -> String {
110+
fn get_git_date() -> String {
111111
let datetime = get_git_timestamp_datetime();
112112

113113
datetime.format("%b %e %Y").to_string()
114114
}
115115

116-
pub fn get_git_time() -> String {
116+
fn get_git_time() -> String {
117117
let datetime = get_git_timestamp_datetime();
118118

119119
datetime.format("%H:%M:%S").to_string()
120120
}
121-
122-
pub fn get_git_datetime() -> String {
123-
let date = get_git_date();
124-
let time = get_git_time();
125-
126-
format!("{} {}", date, time)
127-
}

0 commit comments

Comments
 (0)