-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support embedded-hal 1.0.0 * Improve rust-analyzer coverage in vscode * Fix test error by cloning mock to allow explicit done() call * Fix compilation issues in doctests * Fix syntax error in doctests * Fix compilation errors in doctests * Avoid embedded-hal 0.2 dependency Co-authored-by: Diego Barrios Romero <[email protected]> * Convert write delay back to u8 Co-authored-by: Diego Barrios Romero <[email protected]> * Convert write delay back to u8 Co-authored-by: Diego Barrios Romero <[email protected]> * Convert write delay back to u8 Co-authored-by: Diego Barrios Romero <[email protected]> * Convert write delay back to u8 Co-authored-by: Diego Barrios Romero <[email protected]> * Complete converting write delay back to u8 revert * Split wrong_address_raises_error into two tests * Update version to 0.3.0 and updated changelog * Complete updating to v0.3.0 * Restore format of Cargo.toml to eliminate actions build failure * Add defmt-03 feature, enabling defmt formatting of public types * defmt-03 adds include defmt of error messages from embedded-hal * Modify changelog similar to changes in eeprom24x-rs --------- Co-authored-by: Phil Markgraf <[email protected]> Co-authored-by: Diego Barrios Romero <[email protected]>
- Loading branch information
1 parent
48c19a2
commit 596c5ad
Showing
14 changed files
with
141 additions
and
66 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"rust-analyzer.check.command": "clippy", | ||
"rust-analyzer.check.allTargets": true, | ||
"rust-analyzer.check.extraArgs": [ | ||
"--target", | ||
"x86_64-unknown-linux-musl" | ||
], | ||
"rust-analyzer.cargo.noDefaultFeatures": true, | ||
"rust-analyzer.imports.preferNoStd": true, | ||
"rust-analyzer.showUnlinkedFileNotification": false, | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
[package] | ||
name = "mlx9061x" | ||
version = "0.2.1" | ||
version = "0.3.0" | ||
authors = ["Diego Barrios Romero <[email protected]>"] | ||
repository = "https://github.com/eldruin/mlx9061x-rs" | ||
license = "MIT OR Apache-2.0" | ||
description = "Platform-agnostic Rust driver for the MLX90614 and MLX90615 non-contact infrared thermometers." | ||
readme = "README.md" | ||
keywords = ["infrared", "thermometer", "temperature", "sensor", "embedded-hal-driver"] | ||
keywords = [ | ||
"infrared", | ||
"thermometer", | ||
"temperature", | ||
"sensor", | ||
"embedded-hal-driver", | ||
] | ||
categories = ["embedded", "hardware-support", "no-std"] | ||
homepage = "https://github.com/eldruin/mlx9061x-rs" | ||
documentation = "https://docs.rs/mlx9061x" | ||
|
@@ -18,15 +24,19 @@ include = [ | |
"/LICENSE-MIT", | ||
"/LICENSE-APACHE", | ||
] | ||
edition = "2018" | ||
edition = "2021" | ||
|
||
[features] | ||
defmt-03 = ["dep:defmt", "embedded-hal/defmt-03"] | ||
|
||
[dependencies] | ||
embedded-hal = "0.2.5" | ||
embedded-hal = "1.0.0" | ||
smbus-pec = "1" | ||
defmt = { version = "0.3.6", optional = true } | ||
|
||
[dev-dependencies] | ||
linux-embedded-hal = "0.3" | ||
embedded-hal-mock = "0.9" | ||
linux-embedded-hal = "0.4" | ||
embedded-hal-mock = { version = "0.10", default-features = false, features = ["eh1"] } | ||
|
||
[profile.release] | ||
lto = true |
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
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
Oops, something went wrong.