Skip to content

Commit

Permalink
More idiomatic patching of the MCP23S17 dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
solimike committed Aug 20, 2024
1 parent 5b5ecf5 commit 1243d47
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,13 @@ resolver = "2"

[dependencies]
log = "0.4.17"
# rppal-mcp23s17 = { path = "../rppal-mcp23s17" }
rppal-mcp23s17 = { version = "0.1" }
rppal-mcp23s17 = "0.1"
rppal = "0.19.0"
thiserror = "1.0.37"

[dev-dependencies]
anyhow = "1.0.66"
env_logger = "0.11.3"
# rppal-mcp23s17 = { path = "../rppal-mcp23s17", features = ["mockspi"] }
rppal-mcp23s17 = { features = ["mockspi"], version = "0.1" }

[features]
Expand All @@ -37,3 +35,7 @@ rppal-mcp23s17 = { features = ["mockspi"], version = "0.1" }
# SPI which is suited to running tests without needing the target Raspberry Pi
# hardware. Also requires the rppal_mcp23s17 crate to support the mock SPI.
mockspi = ["rppal-mcp23s17/mockspi"]

# Uncomment when testing against a locally modified version of the MCP23S17 dependency.
[patch.crates-io]
# rppal-mcp23s17 = { path = "../rppal-mcp23s17" }

0 comments on commit 1243d47

Please sign in to comment.