From 027f26cef17364c5e802547eac1da4b94d5b2b68 Mon Sep 17 00:00:00 2001 From: Juan Leni Date: Thu, 9 May 2024 19:41:59 +0200 Subject: [PATCH] correct version matching --- Cargo.toml | 6 ++++++ README.md | 14 ++++++++++++++ ledger-transport-hid/Cargo.toml | 4 ++-- ledger-transport/Cargo.toml | 2 +- ledger-zondax-generic/Cargo.toml | 2 +- 5 files changed, 24 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b9d3f46..6d3d18a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,3 +12,9 @@ exclude = [] [profile.release] opt-level = "s" overflow-checks = true + +[patch.crates-io] +ledger-apdu = { path = "ledger-apdu" } +ledger-transport = { path = "ledger-transport" } +ledger-transport-hid = { path = "ledger-transport-hid" } +ledger-zondax-generic = { path = "ledger-zondax-generic" } diff --git a/README.md b/README.md index 8bd4eb9..e0a801b 100644 --- a/README.md +++ b/README.md @@ -30,3 +30,17 @@ Afterwards, there's a correct order to publish the crates, based on the crate de Then, the rest of the crates can be published in any order. +``sh +cargo login +cargo package -p ledger-apdu +cargo publish -p ledger-apdu + +cargo package -p ledger-transport +cargo publish -p ledger-transport + +cargo package -p ledger-zondax-generic +cargo publish -p ledger-zondax-generic + +cargo package -p ledger-transport-hid +cargo publish -p ledger-transport-hid +`` \ No newline at end of file diff --git a/ledger-transport-hid/Cargo.toml b/ledger-transport-hid/Cargo.toml index 6849bd6..dceecf9 100644 --- a/ledger-transport-hid/Cargo.toml +++ b/ledger-transport-hid/Cargo.toml @@ -19,12 +19,12 @@ thiserror = "1" hex = "0.4" log = "0.4" -ledger-transport = { path = "../ledger-transport" } +ledger-transport = "0.11.0" hidapi = { version = "2.6.1", features = ["linux-static-hidraw"], default-features = false } [dev-dependencies] once_cell = "1" -ledger-zondax-generic = { path = "../ledger-zondax-generic" } +ledger-zondax-generic = "0.11.0" serial_test = "3" env_logger = "0.11" futures = "0.3" diff --git a/ledger-transport/Cargo.toml b/ledger-transport/Cargo.toml index 5970171..25aa226 100644 --- a/ledger-transport/Cargo.toml +++ b/ledger-transport/Cargo.toml @@ -13,4 +13,4 @@ edition = "2021" [dependencies] async-trait = "0.1.80" -ledger-apdu = { path = "../ledger-apdu" } +ledger-apdu = "0.11.0" diff --git a/ledger-zondax-generic/Cargo.toml b/ledger-zondax-generic/Cargo.toml index b10ddf2..d214d75 100644 --- a/ledger-zondax-generic/Cargo.toml +++ b/ledger-zondax-generic/Cargo.toml @@ -15,5 +15,5 @@ edition = "2021" serde = { version = "1", features = ["derive"] } thiserror = "1" -ledger-transport = { path = "../ledger-transport" } +ledger-transport = "0.11.0" async-trait = "0.1"