2020-08-17 10:39:33 +00:00
|
|
|
[workspace]
|
2020-08-17 11:41:50 +00:00
|
|
|
default-members = [
|
2022-10-05 10:32:44 +00:00
|
|
|
"services/xous-log",
|
|
|
|
|
"services/xous-ticktimer",
|
2021-03-26 12:22:33 +00:00
|
|
|
"services/xous-names",
|
2022-10-05 10:32:44 +00:00
|
|
|
"services/xous-susres",
|
|
|
|
|
"services/graphics-server",
|
2021-03-26 12:22:33 +00:00
|
|
|
"services/keyboard",
|
|
|
|
|
"services/com",
|
|
|
|
|
"services/trng",
|
|
|
|
|
"services/gam",
|
2021-07-27 17:01:39 +00:00
|
|
|
"services/status",
|
2021-03-26 12:22:33 +00:00
|
|
|
"imports/com_rs-ref",
|
|
|
|
|
"services/ime-plugin-api",
|
|
|
|
|
"services/ime-frontend",
|
|
|
|
|
"services/ime-plugin-shell",
|
|
|
|
|
"services/content-plugin-api",
|
|
|
|
|
"services/shellchat",
|
|
|
|
|
"services/llio",
|
2021-05-02 16:20:51 +00:00
|
|
|
"services/codec",
|
2021-05-18 16:39:03 +00:00
|
|
|
"services/engine-sha512",
|
2021-06-21 17:48:51 +00:00
|
|
|
"services/engine-25519",
|
2021-06-03 16:49:34 +00:00
|
|
|
"services/aes",
|
2021-07-13 14:28:46 +00:00
|
|
|
"services/spinor",
|
2021-07-21 11:47:09 +00:00
|
|
|
"services/root-keys",
|
2021-08-10 12:02:29 +00:00
|
|
|
"services/jtag",
|
2021-10-04 06:50:30 +00:00
|
|
|
"services/pddb",
|
2021-10-08 12:01:13 +00:00
|
|
|
"services/net",
|
2021-10-19 21:18:54 +00:00
|
|
|
"services/dns",
|
2021-12-15 05:46:24 +00:00
|
|
|
"services/modals",
|
2022-05-16 16:46:52 +00:00
|
|
|
"services/usb-device-xous",
|
2020-08-17 10:39:33 +00:00
|
|
|
]
|
2021-03-26 12:22:33 +00:00
|
|
|
members = [
|
|
|
|
|
"xous-ipc",
|
|
|
|
|
"xous-rs",
|
|
|
|
|
"tools",
|
|
|
|
|
"services/graphics-server",
|
2022-10-05 10:32:44 +00:00
|
|
|
"services/xous-log",
|
|
|
|
|
"services/xous-ticktimer",
|
|
|
|
|
"services/xous-susres",
|
2021-03-26 12:22:33 +00:00
|
|
|
"services/xous-names",
|
2022-10-05 10:32:44 +00:00
|
|
|
"services/aes-test",
|
|
|
|
|
"services/com",
|
2021-03-26 12:22:33 +00:00
|
|
|
"services/keyboard",
|
|
|
|
|
"services/kernel-test",
|
|
|
|
|
"services/trng",
|
|
|
|
|
"services/gam",
|
2021-07-27 17:01:39 +00:00
|
|
|
"services/status",
|
2021-03-26 12:22:33 +00:00
|
|
|
"services/ime-frontend",
|
|
|
|
|
"services/ime-plugin-shell",
|
2022-03-10 18:37:48 +00:00
|
|
|
"services/ime-plugin-tts",
|
2021-03-26 12:22:33 +00:00
|
|
|
"services/shellchat",
|
2021-05-17 07:50:55 +00:00
|
|
|
"svd2repl",
|
2021-03-26 12:22:33 +00:00
|
|
|
"svd2utra",
|
|
|
|
|
"xtask",
|
|
|
|
|
"imports/com_rs-ref",
|
2022-05-28 15:38:23 +00:00
|
|
|
"imports/getrandom",
|
2021-03-26 12:22:33 +00:00
|
|
|
"services/ime-plugin-api",
|
|
|
|
|
"services/content-plugin-api",
|
|
|
|
|
"services/llio",
|
2021-05-02 16:20:51 +00:00
|
|
|
"services/codec",
|
2021-05-18 16:39:03 +00:00
|
|
|
"services/engine-sha512",
|
2021-06-21 17:48:51 +00:00
|
|
|
"services/engine-25519",
|
2021-06-03 16:49:34 +00:00
|
|
|
"services/aes",
|
2021-07-13 14:28:46 +00:00
|
|
|
"services/spinor",
|
2021-07-21 11:47:09 +00:00
|
|
|
"services/root-keys",
|
2021-08-10 12:02:29 +00:00
|
|
|
"services/jtag",
|
2021-09-06 06:42:19 +00:00
|
|
|
"tools/wycheproof-import",
|
2021-10-04 06:50:30 +00:00
|
|
|
"services/pddb",
|
2021-10-08 12:01:13 +00:00
|
|
|
"services/net",
|
2021-10-19 21:18:54 +00:00
|
|
|
"services/dns",
|
2021-12-15 05:46:24 +00:00
|
|
|
"services/modals",
|
2022-01-23 07:52:17 +00:00
|
|
|
"apps/ball",
|
2022-03-18 15:57:06 +00:00
|
|
|
"apps/hello",
|
2022-10-11 18:40:56 +00:00
|
|
|
"apps/mtxcli",
|
2022-01-24 11:06:58 +00:00
|
|
|
"apps/repl",
|
2022-05-27 17:17:54 +00:00
|
|
|
"apps/vault",
|
2022-07-18 15:30:45 +00:00
|
|
|
"apps/vault/tools/vaultbackup-rs",
|
2022-03-02 12:43:01 +00:00
|
|
|
"services/libstd-test",
|
2022-03-07 05:17:58 +00:00
|
|
|
"services/ffi-test",
|
2022-03-07 19:08:12 +00:00
|
|
|
"services/tts",
|
2022-05-29 11:09:46 +00:00
|
|
|
"services/test-spawn",
|
|
|
|
|
"services/test-spawn/spawn",
|
2022-03-13 17:18:36 +00:00
|
|
|
"services/usb-test",
|
2022-05-16 16:46:52 +00:00
|
|
|
"services/usb-device-xous",
|
2022-09-15 17:45:49 +00:00
|
|
|
"tools/perflib",
|
2022-01-14 07:31:36 +00:00
|
|
|
"kernel",
|
2022-01-14 09:32:04 +00:00
|
|
|
"loader",
|
2021-03-26 12:22:33 +00:00
|
|
|
]
|
|
|
|
|
resolver = "2"
|
2020-08-17 10:39:33 +00:00
|
|
|
|
2020-08-18 02:51:29 +00:00
|
|
|
# These packages have custom RUSTFLAGS, so if they
|
|
|
|
|
# were included in the workspace they would cause
|
|
|
|
|
# packages to be rebuilt every time they were touched.
|
|
|
|
|
# Keep them out of the main workspace.
|
|
|
|
|
exclude = [
|
2021-07-12 09:16:22 +00:00
|
|
|
"utralib", # Exclude UTRA, since it is machine-generated.
|
2021-07-28 16:15:06 +00:00
|
|
|
"locales", # exclude because it is machine-generated
|
2022-08-20 00:12:45 +00:00
|
|
|
"xtask",
|
2022-09-26 04:16:00 +00:00
|
|
|
# exclude the API crates, as they are domiciled here but referenced via crates.io
|
2022-10-05 10:32:44 +00:00
|
|
|
"api/xous-api-log",
|
|
|
|
|
"api/xous-api-names",
|
|
|
|
|
"api/xous-api-susres",
|
|
|
|
|
"api/xous-api-ticktimer",
|
2020-08-18 02:51:29 +00:00
|
|
|
]
|
|
|
|
|
|
2020-08-17 10:39:33 +00:00
|
|
|
[profile.release]
|
|
|
|
|
codegen-units = 1 # 1 better optimizations
|
2022-10-19 13:41:44 +00:00
|
|
|
debug = false
|
|
|
|
|
strip = true
|
2020-10-11 01:16:46 +00:00
|
|
|
lto = "fat"
|
2022-01-14 07:37:13 +00:00
|
|
|
incremental = true
|
2021-05-10 07:09:24 +00:00
|
|
|
#panic = "abort" # Remove panic output, which can reduce file size
|
2022-07-04 09:58:52 +00:00
|
|
|
#opt-level = 1 # z,s: Optimize for size instead of performance; 1 for easier debugging
|
2021-04-07 08:38:36 +00:00
|
|
|
|
2021-06-27 17:31:43 +00:00
|
|
|
# prefer hardware-accelerated versions of services
|
2021-08-08 20:40:33 +00:00
|
|
|
[patch.crates-io.sha2]
|
|
|
|
|
path = "services/engine-sha512"
|
2022-01-14 09:32:04 +00:00
|
|
|
|
2021-11-06 21:17:34 +00:00
|
|
|
[patch.crates-io.aes]
|
|
|
|
|
path = "services/aes"
|
2022-03-07 19:08:12 +00:00
|
|
|
[patch.crates-io.xous-names]
|
|
|
|
|
path = "services/xous-names"
|
2021-06-28 16:10:46 +00:00
|
|
|
|
2021-06-29 15:46:15 +00:00
|
|
|
[patch.crates-io.curve25519-dalek]
|
|
|
|
|
git="https://github.com/betrusted-io/curve25519-dalek.git"
|
|
|
|
|
branch="main"
|
|
|
|
|
#path = "../curve25519-dalek" # when doing local dev work
|
2021-09-10 14:54:01 +00:00
|
|
|
# feature overrides are specified at the crate level
|
2021-06-26 19:07:39 +00:00
|
|
|
|
|
|
|
|
[patch."https://github.com/betrusted-io/xous-engine-25519.git"]
|
2022-05-15 19:09:28 +00:00
|
|
|
engine-25519 = {path = "services/engine-25519"}
|
|
|
|
|
|
|
|
|
|
[patch.crates-io.usb-device]
|
|
|
|
|
git="https://github.com/betrusted-io/usb-device.git"
|
|
|
|
|
branch="main"
|
2022-10-20 09:08:16 +00:00
|
|
|
# local dev shortcuts
|
2022-05-16 16:46:52 +00:00
|
|
|
#path = "../usb-device"
|
2022-05-28 19:28:41 +00:00
|
|
|
#[patch.crates-io.usbd-human-interface-device]
|
|
|
|
|
#path = "../usbd-human-interface-device"
|
2022-05-28 18:42:14 +00:00
|
|
|
|
|
|
|
|
[patch.crates-io.getrandom]
|
|
|
|
|
path = "imports/getrandom"
|
2022-08-12 07:56:05 +00:00
|
|
|
|
|
|
|
|
[patch.crates-io.ring]
|
2022-09-11 11:16:15 +00:00
|
|
|
# path = "../ring-xous" # for local dev only
|
2022-08-19 17:50:48 +00:00
|
|
|
git="https://github.com/betrusted-io/ring-xous"
|
2022-11-08 17:01:42 +00:00
|
|
|
rev="4296c2e7904898766cf7d8d589759a129794783b" # use the commitref because we're still updating the branch
|
2022-08-22 17:39:54 +00:00
|
|
|
#branch="0.16.20-cleanup"
|
2022-10-05 10:32:44 +00:00
|
|
|
|
2022-10-20 09:08:16 +00:00
|
|
|
######################################################
|
|
|
|
|
### PATCHES TO DEV/TEST XOUS KERNEL CODE
|
|
|
|
|
###
|
|
|
|
|
### The kernel is published to crates.io, and all the packages in Xous are configured to get
|
|
|
|
|
### the kernel from crates.io and NOT the local tree.
|
|
|
|
|
###
|
|
|
|
|
### When making changes to the kernel, you must activate some or all of the patches below
|
|
|
|
|
### for the local sources to "see" the changes.
|
|
|
|
|
### You will also need to compile with `--no-verify` to acknowledge that you are doing local
|
|
|
|
|
### source development and accept that what's on crates.io doesn't match what's inside this tree.
|
|
|
|
|
#######################################################
|
|
|
|
|
|
|
|
|
|
### Minimum recommended patch set: this causes xous-ring to behave correctly when doing local dev
|
|
|
|
|
# [patch.crates-io.xous]
|
|
|
|
|
# path = "./xous-rs"
|
|
|
|
|
# [patch.crates-io.xous-ipc]
|
|
|
|
|
# path = "./xous-ipc"
|
|
|
|
|
# [patch.crates-io.xous-api-names]
|
|
|
|
|
# path = "./api/xous-api-names"
|
2022-10-17 15:34:47 +00:00
|
|
|
|
2022-10-20 09:08:16 +00:00
|
|
|
### Selectively patch in these crates, or more, as needed depending on your dev activity
|
2022-10-14 08:25:19 +00:00
|
|
|
# [patch.crates-io.utralib]
|
|
|
|
|
# path = "./utralib"
|
|
|
|
|
# [patch.crates-io.svd2utra]
|
2022-10-16 21:07:46 +00:00
|
|
|
# path = "./svd2utra"
|
|
|
|
|
# [patch.crates-io.xous-api-susres]
|
|
|
|
|
# path = "./api/xous-api-susres"
|
|
|
|
|
# [patch.crates-io.xous-susres]
|
2022-10-19 08:01:49 +00:00
|
|
|
# path = "./services/xous-susres"
|