kernel: run cargo fmt

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
Sean Cross 2021-05-19 14:18:46 +08:00
parent 47bf453325
commit d15127fef6
2 changed files with 11 additions and 13 deletions

View file

@ -1,18 +1,18 @@
[package] [package]
authors = ["Sean Cross <sean@xobs.io>"]
description = "Core kernel for Xous, including task switching and memory management"
edition = "2018"
name = "kernel" name = "kernel"
version = "0.8.0" version = "0.8.0"
authors = ["Sean Cross <sean@xobs.io>"]
edition = "2018"
description = "Core kernel for Xous, including task switching and memory management"
[dependencies] [dependencies]
bitflags = "1.2.1" bitflags = "1.2.1"
xous-kernel = { package = "xous", path = "../xous-rs", features = ["forget-memory-messages"] } sha3 = {default-features = false, version = "0.8.2"}
stats_alloc = { version = "0.1.8", optional = true } stats_alloc = {version = "0.1.8", optional = true}
sha3 = { default-features = false, version = "0.8.2" } xous-kernel = {package = "xous", path = "../xous-rs", features = ["forget-memory-messages"]}
[target.'cfg(not(any(windows, unix)))'.dependencies] [target.'cfg(not(any(windows, unix)))'.dependencies]
utralib = { path = "../utralib"} utralib = {path = "../utralib"}
[target.'cfg(target_arch = "riscv32")'.dependencies] [target.'cfg(target_arch = "riscv32")'.dependencies]
riscv = "0.5.6" riscv = "0.5.6"
@ -26,11 +26,11 @@ wrap-print = []
default = ["print-panics"] default = ["print-panics"]
[target.'cfg(any(windows, unix))'.dependencies] [target.'cfg(any(windows, unix))'.dependencies]
crossbeam-channel = "0.5"
debug-here = "0.2.2"
hex = "0.4"
lazy_static = "1.4" lazy_static = "1.4"
rand = "0.7" rand = "0.7"
hex = "0.4"
debug-here = "0.2.2"
crossbeam-channel = "0.5"
[profile.release] [profile.release]
codegen-units = 1 # 1 better optimizations codegen-units = 1 # 1 better optimizations

View file

@ -60,9 +60,7 @@ macro_rules! println
} }
#[cfg(baremetal)] #[cfg(baremetal)]
pub struct Uart { pub struct Uart {}
// pub base: *mut usize,
}
#[cfg(baremetal)] #[cfg(baremetal)]
static mut INITIALIZED: bool = false; static mut INITIALIZED: bool = false;