Skip to content

Commit

Permalink
Fix Bumping version to 3.0.3 with auto build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeChatP committed Oct 21, 2024
1 parent 201557f commit a02258e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ serde_json = "1.0"
toml = "0.8"

[dependencies]
rar-common = { path = "rar-common", version = "3.0.0", package = "rootasrole-core" }
rar-common = { path = "rar-common", version = "3.0.3", package = "rootasrole-core" }
log = "0.4"
libc = "0.2"
strum = { version = "0.26", features = ["derive"] }
Expand Down
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ fn set_cargo_version(package_version: &str, file: &str) -> Result<(), Box<dyn Er
for line in lines {
if line.starts_with("version") {
writeln!(cargo_toml, "version = \"{}\"", package_version)?;
} else if line.starts_with("rar-common =") {
writeln!(cargo_toml, "rar-common = {{ path = \"rar-common\", version = \"{}\", package = \"rootasrole-core\" }}", package_version)?;
} else {
writeln!(cargo_toml, "{}", line)?;
}
Expand Down

0 comments on commit a02258e

Please sign in to comment.