From a2eed17002c9d515df9ad90e6fc77acac0b8947b Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Wed, 27 May 2020 15:03:31 +0300 Subject: [PATCH] add versions for publishing --- crates/ethers-abi/Cargo.toml | 6 ++---- crates/ethers-contract/Cargo.toml | 12 ++++++------ .../ethers-contract-abigen/src/contract/events.rs | 2 +- crates/ethers-providers/Cargo.toml | 6 +++--- crates/ethers-signers/Cargo.toml | 6 +++--- crates/ethers-types/Cargo.toml | 2 +- crates/ethers/Cargo.toml | 14 +++++++------- 7 files changed, 23 insertions(+), 25 deletions(-) diff --git a/crates/ethers-abi/Cargo.toml b/crates/ethers-abi/Cargo.toml index 5fa6346c..fe43f241 100644 --- a/crates/ethers-abi/Cargo.toml +++ b/crates/ethers-abi/Cargo.toml @@ -4,11 +4,9 @@ version = "0.1.0" authors = ["Georgios Konstantopoulos "] edition = "2018" -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] -ethers-types = { path = "../ethers-types" } -ethers-utils = { path = "../ethers-utils" } +ethers-types = { version = "0.1.0", path = "../ethers-types" } +ethers-utils = { version = "0.1.0", path = "../ethers-utils" } ethabi = "12.0.0" arrayvec = "0.5.1" diff --git a/crates/ethers-contract/Cargo.toml b/crates/ethers-contract/Cargo.toml index 0d24209b..05525f5a 100644 --- a/crates/ethers-contract/Cargo.toml +++ b/crates/ethers-contract/Cargo.toml @@ -5,13 +5,13 @@ authors = ["Georgios Konstantopoulos "] edition = "2018" [dependencies] -ethers-contract-abigen = { path = "ethers-contract-abigen", optional = true } -ethers-contract-derive = { path = "ethers-contract-derive", optional = true } +ethers-contract-abigen = { version = "0.1.0", path = "ethers-contract-abigen", optional = true } +ethers-contract-derive = { version = "0.1.0", path = "ethers-contract-derive", optional = true } -ethers-abi = { path = "../ethers-abi" } -ethers-providers = { path = "../ethers-providers" } -ethers-signers = { path = "../ethers-signers" } -ethers-types = { path = "../ethers-types" } +ethers-abi = { version = "0.1.0", path = "../ethers-abi" } +ethers-providers = { version = "0.1.0", path = "../ethers-providers" } +ethers-signers = { version = "0.1.0", path = "../ethers-signers" } +ethers-types = { version = "0.1.0", path = "../ethers-types" } serde = { version = "1.0.110", default-features = false } rustc-hex = { version = "2.1.0", default-features = false } diff --git a/crates/ethers-contract/ethers-contract-abigen/src/contract/events.rs b/crates/ethers-contract/ethers-contract-abigen/src/contract/events.rs index 19d28cfd..c3681f00 100644 --- a/crates/ethers-contract/ethers-contract-abigen/src/contract/events.rs +++ b/crates/ethers-contract/ethers-contract-abigen/src/contract/events.rs @@ -52,7 +52,7 @@ fn expand_filter(event: &Event) -> Result { Ok(quote! { #doc - pub fn #name<'b>(&'a self) -> Event<'a, 'b, P, #result> where 'a: 'b { + pub fn #name<'b>(&'a self) -> Event<'a, 'b, P, #result> where 'a: 'b, { self.0.event(#ev_name).expect("event not found (this should never happen)") } }) diff --git a/crates/ethers-providers/Cargo.toml b/crates/ethers-providers/Cargo.toml index 9234c3c5..e3ecb248 100644 --- a/crates/ethers-providers/Cargo.toml +++ b/crates/ethers-providers/Cargo.toml @@ -5,9 +5,9 @@ authors = ["Georgios Konstantopoulos "] edition = "2018" [dependencies] -ethers-types = { path = "../ethers-types" } -ethers-utils = { path = "../ethers-utils" } -ethers-abi = { path = "../ethers-abi" } +ethers-types = { version = "0.1.0", path = "../ethers-types" } +ethers-utils = { version = "0.1.0", path = "../ethers-utils" } +ethers-abi = { version = "0.1.0", path = "../ethers-abi" } async-trait = { version = "0.1.31", default-features = false } reqwest = { version = "0.10.4", default-features = false, features = ["json", "rustls-tls"] } diff --git a/crates/ethers-signers/Cargo.toml b/crates/ethers-signers/Cargo.toml index 12d6db03..21008092 100644 --- a/crates/ethers-signers/Cargo.toml +++ b/crates/ethers-signers/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Georgios Konstantopoulos "] edition = "2018" [dependencies] -ethers-types = { path = "../ethers-types" } -ethers-providers = { path = "../ethers-providers" } -ethers-utils = { path = "../ethers-utils" } +ethers-types = { version = "0.1.0", path = "../ethers-types" } +ethers-providers = { version = "0.1.0", path = "../ethers-providers" } +ethers-utils = { version = "0.1.0", path = "../ethers-utils" } diff --git a/crates/ethers-types/Cargo.toml b/crates/ethers-types/Cargo.toml index 41bf696d..6df57ba6 100644 --- a/crates/ethers-types/Cargo.toml +++ b/crates/ethers-types/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Georgios Konstantopoulos "] edition = "2018" [dependencies] -ethers-utils = { path = "../ethers-utils" } +ethers-utils = { version = "0.1.0", path = "../ethers-utils" } ethereum-types = { version = "0.9.2", default-features = false, features = ["serialize"] } serde = { version = "1.0.110", default-features = false, features = ["derive"] } diff --git a/crates/ethers/Cargo.toml b/crates/ethers/Cargo.toml index 6c97c098..0b711bf4 100644 --- a/crates/ethers/Cargo.toml +++ b/crates/ethers/Cargo.toml @@ -23,15 +23,15 @@ types = ["ethers-types"] utils = ["ethers-utils"] [dependencies] -ethers-abi = { path = "../ethers-abi", optional = true } -ethers-contract = { path = "../ethers-contract", features = ["abigen"], optional = true } -ethers-providers = { path = "../ethers-providers", optional = true } -ethers-signers = { path = "../ethers-signers", optional = true } -ethers-types = { path = "../ethers-types", optional = true } -ethers-utils = { path = "../ethers-utils", optional = true } +ethers-abi = { version = "0.1.0", path = "../ethers-abi", optional = true } +ethers-contract = { version = "0.1.0", path = "../ethers-contract", features = ["abigen"], optional = true } +ethers-providers = { version = "0.1.0", path = "../ethers-providers", optional = true } +ethers-signers = { version = "0.1.0", path = "../ethers-signers", optional = true } +ethers-types = { version = "0.1.0", path = "../ethers-types", optional = true } +ethers-utils = { version = "0.1.0", path = "../ethers-utils", optional = true } [dev-dependencies] -ethers-contract = { path = "../ethers-contract", features = ["abigen"] } +ethers-contract = { version = "0.1.0", path = "../ethers-contract", features = ["abigen"] } anyhow = "1.0.31" tokio = { version = "0.2.21", features = ["macros"] }