mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
patches to clean up warnings in rust-1.80
This commit is contained in:
parent
63983ab9e0
commit
6eab1c48bb
9 changed files with 17 additions and 4 deletions
|
|
@ -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"] }
|
xous-kernel = { package = "xous", version = "0.9.63", features = ["v2p"] }
|
||||||
critical-section = "1.1.1"
|
critical-section = "1.1.1"
|
||||||
|
|
||||||
|
[lints.rust]
|
||||||
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci)', 'cfg(baremetal)'] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
cramium-soc = ["utralib/cramium-soc", "cramium-hal", "rand_chacha", "raw-trng"]
|
cramium-soc = ["utralib/cramium-soc", "cramium-hal", "rand_chacha", "raw-trng"]
|
||||||
cramium-fpga = ["utralib/cramium-fpga"]
|
cramium-fpga = ["utralib/cramium-fpga"]
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ impl MemoryManager {
|
||||||
owned_bytes
|
owned_bytes
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(baremetal, feature = "print-debug"))]
|
#[cfg(all(baremetal, feature = "debug-print"))]
|
||||||
pub fn print_ownership(&self) {
|
pub fn print_ownership(&self) {
|
||||||
println!("Ownership ({} bytes in all):", unsafe {
|
println!("Ownership ({} bytes in all):", unsafe {
|
||||||
MEMORY_ALLOCATIONS.len() + EXTRA_ALLOCATIONS.len()
|
MEMORY_ALLOCATIONS.len() + EXTRA_ALLOCATIONS.len()
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,9 @@ optional = true
|
||||||
# git = "https://github.com/betrusted-io/engine25519-as.git"
|
# git = "https://github.com/betrusted-io/engine25519-as.git"
|
||||||
# rev = "274b82899d28535ac6d4b7869e26eef2039578d5"
|
# rev = "274b82899d28535ac6d4b7869e26eef2039578d5"
|
||||||
|
|
||||||
|
[lints.rust]
|
||||||
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(ci)', 'cfg(rustdoc)'] }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
nightly = ["subtle/nightly"]
|
nightly = ["subtle/nightly"]
|
||||||
default = ["std", "u32_backend"]
|
default = ["std", "u32_backend"]
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,10 @@ description = "AES library for Xous"
|
||||||
cipher = "0.4.2"
|
cipher = "0.4.2"
|
||||||
zeroize = { version = "1.6.0", optional = true, default-features = false }
|
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]
|
[features]
|
||||||
hazmat = [] # Expose cryptographically hazardous APIs
|
hazmat = [] # Expose cryptographically hazardous APIs
|
||||||
cramium-soc = []
|
cramium-soc = []
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,5 @@ utralib = { version = "0.1.24", optional = true, default-features = false }
|
||||||
precursor = ["utralib/precursor"]
|
precursor = ["utralib/precursor"]
|
||||||
hosted = ["utralib/hosted"]
|
hosted = ["utralib/hosted"]
|
||||||
renode = ["utralib/renode"]
|
renode = ["utralib/renode"]
|
||||||
|
minimal-testing = []
|
||||||
default = []
|
default = []
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
#![cfg_attr(baremetal, no_main)]
|
|
||||||
#![cfg_attr(baremetal, no_std)]
|
|
||||||
|
|
||||||
mod api;
|
mod api;
|
||||||
use api::*;
|
use api::*;
|
||||||
mod canvas;
|
mod canvas;
|
||||||
|
|
|
||||||
|
|
@ -153,4 +153,5 @@ rand-api = []
|
||||||
locktests = [
|
locktests = [
|
||||||
] # for debugging some specific `std` tests cherry-picked out of the test suite
|
] # for debugging some specific `std` tests cherry-picked out of the test suite
|
||||||
simple-tls = ["rustls", "webpki-roots"]
|
simple-tls = ["rustls", "webpki-roots"]
|
||||||
|
clifford-bench = []
|
||||||
default = [] # "debugprint"
|
default = [] # "debugprint"
|
||||||
|
|
|
||||||
|
|
@ -30,5 +30,8 @@ rand_chacha = "0.3.1"
|
||||||
precursor = ["utralib/precursor"]
|
precursor = ["utralib/precursor"]
|
||||||
hosted = ["utralib/hosted"]
|
hosted = ["utralib/hosted"]
|
||||||
renode = ["utralib/renode"]
|
renode = ["utralib/renode"]
|
||||||
|
urandomtest = []
|
||||||
|
ringosctest = []
|
||||||
|
avalanchetest = []
|
||||||
debugprint = []
|
debugprint = []
|
||||||
default = [] # "debugprint"
|
default = [] # "debugprint"
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ utralib = { version = "0.1.24", optional = true, default-features = false }
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
#atsama5d27 = ["utralib/atsama5d27"]
|
#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
|
# 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"]
|
precursor = ["utralib/precursor", "susres/precursor", "watchdog"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue