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
"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-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" ,
2023-04-21 16:10:36 +00:00
"services/early_settings" ,
2024-01-14 14:29:33 +00:00
"libs/userprefs" ,
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" ,
2023-04-05 12:38:41 +00:00
"services/ticktimer-test-client" ,
2021-03-26 12:22:33 +00:00
"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" ,
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-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" ,
2024-01-14 14:29:33 +00:00
"services/log-test-client" ,
2024-01-14 14:45:36 +00:00
"services/test-spawn" ,
2021-12-15 05:46:24 +00:00
"services/modals" ,
2023-04-21 16:10:36 +00:00
"services/early_settings" ,
2023-08-02 02:16:40 +00:00
"apps/app-loader" ,
"apps/app-loader/spawn" ,
2022-01-23 07:52:17 +00:00
"apps/ball" ,
2022-03-18 15:57:06 +00:00
"apps/hello" ,
2023-07-28 21:21:14 +00:00
"apps/mtxchat" ,
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" ,
2023-01-26 18:31:40 +00:00
"apps/transientdisk" ,
2023-12-02 08:09:59 +00:00
"apps/chat-test" ,
2023-12-26 17:34:37 +00:00
"apps/hidv2" ,
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" ,
2023-07-17 10:27:43 +00:00
"services/cram-console" ,
2025-09-18 13:25:51 +00:00
"services/bao1x-mbox1" ,
"services/bao1x-mbox2" ,
2023-05-28 18:12:28 +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-01-14 07:31:36 +00:00
"kernel" ,
2022-01-14 09:32:04 +00:00
"loader" ,
2026-01-02 03:27:39 +00:00
"libs/bio-lib" ,
2025-02-17 10:29:02 +00:00
"libs/blitstr2" ,
2023-07-12 07:23:41 +00:00
"libs/chat" ,
2024-09-22 10:18:24 +00:00
"libs/flatipc" ,
"libs/flatipc-derive" ,
2024-01-14 16:52:43 +00:00
"libs/perflib" ,
2023-07-17 10:27:43 +00:00
"libs/tls" ,
2024-09-22 10:18:24 +00:00
"libs/userprefs" ,
2024-12-01 17:22:30 +00:00
# "libs/xous-pio",
2024-06-02 11:17:46 +00:00
"libs/xous-bio" ,
2024-06-24 19:33:47 +00:00
"libs/xous-bio-bdma" ,
2023-07-17 10:27:43 +00:00
"libs/xous-pl230" ,
2025-09-18 13:25:51 +00:00
"libs/bao1x-hal" ,
"services/bao1x-hal-service" ,
2024-03-07 12:10:13 +00:00
"services/xous-swapper" ,
2024-03-08 10:42:36 +00:00
"services/test-swapper" ,
2024-11-05 14:10:26 +00:00
"services/bao-video" ,
2025-09-09 14:25:27 +00:00
"services/usb-bao1x" ,
2024-11-05 14:10:26 +00:00
"services/bao-console" ,
2025-02-20 07:07:46 +00:00
"libs/ux-api" ,
2025-09-18 13:25:51 +00:00
"services/bao1x-emu" ,
"libs/bao1x-api" ,
2025-05-03 19:34:44 +00:00
"services/keystore" ,
2025-05-11 06:45:24 +00:00
"libs/precursor-hal" ,
2025-10-05 17:34:22 +00:00
"apps-baosec/vault2" ,
2025-06-13 17:43:02 +00:00
"baremetal" ,
2025-09-23 17:05:44 +00:00
"bao1x-boot/boot0" ,
2025-09-29 05:52:26 +00:00
"bao1x-boot/boot1" ,
2025-09-23 17:05:44 +00:00
"bao1x-boot/sha2-bao1x" ,
2025-10-05 09:18:06 +00:00
"apps-dabao/helloworld" ,
"apps-dabao/dabao-console" ,
2026-01-07 18:03:28 +00:00
"services/swaptest1" ,
"services/swaptest2" ,
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 = [
2024-01-14 14:29:33 +00:00
"utralib" , # Exclude UTRA, since it is machine-generated.
"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" ,
2023-01-18 01:12:50 +00:00
# The "packing" crate is forked and is a separate workspace
"libs/mass-storage/packing" ,
2024-09-17 10:29:24 +00:00
# This directory is dedicated to out-of-tree tests and examples
"planning/" ,
2025-10-05 17:37:22 +00:00
# This is for signing images, and requires dependencies that are incompatible with Xous
"signing/fido-signer"
2020-08-18 02:51:29 +00:00
]
2020-08-17 10:39:33 +00:00
[ profile . release ]
2024-01-14 14:29:33 +00:00
codegen-units = 1 # 1 better optimizations
2022-06-06 15:49:42 +00:00
debug = false
2023-02-21 14:17:10 +00:00
strip = false
2023-01-02 09:50:47 +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
2024-01-14 14:29:33 +00:00
opt-level = "s" # z,s: Optimize for size instead of performance; 1 for easier debugging; comment out for "best performance" (but in Rust 1.72 this causes regressions)
2021-04-07 08:38:36 +00:00
2021-06-27 17:31:43 +00:00
# prefer hardware-accelerated versions of services
2024-01-29 17:41:34 +00:00
[ patch . crates-io ]
2024-09-22 16:36:27 +00:00
sha2 = { git = "https://github.com/betrusted-io/hashes.git" , branch = "sha2-v0.10.8-xous" }
# sha2 = { path = "../hashes/sha2" }
2022-01-14 09:32:04 +00:00
2025-09-18 13:25:51 +00:00
# Debugging the bao1x feature on aes ("--features swap" only needed for loader):
# cargo tree -e features --features bao1x --features swap -f "{p} {f}"
2021-11-06 21:17:34 +00:00
[ patch . crates-io . aes ]
path = "services/aes"
2021-06-28 16:10:46 +00:00
2024-03-11 11:12:50 +00:00
[ patch . crates-io . curve25519-dalek ]
2024-03-24 23:08:27 +00:00
git = "https://github.com/betrusted-io/curve25519-dalek.git"
2024-11-20 17:37:48 +00:00
branch = "main" # c25519
2024-03-24 23:08:27 +00:00
# path = "../curve25519-dalek/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
2022-05-15 19:09:28 +00:00
[ patch . crates-io . usb-device ]
2024-06-11 15:21:34 +00:00
git = "https://github.com/betrusted-io/usb-device.git"
branch = "main"
2022-10-20 09:08:16 +00:00
# local dev shortcuts
2024-06-11 15:21:34 +00:00
# path = "../usb-device"
2025-09-12 17:12:54 +00:00
# [patch.github-io.usb-device]
# path = "../usb-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 ]
2024-03-01 17:21:56 +00:00
# path = "../ring-xous" # for local dev only
git = "https://github.com/betrusted-io/ring-xous"
rev = "5f86cb10bebd521a45fb3abb06995200aeda2948" # 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.
#######################################################
2023-05-23 10:11:24 +00:00
### Selectively patch in these crates, or more, as needed depending on your dev activity
2023-07-17 07:14:33 +00:00
[ patch . crates-io . utralib ]
path = "./utralib"
[ patch . crates-io . svd2utra ]
path = "./svd2utra"
2026-01-07 19:11:25 +00:00
# [patch.crates-io.xous]
# path = "./xous-rs"
2024-09-22 16:36:27 +00:00
# [patch.crates-io.xous-ipc]
# path = "./xous-ipc"
2024-09-22 17:47:55 +00:00
# [patch.crates-io.xous-api-names]
# path = "./api/xous-api-names"
# [patch.crates-io.xous-api-log]
# path = "./api/xous-api-log"
# [patch.crates-io.xous-api-ticktimer]
# path = "./api/xous-api-ticktimer"
2024-09-22 16:24:48 +00:00
2024-09-22 16:36:27 +00:00
# [patch.crates-io.xous-tts-backend]
# path = "../tts-backend"
2026-01-27 16:36:05 +00:00
# [patch.crates-io.xous-api-susres]
# path = "./api/xous-api-susres"