Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

86 changes: 33 additions & 53 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,61 +1,41 @@
[workspace]
resolver = "2"

members = ["boards/*", "common/*", "apps/sergw"]
members = ["apps/sergw", "boards/*", "common/*"]

# Specify which members to build by default. Some libraries, such as messages, contain dev-dependencies that will give
# compile errors if built directly.
default-members = ["boards/*"]

[workspace.dependencies.chrono]
git = "https://github.com/uorocketry/chrono"
default-features = false

[workspace.dependencies.cortex-m]
version = "0.7.6"
features = ["critical-section-single-core"]

[workspace.dependencies.prost]
version = "0.14.1"
features = ["derive"]
default-features = false

[workspace.dependencies.cortex-m-rt]
version = "0.7.1"

[workspace.dependencies.defmt]
version = "0.3.2"

[workspace.dependencies.defmt-rtt]
version = "0.4"

[workspace.dependencies.embedded-alloc]
version = "0.6.0"

[workspace.dependencies.enum_dispatch]
version = "0.3.11"

[workspace.dependencies.heapless]
version = "0.9.1"

[workspace.dependencies.messages]
path = "./common/messages"

[workspace.dependencies.nb]
version = "1.1.0"

[workspace.dependencies.panic-probe]
version = "0.3"
features = ["print-defmt"]

[workspace.dependencies.serde]
version = "1.0.150"
default-features = false
features = ["derive"]

[workspace.dependencies.serde-csv-core]
version = "0.3.2"
features = ["defmt"]

[workspace.dependencies.smlang]
version = "0.8.0"
# Here we put together any dependencies that are used basically everywhere, and allow for more consistency between packages, and a smoother dependency upgrade experience
# Only minimal feature flags are enabled here, due to the additive nature of inheriting workspace dependencies (can only add feature flags when inheriting, not remove any)
# NOTE: defmt compatibility feature flags are enabled when available here, unsure how desirable this is
[workspace.dependencies]
chrono = { git = "https://github.com/uorocketry/chrono", default-features = false }
cortex-m = { version = "0.7.6", features = ["critical-section-single-core"] }
cortex-m-rt = "0.7.1"
critical-section = "1.1"
csv = { path = "./common/csv" }
defmt = "0.3.2"
defmt-rtt = "0.4"
embassy-embedded-hal = { version = "0.3.0", features = ["defmt"] }
embassy-executor = { version = "0.7.0", features = ["defmt"] }
embassy-futures = { version = "0.1.0", features = ["defmt"] }
embassy-net = { version = "0.7.0", features = ["defmt"] }
embassy-stm32 = { version = "0.2.0", features = ["defmt"] }
embassy-sync = { version = "0.6.2", features = ["defmt"] }
embassy-time = { version = "0.4.0", features = [
"defmt",
"defmt-timestamp-uptime",
] }
embassy-usb = { version = "0.4.0", features = ["defmt"] }
embedded-alloc = "0.6.0"
enum_dispatch = "0.3.11"
heapless = "0.9.1"
messages = { path = "./common/messages" }
nb = "1.1.0"
panic-probe = { version = "0.3", features = ["print-defmt"] }
prost = { version = "0.14.1", default-features = false, features = ["derive"] }
serde = { version = "1.0.150", features = ["derive"], default-features = false }
serde-csv-core = { version = "0.3.2", features = ["defmt"] }
smlang = "0.8.0"
2 changes: 1 addition & 1 deletion apps/sergw/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ edition = "2021"

[dependencies]
clap = { version = "4.5.16", features = ["derive"] }
ctrlc = "3.4"
serialport = "4"
ctrlc = "3.4"
27 changes: 10 additions & 17 deletions boards/argus/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,40 @@ calibration = []
chrono = { workspace = true }
cortex-m = { workspace = true }
cortex-m-rt = { workspace = true }
critical-section = "1.1"
csv = { path = "../../common/csv" }
critical-section = { workspace = true }
csv = { workspace = true }
defmt = { workspace = true }
defmt-rtt = { workspace = true }
derive_more = { version = "2.0.1", default-features = false, features = [
"full",
] }
embassy-embedded-hal = { version = "0.3.0" }
embassy-executor = { version = "0.7.0", features = [
embassy-embedded-hal = { workspace = true }
embassy-executor = { workspace = true, features = [
"nightly",
"task-arena-size-10240",
"arch-cortex-m",
"executor-thread",
"executor-interrupt",
"defmt",
] }
embassy-futures = { version = "0.1.0" }
embassy-net = { version = "0.7.0", features = [
"defmt",
embassy-futures = { workspace = true }
embassy-net = { workspace = true, features = [
"tcp",
"dhcpv4",
"medium-ethernet",
"proto-ipv6",
"dns",
] }
embassy-stm32 = { version = "0.2.0", features = [
"defmt",
embassy-stm32 = { workspace = true, features = [
"stm32h733vg",
"time-driver-tim2",
"exti",
"memory-x",
"unstable-pac",
"chrono",
] }
embassy-sync = { version = "0.6.2", features = ["defmt"] }
embassy-time = { version = "0.4.0", features = [
"defmt",
"defmt-timestamp-uptime",
"tick-hz-32_768",
] }
embassy-usb = { version = "0.4.0", features = ["defmt"] }
embassy-sync = { workspace = true }
embassy-time = { workspace = true, features = ["tick-hz-32_768"] }
embassy-usb = { workspace = true }
embedded-alloc = { workspace = true }
embedded-hal = { version = "1.0.0", features = ["defmt-03"] }
embedded-hal-async = { version = "1.0" }
Expand Down
64 changes: 64 additions & 0 deletions deny.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
[output]
# When outputting inclusion graphs in diagnostics that include features, this
# option can be used to specify the depth at which feature edges will be added.
# This option is included since the graphs can be quite large and the addition
# of features from the crate(s) to all of the graph roots can be far too verbose.
# This option can be overridden via `--feature-depth` on the cmd line
feature-depth = 1


[licenses]
allow = [
#"MIT",
#"Apache-2.0",
#"Apache-2.0 WITH LLVM-exception",
]
confidence-threshold = 0.8
exceptions = [
# Each entry is the crate and version constraint, and its specific allow
# list
#{ allow = ["Zlib"], crate = "adler32" },
]

[licenses.private]
# If true, ignores workspace crates that aren't published, or are only
# published to private registries.
ignore = true

[bans]
multiple-versions = "warn"
# Lint level for when a crate version requirement is `*`
wildcards = "deny"
# The graph highlighting used when creating dotgraphs for crates
# with multiple versions
# * lowest-version - The path to the lowest versioned duplicate is highlighted
# * simplest-path - The path to the version with the fewest edges is highlighted
# * all - Both lowest-version and simplest-path are used
highlight = "all"
workspace-default-features = "allow"
external-default-features = "allow"
allow = [
#"[email protected]",
#{ crate = "[email protected]", reason = "you can specify a reason it is allowed" },
]
deny = [
#"[email protected]",
#{ crate = "[email protected]", reason = "you can specify a reason it is banned" },
# Wrapper crates can optionally be specified to allow the crate when it
# is a direct dependency of the otherwise banned crate
#{ crate = "[email protected]", wrappers = ["this-crate-directly-depends-on-ansi_term"] },
]

[bans.workspace-dependencies]
duplicates = 'deny'
include-path-dependencies = true
unused = 'deny'

[sources]
unknown-registry = "warn"
unknown-git = "warn"
allow-registry = ["https://github.com/rust-lang/crates.io-index"]

# Allow git sources from uorocketry
[sources.allow-org]
github = ["uorocketry"]
Loading