Skip to content

Commit

Permalink
Merge pull request #20838 from chrysn-pull-requests/rust-coap-expose-…
Browse files Browse the repository at this point in the history
…more

examples/gcoap-rust: Expose more functionality
  • Loading branch information
chrysn authored Oct 2, 2024
2 parents 884e21a + e94337b commit 505433b
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 46 deletions.
146 changes: 110 additions & 36 deletions examples/rust-gcoap/Cargo.lock

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

12 changes: 10 additions & 2 deletions examples/rust-gcoap/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ codegen-units = 1
opt-level = "s"

[dependencies]
riot-wrappers = { version = "^0.9.0", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }
riot-wrappers = { version = "^0.9.0", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler", "provide_critical_section_1_0" ] }
portable-atomic = { version = "1", features = [ "critical-section" ] }

coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false }
coap-handler-implementations = "0.5"
riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs", "saul" ] }
riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs", "saul", "nib", "ping" ] }

# While currently this exmple does not use any RIOT modules implemented in
# Rust, that may change; it is best practice for any RIOT application that has
# its own top-level Rust crate to include rust_riotmodules from inside
# RIOTBASE.
rust_riotmodules = { path = "../../sys/rust_riotmodules/" }
static_cell = "2.1.0"

[patch.crates-io]
# from https://github.com/seanmonstar/try-lock/pull/11, necessary for those
# platforms without atomics (which also needs provide_critical_section_1_0 from
# riot-wrappers, and portable-atomic/critical-section to bridge the gap)
try-lock = { git = "https://github.com/seanmonstar/try-lock", rev = "45c39685b56a4dba1b71bdbbbe5f731c3c77dc50" }
Loading

0 comments on commit 505433b

Please sign in to comment.