feat: create an USBTransport from a rusb::Device (#66)

This allows to be more flexible on USB device we want to connect to,
without making public API to complex
This commit is contained in:
cli
2024-11-30 10:21:21 +01:00
committed by GitHub
parent 9eeb8f7da8
commit 2f4d13bd29
8 changed files with 70 additions and 44 deletions

View File

@@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4
- run: rustup component add clippy
- name: Run clippy
run : cargo clippy --all-features
run: cargo clippy --all-features
fmt:
name: "fmt"
@@ -21,7 +21,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run formatter
run : cargo fmt --all --check
run: cargo fmt --all --check
doc:
name: "doc"
@@ -29,7 +29,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run doc
run : cargo doc --all-features --keep-going
run: cargo doc --all-features --no-deps
env:
RUSTDOCFLAGS: "-D warnings"
tests:
name: "tests"
@@ -37,4 +39,4 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Run tests
run: cargo test --verbose
run: cargo test --verbose