Skip to content

Commit 4c48b21

Browse files
committed
chore: 📦 update build script.
1 parent 03ad672 commit 4c48b21

File tree

2 files changed

+12
-17
lines changed

2 files changed

+12
-17
lines changed

build.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,13 @@ fn main() {
2626

2727
let version_file_str = format!(
2828
r#"
29-
30-
// auto generated by build.rs
31-
32-
pub const NAME: &str = "{}";
33-
pub const VERSION: &str = "{}";
34-
pub const AUTHOR: &str = "{}";
35-
pub const DESCRIPTION: &str = "{}";
29+
// auto generated by build.rs
3630
37-
"#,
31+
pub const NAME: &str = "{}";
32+
pub const VERSION: &str = "{}";
33+
pub const AUTHOR: &str = "{}";
34+
pub const DESCRIPTION: &str = "{}";
35+
"#,
3836
cargo_toml.package.name,
3937
cargo_toml.package.version,
4038
cargo_toml.package.authors.join(", "),

src/version.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1+
// auto generated by build.rs
12

2-
3-
// auto generated by build.rs
4-
5-
pub const NAME: &str = "grc";
6-
pub const VERSION: &str = "1.3.0";
7-
pub const AUTHOR: &str = "sdttttt <sdttttt@outlook.com>";
8-
pub const DESCRIPTION: &str = "Similar to git-cz, gcr will help you to provide a better Git experience.";
9-
10-
3+
pub const NAME: &str = "grc";
4+
pub const VERSION: &str = "1.3.0";
5+
pub const AUTHOR: &str = "sdttttt <sdttttt@outlook.com>";
6+
pub const DESCRIPTION: &str =
7+
"Similar to git-cz, gcr will help you to provide a better Git experience.";

0 commit comments

Comments
 (0)