diff --git a/Cargo.lock b/Cargo.lock index 1c951811..87431443 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -198,13 +198,11 @@ dependencies = [ "async-trait", "ethereum-types", "failure", - "futures", "rand 0.5.6", "reqwest", "rlp", "rustc-hex", "secp256k1", - "secrecy", "serde", "serde_json", "solc", @@ -277,21 +275,6 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7" -[[package]] -name = "futures" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e05b85ec287aac0dc34db7d4a569323df697f9c55b99b15d6b4ef8cde49f613" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] - [[package]] name = "futures-channel" version = "0.3.5" @@ -299,7 +282,6 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f366ad74c28cca6ba456d95e6422883cfb4b252a83bed929c83abfdbbf2967d5" dependencies = [ "futures-core", - "futures-sink", ] [[package]] @@ -308,35 +290,6 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59f5fff90fd5d971f936ad674802482ba441b6f09ba5e15fd8b39145582ca399" -[[package]] -name = "futures-executor" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10d6bb888be1153d3abeb9006b11b02cf5e9b209fda28693c31ae1e4e012e314" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de27142b013a8e869c14957e6d2edeef89e97c289e69d042ee3a49acd8b51789" - -[[package]] -name = "futures-macro" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0b5a30a4328ab5473878237c447333c093297bded83a4983d10f4deea240d39" -dependencies = [ - "proc-macro-hack", - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "futures-sink" version = "0.3.5" @@ -348,9 +301,6 @@ name = "futures-task" version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bdb66b5f09e22019b1ab0830f7785bcea8e7a42148683f99214f73f8ec21a626" -dependencies = [ - "once_cell", -] [[package]] name = "futures-util" @@ -358,18 +308,10 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8764574ff08b701a084482c3c7031349104b07ac897393010494beaa18ce32c6" dependencies = [ - "futures-channel", "futures-core", - "futures-io", - "futures-macro", - "futures-sink", "futures-task", - "memchr", "pin-project", "pin-utils", - "proc-macro-hack", - "proc-macro-nested", - "slab", ] [[package]] @@ -637,12 +579,6 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9cbca9424c482ee628fa549d9c812e2cd22f1180b9222c9200fdfa6eb31aecb2" -[[package]] -name = "once_cell" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b631f7e854af39a1739f401cf34a8a013dfe09eac4fa4dba91e9768bd28168d" - [[package]] name = "parity-scale-codec" version = "1.3.0" @@ -712,18 +648,6 @@ dependencies = [ "uint", ] -[[package]] -name = "proc-macro-hack" -version = "0.5.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d659fe7c6d27f25e9d80a1a094c223f5246f6a6596453e09d7229bf42750b63" - -[[package]] -name = "proc-macro-nested" -version = "0.1.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e946095f9d3ed29ec38de908c22f95d9ac008e424c7bcae54c75a79c527c694" - [[package]] name = "proc-macro2" version = "1.0.15" @@ -990,15 +914,6 @@ dependencies = [ "cc", ] -[[package]] -name = "secrecy" -version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9182278ed645df3477a9c27bfee0621c621aa16f6972635f7f795dae3d81070f" -dependencies = [ - "zeroize", -] - [[package]] name = "serde" version = "1.0.110" diff --git a/Cargo.toml b/Cargo.toml index 4bffcb6e..9291dde2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,18 +7,16 @@ edition = "2018" [dependencies] ethereum-types = { version = "0.9.2", default-features = false, features = ["serialize"] } url = { version = "2.1.1", default-features = false } -async-trait = "0.1.31" +async-trait = { version = "0.1.31", default-features = false } reqwest = { version = "0.10.4", default-features = false, features = ["json"] } serde = { version = "1.0.110", default-features = false, features = ["derive"] } -serde_json = "1.0.53" -thiserror = "1.0.19" -rustc-hex = "2.1.0" -rand = "0.5.1" # this should be the same rand crate version as the one in secp -secp256k1 = { version = "0.17.2", features = ["recovery", "rand"] } -secrecy = "0.6.0" -zeroize = "1.1.0" -tiny-keccak = "2.0.2" -futures = "0.3.5" +serde_json = { version = "1.0.53", default-features = false } +thiserror = { version = "1.0.19", default-features = false } +rustc-hex = { version = "2.1.0", default-features = false } +rand = { version = "0.5.1", default-features = false } # this should be the same rand crate version as the one in secp +secp256k1 = { version = "0.17.2", default-features = false, features = ["std", "recovery", "rand"] } +zeroize = { version = "1.1.0", default-features = false } +tiny-keccak = { version = "2.0.2", default-features = false } solc = { git = "https://github.com/paritytech/rust_solc "} rlp = "0.4.5" @@ -26,4 +24,4 @@ rlp = "0.4.5" [dev-dependencies] tokio = { version = "0.2.21", features = ["macros"] } failure = "0.1.8" - +rand = { version = "0.5.1" } diff --git a/src/lib.rs b/src/lib.rs index 88e66770..549fdd38 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -19,6 +19,7 @@ pub mod providers; pub use providers::HttpProvider; pub mod signers; + pub use signers::{AnyWallet, MainnetWallet, Signer}; /// Ethereum related datatypes