-
Notifications
You must be signed in to change notification settings - Fork 9
Filter out non-APDU interfaces in UsbTransport and other changes related to issue #12 #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d36829b
4e871ef
8f03786
36673bb
2baef52
6f2e02e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,3 @@ | ||
| target/ | ||
| Cargo.lock | ||
| .vscode |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,44 +6,40 @@ keywords = [ "ledger", "wallet", "usb", "hid", "bluetooth" ] | |
| version = "0.1.0" | ||
| edition = "2021" | ||
| license = "Apache-2.0" | ||
| rust-version.workspace = true | ||
|
|
||
| [features] | ||
| # Select enabled transports | ||
| transport_usb = [ "hidapi" ] | ||
| transport_tcp = [] | ||
| transport_ble = [ "btleplug" ] | ||
|
|
||
| # Switch libusb backends, `libusb` works better with WSL so we're using that by default | ||
| # Switch libusb backends, `libusb` works better with WSL and plain Linux so we're using that by default | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. FYI: I had a situation on my Ubuntu where |
||
| transport_usb_libusb = [ "hidapi/linux-static-libusb" ] | ||
| transport_usb_hidraw = [ "hidapi/linux-static-hidraw" ] | ||
|
|
||
| # Enable `clap` attributes on exported objects | ||
| clap = [ "dep:clap" ] | ||
|
|
||
| # enable `async_fn_in_trait` nightly feature, removes need for `async_trait` macros | ||
| unstable_async_trait = [] | ||
|
|
||
| default = [ "transport_usb", "transport_tcp", "transport_ble", "transport_usb_libusb" ] | ||
|
|
||
| [dependencies] | ||
|
|
||
| thiserror = "2.0" | ||
| async-trait = "0.1" | ||
| btleplug = { version = "0.11", optional = true } | ||
| clap = { version = "4.2", optional = true } | ||
| displaydoc = "0.2" | ||
| encdec = "0.10" | ||
| futures = "0.3" | ||
| hidapi = { version = "2.6", optional = true, default-features = false } | ||
| lazy_static = "1.5" | ||
| ledger-proto = { version = "0.1", default-features = false, features = [ "std" ] } | ||
| tracing = "0.1" | ||
| tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
| once_cell = "1.17" | ||
| strum = { version = "0.26", features = ["derive"] } | ||
| thiserror = "2.0" | ||
| tokio = { version = "1.27", features = ["full"] } | ||
| once_cell = "1.17" | ||
| tracing = "0.1" | ||
| tracing-subscriber = { version = "0.3", features = ["env-filter"] } | ||
| uuid = "1.3" | ||
| futures = "0.3" | ||
| async-trait = "0.1" | ||
| displaydoc = "0.2" | ||
|
|
||
| clap = { version = "4.2", optional = true } | ||
| hidapi = { version = "2.1", optional = true, default-features = false } | ||
| btleplug = { version = "0.11", optional = true } | ||
|
|
||
|
|
||
| [dev-dependencies] | ||
| anyhow = "1.0" | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI: changes in this file are only needed to be able to override the backend from command line when building
ledger-cli(e.g.cargo run --no-default-features --features transport_usb_hidraw --bin ledger-cli -- list)