diff --git a/Cargo.toml b/Cargo.toml index aea24dd..4a1be54 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ name = "caps" version = "0.5.6" edition = "2018" -rust-version = "1.63" +rust-version = "1.71" authors = ["Luca Bruno "] license = "MIT/Apache-2.0" repository = "https://github.com/lucab/caps-rs" @@ -32,3 +32,6 @@ pre-release-commit-message = "cargo: caps release {{version}}" sign-commit = true sign-tag = true tag-message = "caps {{version}}" + +[lints.rust] +unexpected_cfgs = { level = "allow", check-cfg = ['cfg(target_arch, values("e2k"))'] } diff --git a/src/nr.rs b/src/nr.rs index 14846ee..1ffa322 100644 --- a/src/nr.rs +++ b/src/nr.rs @@ -125,3 +125,8 @@ pub const CAPSET: i64 = 91; pub const CAPGET: i64 = 90; #[cfg(target_arch = "loongarch64")] pub const CAPSET: i64 = 91; + +#[cfg(target_arch = "e2k")] +pub const CAPGET: i64 = 184; +#[cfg(target_arch = "e2k")] +pub const CAPSET: i64 = 185;