Skip to content

Commit 79659dc

Browse files
committed
bump: update version to 3.2.2 across all relevant files
A small update in readme for crates.io version tracker.
1 parent 35136e1 commit 79659dc

File tree

7 files changed

+13
-37
lines changed

7 files changed

+13
-37
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ members = ["xtask", "rar-common"]
44
[package]
55
name = "rootasrole"
66
# The project version is managed on json file in resources/rootasrole.json
7-
version = "3.2.1"
7+
version = "3.2.2"
88
rust-version = "1.83.0"
99
authors = ["Eddie Billoir <lechatp@outlook.fr>"]
1010
edition = "2021"
@@ -71,7 +71,7 @@ toml = "0.8"
7171
chrono = { version = "0.4", features = ["unstable-locales"] }
7272

7373
[dependencies]
74-
rar-common = { path = "rar-common", version = "3.2.1", package = "rootasrole-core" }
74+
rar-common = { path = "rar-common", version = "3.2.2", package = "rootasrole-core" }
7575
log = "0.4"
7676
libc = "0.2"
7777
strum = { version = "0.26", features = ["derive"] }

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@
55
</p>
66
<p align="center">
77

8-
<img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/LeChatP/RootAsRole/build.yml?label=Build"/>
9-
<img alt="Test Status" src="https://img.shields.io/github/actions/workflow/status/LeChatP/RootAsRole/tests.yml?label=Unit%20Tests">
10-
<a href="https://codecov.io/gh/LeChatP/RootAsRole" ><img src="https://codecov.io/gh/LeChatP/RootAsRole/branch/main/graph/badge.svg?token=6J7CRGEIG8"/></a>
11-
<img alt="GitHub" src="https://img.shields.io/github/license/LeChatP/RootAsRole">
8+
<img alt="crates.io" src="https://img.shields.io/crates/v/rootasrole.svg?style=for-the-badge&label=Version&color=e37602&logo=rust" height="25"/>
9+
<img alt="Build Status" src="https://img.shields.io/github/actions/workflow/status/LeChatP/RootAsRole/build.yml?style=for-the-badge&logo=githubactions&label=Build&logoColor=white" height="25"/>
10+
<img alt="Tests Status" src="https://img.shields.io/github/actions/workflow/status/LeChatP/RootAsRole/tests.yml?style=for-the-badge&logo=githubactions&logoColor=white&label=Tests" height="25"/>
11+
<img alt="Codecov" src="https://img.shields.io/codecov/c/github/lechatp/rootasrole?style=for-the-badge&logo=codecov&color=green&link=https%3A%2F%2Fapp.codecov.io%2Fgh%2FLeChatP%2FRootAsRole" height="25">
12+
<img alt="GitHub" src="https://img.shields.io/github/license/LeChatP/RootAsRole?style=for-the-badge&logo=github&logoColor=white" height="25"/>
13+
1214

1315
</p>
1416
<!-- The project version is managed on json file in resources/rootasrole.json -->
1517
<!-- markdownlint-restore -->
1618

17-
# RootAsRole (V3.2.1) — A better alternative to `sudo(-rs)`/`su` • ⚡ Blazing fast • 🛡️ Memory-safe • 🔐 Security-oriented
19+
# RootAsRole — A better alternative to `sudo(-rs)`/`su` • ⚡ Blazing fast • 🛡️ Memory-safe • 🔐 Security-oriented
1820

1921
RootAsRole is a Linux/Unix privilege delegation tool based on **Role-Based Access Control (RBAC)**. It empowers administrators to assign precise privileges — not full root — to users and commands.
2022

build.rs

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -35,28 +35,6 @@ fn set_cargo_version(package_version: &str, file: &str) -> Result<(), Box<dyn Er
3535
Ok(())
3636
}
3737

38-
fn set_readme_version(package_version: &str, file: &str) -> Result<(), Box<dyn Error>> {
39-
let readme = File::open(std::path::Path::new(file)).expect("README.md not found");
40-
let reader = BufReader::new(readme);
41-
let lines = reader.lines().map(|l| l.unwrap()).collect::<Vec<String>>();
42-
let mut readme = File::create(std::path::Path::new(file)).expect("README.md not found");
43-
for line in lines {
44-
if line.starts_with("# RootAsRole (V") {
45-
let mut s = line.split("(V").next().unwrap().to_string();
46-
let end = line
47-
.split(')')
48-
.skip(1)
49-
.fold(String::new(), |acc, x| acc + ")" + x);
50-
s.push_str(&format!("(V{}{}", package_version, end));
51-
writeln!(readme, "{}", s)?;
52-
} else {
53-
writeln!(readme, "{}", line)?;
54-
}
55-
}
56-
readme.sync_all()?;
57-
Ok(())
58-
}
59-
6038
fn some_kind_of_uppercase_first_letter(s: &str) -> String {
6139
let mut c = s.chars();
6240
match c.next() {
@@ -135,10 +113,6 @@ fn main() {
135113
eprintln!("cargo:warning={}", err);
136114
}
137115

138-
if let Err(err) = set_readme_version(&package_version, "README.md") {
139-
eprintln!("cargo:warning={}", err);
140-
}
141-
142116
if let Err(err) = set_man_version(&package_version, "resources/man/en_US.md", Locale::en_US) {
143117
eprintln!("cargo:warning={}", err);
144118
}

rar-common/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rootasrole-core"
3-
version = "3.2.1"
3+
version = "3.2.2"
44
edition = "2021"
55
description = "This core crate for the RootAsRole project."
66
license = "LGPL-3.0-or-later"

resources/man/en_US.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% RootAsRole(8) RootAsRole 3.2.1 | System Manager's Manual
1+
% RootAsRole(8) RootAsRole 3.2.2 | System Manager's Manual
22
% Eddie Billoir <lechatp@outlook.fr>
33
% August 2025
44

resources/man/fr_FR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
% RootAsRole(8) RootAsRole 3.2.1 | Manuel de l'administrateur système
1+
% RootAsRole(8) RootAsRole 3.2.2 | Manuel de l'administrateur système
22
% Eddie Billoir <lechatp@outlook.fr>
33
% Août 2025
44

xtask/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "xtask"
33
# The project version is managed on json file in resources/rootasrole.json
4-
version = "3.2.1"
4+
version = "3.2.2"
55
edition = "2021"
66
publish = false
77

0 commit comments

Comments
 (0)