mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
280de7cb99
There are a lot of non-binary crates depending on rp2040-hal. That way, the default-features of rp2040-hal may be activated unintentionally through an indirect dependency. Therefore, a binary crate which wants to disable the `critical-section-impl` feature to provide its own one could have a hard time to do so. In contrast, the board support crates are usually only used by top-level binary crates. So disabling the default features on those should usually just work. Binary crates depending on rp2040-hal directly, which don't use any board support crate, might need to activate the feature manually. This is reasonable because those binary crates need to replicate some boilerplate from the board crates anyhow.
32 lines
1.1 KiB
TOML
32 lines
1.1 KiB
TOML
[package]
|
|
name = "arduino_nano_connect"
|
|
version = "0.2.1"
|
|
authors = ["splicedbread <dxbunrated@gmail.com>", "The rp-rs Developers"]
|
|
edition = "2018"
|
|
homepage = "https://github.com/rp-rs/rp-hal/tree/main/boards/arduino_nano_connect"
|
|
description = "Board Support Package for the Arduino Nano RP2040 Connect"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/rp-rs/rp-hal.git"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
cortex-m = "0.7.3"
|
|
rp2040-boot2 = { version = "0.2.0", optional = true }
|
|
rp2040-hal = { path = "../../rp2040-hal", version = "0.5.0" }
|
|
cortex-m-rt = { version = "0.7.0", optional = true }
|
|
embedded-hal = { version = "0.2.4", features = ["unproven"] }
|
|
panic-probe = { version = "0.3.0", features = ["print-defmt"] }
|
|
embedded-time = "0.12.0"
|
|
|
|
[dev-dependencies]
|
|
panic-halt= "0.2.0"
|
|
embedded-hal ="0.2.5"
|
|
nb = "1.0"
|
|
|
|
[features]
|
|
default = ["boot2", "rt", "critical-section-impl"]
|
|
critical-section-impl = ["rp2040-hal/critical-section-impl"]
|
|
boot2 = ["rp2040-boot2"]
|
|
rt = ["cortex-m-rt","rp2040-hal/rt"]
|