xous-core/kernel/Cargo.toml
Sean Cross 039975323e tests: add tests package
This package serves only to build tests for the kernel, because the
kernel wants to use a different mechanism for spawning processes.

Cargo doesn't support having `#[cfg(test)]` attributes on modules in
order to allow conditional compilation depending on whether we're
running a test or not. To work around this, `main.rs` is included in
another dummy crate.

Signed-off-by: Sean Cross <sean@xobs.io>
2020-07-29 21:18:30 +08:00

25 lines
645 B
TOML

[package]
name = "kernel"
version = "0.1.0"
authors = ["Sean Cross <sean@xobs.io>"]
edition = "2018"
description = "Core kernel for Xous, including task switching and memory management"
[dependencies]
bitflags = "1.2.1"
xous = { path = "../xous-rs", features = ["forget-memory-messages"] }
debug-here = "0.2.2"
stats_alloc = { version = "0.1.8", optional = true }
sha3 = { default-features = false, version = "0.8.2" }
[target.'cfg(target_arch = "riscv32")'.dependencies]
riscv = "0.5.6"
[features]
debug-print = []
report-memory = ["stats_alloc"]
[target.'cfg(any(windows, unix))'.dependencies]
lazy_static = "1.4"
rand = "0.7"
hex = "0.4"