2020-03-10 04:04:17 +00:00
|
|
|
[package]
|
|
|
|
|
authors = ["Sean Cross <sean@xobs.io>"]
|
|
|
|
|
description = "Core kernel for Xous, including task switching and memory management"
|
2021-05-19 06:18:46 +00:00
|
|
|
edition = "2018"
|
|
|
|
|
name = "kernel"
|
2021-05-20 03:53:02 +00:00
|
|
|
version = "0.8.2"
|
2020-03-10 04:04:17 +00:00
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
|
bitflags = "1.2.1"
|
2021-06-27 11:23:53 +00:00
|
|
|
# gdbstub branch "dev/0.6"
|
|
|
|
|
gdbstub = {git = "https://github.com/daniel5151/gdbstub.git", optional = true, default_features = false, rev = "5c702d063baaf78e4ebed7842cc8b96195d119a8"}
|
|
|
|
|
gdbstub_arch = {git = "https://github.com/daniel5151/gdbstub.git", optional = true, rev = "5c702d063baaf78e4ebed7842cc8b96195d119a8"}
|
2021-05-19 06:18:46 +00:00
|
|
|
sha3 = {default-features = false, version = "0.8.2"}
|
|
|
|
|
stats_alloc = {version = "0.1.8", optional = true}
|
|
|
|
|
xous-kernel = {package = "xous", path = "../xous-rs", features = ["forget-memory-messages"]}
|
2020-10-05 02:13:51 +00:00
|
|
|
|
|
|
|
|
[target.'cfg(not(any(windows, unix)))'.dependencies]
|
2021-08-04 04:19:16 +00:00
|
|
|
utralib = {path = "utralib"}
|
2020-03-10 04:04:17 +00:00
|
|
|
|
2020-06-03 07:34:55 +00:00
|
|
|
[target.'cfg(target_arch = "riscv32")'.dependencies]
|
|
|
|
|
riscv = "0.5.6"
|
|
|
|
|
|
2020-03-10 04:04:17 +00:00
|
|
|
[features]
|
|
|
|
|
debug-print = []
|
2021-06-01 09:57:01 +00:00
|
|
|
gdbserver = ["gdbstub", "gdbstub_arch"]
|
2020-08-29 16:33:30 +00:00
|
|
|
print-panics = []
|
2020-07-15 09:08:05 +00:00
|
|
|
report-memory = ["stats_alloc"]
|
2021-03-23 11:52:53 +00:00
|
|
|
wrap-print = []
|
2021-05-20 03:42:31 +00:00
|
|
|
# default = ["print-panics", "debug-print", "wrap-print"]
|
2021-06-21 06:11:26 +00:00
|
|
|
default = ["print-panics", "gdbserver"]
|
2020-07-28 05:28:14 +00:00
|
|
|
|
|
|
|
|
[target.'cfg(any(windows, unix))'.dependencies]
|
2021-05-19 06:18:46 +00:00
|
|
|
crossbeam-channel = "0.5"
|
|
|
|
|
debug-here = "0.2.2"
|
|
|
|
|
hex = "0.4"
|
2020-07-29 13:18:30 +00:00
|
|
|
lazy_static = "1.4"
|
2020-07-28 05:28:14 +00:00
|
|
|
rand = "0.7"
|
2020-08-18 02:51:29 +00:00
|
|
|
|
|
|
|
|
[profile.release]
|
|
|
|
|
codegen-units = 1 # 1 better optimizations
|
|
|
|
|
debug = true # symbols are nice and they don't increase the size on Flash
|
2021-06-01 09:57:01 +00:00
|
|
|
lto = "fat"
|
2021-05-10 07:09:24 +00:00
|
|
|
# panic = "abort" # Remove some panic information
|
|
|
|
|
# opt-level = 'z' # Optimize for size instead of performance
|