-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid using FromStr for parsing floats
f32s FromStr impl is very bloated, although probably faster than this solution. This solution results in about 18KB less flash usage for the nrf sample crate though.
- Loading branch information
Showing
4 changed files
with
129 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,33 @@ | ||
[package] | ||
name = "sim7000-async" | ||
version = "5.0.0" | ||
authors = [ | ||
"Zoey Riordan <[email protected]>", | ||
"Joakim Hulthe <[email protected]>", | ||
] | ||
description = "Drivers for the SIM7000 series of chips" | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/technocreatives/sim7000" | ||
edition = "2021" | ||
rust-version = "1.75" | ||
|
||
[dependencies] | ||
critical-section = "1.1.2" | ||
defmt = { version = "0.3.2", optional = true } | ||
embassy-executor = "0.5.0" | ||
embassy-futures = "0.1.1" | ||
embassy-sync = "0.5.0" | ||
embassy-time = "0.3.0" | ||
embedded-io-async = "0.6.0" | ||
futures = { version = "0.3", default-features = false, features = ["async-await"] } | ||
heapless = "0.7" | ||
log = { version = "0.4", optional = true } | ||
|
||
[features] | ||
default = ["log"] | ||
log = ["dep:log"] | ||
defmt = ["dep:defmt", "embassy-time/defmt", "heapless/defmt-impl"] | ||
[package] | ||
name = "sim7000-async" | ||
version = "5.0.0" | ||
authors = [ | ||
"Zoey Riordan <[email protected]>", | ||
"Joakim Hulthe <[email protected]>", | ||
] | ||
description = "Drivers for the SIM7000 series of chips" | ||
license = "Apache-2.0 OR MIT" | ||
repository = "https://github.com/technocreatives/sim7000" | ||
edition = "2021" | ||
rust-version = "1.75" | ||
|
||
[dependencies] | ||
critical-section = "1.1.2" | ||
defmt = { version = "0.3.2", optional = true } | ||
embassy-executor = "0.5.0" | ||
embassy-futures = "0.1.1" | ||
embassy-sync = "0.5.0" | ||
embassy-time = "0.3.0" | ||
embedded-io-async = "0.6.0" | ||
futures = { version = "0.3", default-features = false, features = ["async-await"] } | ||
heapless = "0.7" | ||
log = { version = "0.4", optional = true } | ||
|
||
[features] | ||
default = ["log"] | ||
log = ["dep:log"] | ||
defmt = ["dep:defmt", "embassy-time/defmt", "heapless/defmt-impl"] | ||
|
||
[dev-dependencies] | ||
quickcheck = "1.0.3" | ||
quickcheck_macros = "1.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters