diff --git a/kernel/Cargo.toml b/kernel/Cargo.toml index 2c61f942b..4fb7156ce 100644 --- a/kernel/Cargo.toml +++ b/kernel/Cargo.toml @@ -40,6 +40,9 @@ armv7 = { git = "https://github.com/Foundation-Devices/armv7.git", branch = "upd xous-kernel = { package = "xous", version = "0.9.63", features = ["v2p"] } critical-section = "1.1.1" +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci)', 'cfg(baremetal)'] } + [features] cramium-soc = ["utralib/cramium-soc", "cramium-hal", "rand_chacha", "raw-trng"] cramium-fpga = ["utralib/cramium-fpga"] diff --git a/kernel/src/mem.rs b/kernel/src/mem.rs index 546d71690..df9c2d6cb 100644 --- a/kernel/src/mem.rs +++ b/kernel/src/mem.rs @@ -269,7 +269,7 @@ impl MemoryManager { owned_bytes } - #[cfg(all(baremetal, feature = "print-debug"))] + #[cfg(all(baremetal, feature = "debug-print"))] pub fn print_ownership(&self) { println!("Ownership ({} bytes in all):", unsafe { MEMORY_ALLOCATIONS.len() + EXTRA_ALLOCATIONS.len() diff --git a/loader/curve25519-dalek-loader/Cargo.toml b/loader/curve25519-dalek-loader/Cargo.toml index 0c86eb7bb..50da01d54 100644 --- a/loader/curve25519-dalek-loader/Cargo.toml +++ b/loader/curve25519-dalek-loader/Cargo.toml @@ -75,6 +75,9 @@ optional = true # git = "https://github.com/betrusted-io/engine25519-as.git" # rev = "274b82899d28535ac6d4b7869e26eef2039578d5" +[lints.rust] +unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci)', 'cfg(rustdoc)'] } + [features] nightly = ["subtle/nightly"] default = ["std", "u32_backend"] diff --git a/services/aes/Cargo.toml b/services/aes/Cargo.toml index 4abc06c6b..8ff2b242d 100644 --- a/services/aes/Cargo.toml +++ b/services/aes/Cargo.toml @@ -10,6 +10,10 @@ description = "AES library for Xous" cipher = "0.4.2" zeroize = { version = "1.6.0", optional = true, default-features = false } +[lints.rust.unexpected_cfgs] +level = "warn" +check-cfg = ["cfg(aes_compact)", "cfg(aes_force_soft)"] + [features] hazmat = [] # Expose cryptographically hazardous APIs cramium-soc = [] diff --git a/services/dns/Cargo.toml b/services/dns/Cargo.toml index f9ba42787..2aca97e18 100644 --- a/services/dns/Cargo.toml +++ b/services/dns/Cargo.toml @@ -40,4 +40,5 @@ utralib = { version = "0.1.24", optional = true, default-features = false } precursor = ["utralib/precursor"] hosted = ["utralib/hosted"] renode = ["utralib/renode"] +minimal-testing = [] default = [] diff --git a/services/gam/src/main.rs b/services/gam/src/main.rs index 60fe88ca5..326fb26a6 100644 --- a/services/gam/src/main.rs +++ b/services/gam/src/main.rs @@ -1,6 +1,3 @@ -#![cfg_attr(baremetal, no_main)] -#![cfg_attr(baremetal, no_std)] - mod api; use api::*; mod canvas; diff --git a/services/shellchat/Cargo.toml b/services/shellchat/Cargo.toml index e3fe9a60d..c61fb0585 100644 --- a/services/shellchat/Cargo.toml +++ b/services/shellchat/Cargo.toml @@ -153,5 +153,6 @@ rand-api = [] locktests = [ ] # for debugging some specific `std` tests cherry-picked out of the test suite simple-tls = ["rustls", "webpki-roots"] +clifford-bench = [] nettype = [] # takes a file from a URL and emits it as keystrokes default = [] # "debugprint" diff --git a/services/trng/Cargo.toml b/services/trng/Cargo.toml index f6615694b..ef5cc5560 100644 --- a/services/trng/Cargo.toml +++ b/services/trng/Cargo.toml @@ -30,5 +30,8 @@ rand_chacha = "0.3.1" precursor = ["utralib/precursor"] hosted = ["utralib/hosted"] renode = ["utralib/renode"] +urandomtest = [] +ringosctest = [] +avalanchetest = [] debugprint = [] default = [] # "debugprint" diff --git a/services/xous-ticktimer/Cargo.toml b/services/xous-ticktimer/Cargo.toml index 4755c7244..3516ed699 100644 --- a/services/xous-ticktimer/Cargo.toml +++ b/services/xous-ticktimer/Cargo.toml @@ -31,6 +31,7 @@ utralib = { version = "0.1.24", optional = true, default-features = false } [features] #atsama5d27 = ["utralib/atsama5d27"] +atsama5d27 = [] # you may want to remove the watchdog feature if you're debugging a crash, as it will force the system to reboot automatically precursor = ["utralib/precursor", "susres/precursor", "watchdog"]