Skip to content

Commit 956fc17

Browse files
authored
Merge pull request #2 from berkowski/master
Minor Cargo.toml tweaks to enable no_std builds.
2 parents d798823 + d4889af commit 956fc17

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name = "radio-sx127x"
33
description = "Rust driver for the Semtec SX127x Sub GHZ LoRa Radio ICs"
44
version = "0.7.3"
55
authors = ["Ryan Kurte <ryankurte@gmail.com>"]
6+
repository = "https://github.com/ryankurte/rust-radio-sx127x"
67
license = "MPL-2.0"
78

89
[features]
@@ -14,9 +15,9 @@ libc = "0.2.42"
1415
log = { version = "0.4.6" }
1516
bitflags = "1.0.4"
1617
embedded-hal = { version = "0.2.3", features = ["unproven"] }
17-
embedded-spi = "0.5.1"
18+
embedded-spi = { version = "0.5.1", default-features = false }
1819
radio = "0.4.0"
19-
serde = { version = "1.0", features = ["derive"] }
20+
serde = { version = "1.0", default-features = false, features = ["derive"] }
2021

2122
structopt = { version = "0.2.15", optional = true }
2223
linux-embedded-hal = { version = "0.2.2", optional = true }
@@ -34,3 +35,4 @@ required-features = ["util"]
3435
[[test]]
3536
name = "integration"
3637
path = "tests/integration.rs"
38+
required-features = ["utils"]

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ Install the utility with one of the following methods:
2626
- using a precompiled binary from the [releases](https://github.com/ryankurte/rust-radio-sx127x/releases/) page
2727
- from source using cargo with `cargo install radio-sx127x`
2828

29+
## As a `no_std` Library
30+
31+
The radio-sx127x crate can be used as an interface library for the sx127x radio on other
32+
embedded devices. To enable `no_std` usage, add `default-features = false` to your
33+
`Cargo.toml`
2934

3035

3136
## Useful Resources

0 commit comments

Comments
 (0)