2021-08-26 16:23:31 +02:00
|
|
|
[package]
|
|
|
|
name = "rust-gcoap"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Christian Amsüss <chrysn@fsfe.org>"]
|
|
|
|
edition = "2018"
|
|
|
|
resolver = "2"
|
|
|
|
|
|
|
|
[lib]
|
|
|
|
crate-type = ["staticlib"]
|
|
|
|
|
2022-09-23 00:46:32 +02:00
|
|
|
[profile.release]
|
|
|
|
# Setting the panic mode has little effect on the built code (as Rust on RIOT
|
|
|
|
# supports no unwinding), but setting it allows builds on native without using
|
|
|
|
# the nightly-only lang_items feature.
|
|
|
|
panic = "abort"
|
2022-10-01 22:07:02 +02:00
|
|
|
# This is a typical set of options that helps Rust binaries stay small
|
|
|
|
lto = true
|
|
|
|
codegen-units = 1
|
|
|
|
opt-level = "s"
|
2022-09-23 00:46:32 +02:00
|
|
|
|
2021-08-26 16:23:31 +02:00
|
|
|
[dependencies]
|
2022-10-04 00:06:16 +02:00
|
|
|
riot-wrappers = { version = "^0.8", features = [ "set_panic_handler", "panic_handler_format", "with_coap_message", "with_coap_handler" ] }
|
2021-08-26 16:23:31 +02:00
|
|
|
|
|
|
|
coap-message-demos = { git = "https://gitlab.com/chrysn/coap-message-demos/", default-features = false }
|
2023-04-24 11:40:43 +02:00
|
|
|
coap-handler-implementations = "0.4"
|
2021-08-26 16:23:31 +02:00
|
|
|
riot-coap-handler-demos = { git = "https://gitlab.com/etonomy/riot-module-examples/", features = [ "vfs" ] }
|
2022-07-09 21:06:03 +02:00
|
|
|
|
|
|
|
# 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/" }
|