Skip to content

Commit 501fa10

Browse files
committed
fix: build.rs spliting bug and crates.io stuff
1 parent 6b122e4 commit 501fa10

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ name = "rootasrole"
66
# The project version is managed on json file in resources/rootasrole.json
77
version = "3.1.3"
88
rust-version = "1.76.0"
9-
authors = ["Eddie Billoir <eddie.billoir@irit.fr>"]
9+
authors = ["Eddie Billoir <lechatp@outlook.fr>"]
1010
edition = "2021"
1111
default-run = "dosr"
12-
description = "An alternative to sudo that uses Linux capabilities and Role based access control."
12+
description = "A better alternative to sudo(-rs)/su"
1313
license = "LGPL-3.0-or-later"
1414
repository = "https://github.com/LeChatP/RootAsRole"
1515
homepage = "https://lechatp.github.io/RootAsRole/"

build.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ fn set_readme_version(package_version: &str, file: &str) -> Result<(), Box<dyn E
4242
for line in lines {
4343
if line.starts_with("# RootAsRole (V") {
4444
let mut s = line.split("(V").next().unwrap().to_string();
45-
let end = line.split(')').nth(1).unwrap();
46-
s.push_str(&format!("(V{}){}", package_version, end));
45+
let end = line.split(')').skip(1).fold(String::new(), |acc, x| acc + ")" + x);
46+
s.push_str(&format!("(V{}{}", package_version, end));
4747
writeln!(readme, "{}", s)?;
4848
} else {
4949
writeln!(readme, "{}", line)?;

rar-common/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
name = "rootasrole-core"
33
version = "3.1.3"
44
edition = "2021"
5-
description = "This core crate contains the RBAC and main features for the RootAsRole project."
5+
description = "This core crate for the RootAsRole project."
66
license = "LGPL-3.0-or-later"
7+
authors = ["Eddie Billoir <[email protected]>"]
78

89
[dependencies]
910
libc = "0.2"

0 commit comments

Comments
 (0)