From b3080492df573374048abcafaf0f5256d76761a5 Mon Sep 17 00:00:00 2001 From: Peter Krull Date: Tue, 12 Mar 2024 18:30:36 +0100 Subject: [PATCH] Updated Cargo.toml --- Cargo.toml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a31b6e3..a52d94f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,9 +5,12 @@ authors = ["Peter Krull"] version = "0.2.0" [features] -default = ["overclock", "rp2040"] +default = ["overclock", "rp2040", "shell"] +mavlink = ["dep:mavlink"] overclock = [] +dualcore = [] rp2040 = [] +shell = ["dep:embedded-cli", "dep:embedded-io", "dep:ufmt"] [dependencies] cortex-m = "0.7.7" @@ -44,10 +47,11 @@ embassy-sync = { git = "https://github.com/peterkrull/embassy", branch embassy-time = { git = "https://github.com/peterkrull/embassy", branch = "holsatus", features = ["defmt","defmt-timestamp-uptime"]} embassy-executor = { git = "https://github.com/peterkrull/embassy", branch = "holsatus", features = ["defmt","integrated-timers","arch-cortex-m","executor-thread","executor-interrupt","task-arena-size-32768"]} embassy-rp = { git = "https://github.com/peterkrull/embassy", branch = "holsatus", features = ["defmt","unstable-pac","time-driver","critical-section-impl","intrinsics","rom-v2-intrinsics"]} +embassy-usb = { git = "https://github.com/peterkrull/embassy", branch = "holsatus", features = ["defmt"] } embassy-futures = { git = "https://github.com/peterkrull/embassy", branch = "holsatus" } embassy-embedded-hal = { git = "https://github.com/peterkrull/embassy", branch = "holsatus" } -mavlink = { git = "https://github.com/peterkrull/rust-mavlink", branch = "async-holsatus", default-features = false, features = ["common","embedded"] } +mavlink = { git = "https://github.com/peterkrull/rust-mavlink", branch = "async-holsatus", default-features = false, features = ["common","embedded"], optional = true} futures = { version = "0.3", default-features = false, features = ["async-await","cfg-target-has-atomic","unstable"]} critical-section = "1.1" @@ -57,6 +61,12 @@ portable-atomic = { version = "1.6.0", features = ["critical-section"] } ublox = { version = "0.4.5", default-features = false } bitflags = { version = "2.4.2", default-features = false} +# These are used in the implementation of Holsatus Shell +embedded-cli = { path = "../embedded-cli-rs/embedded-cli/", optional = true } +embedded-io = { version = "0.6.1", optional = true } +embedded-io-async = { version = "0.6.1", optional = true } +ufmt = { version = "0.2.0", optional = true } + [profile.dev] codegen-units = 1 debug = 2