diff --git a/relay_rpc/Cargo.toml b/relay_rpc/Cargo.toml index ce393a4..e8c8fc1 100644 --- a/relay_rpc/Cargo.toml +++ b/relay_rpc/Cargo.toml @@ -4,19 +4,38 @@ version = "0.1.0" edition = "2021" [features] -cacao = ["dep:k256", "dep:sha3"] +cacao = [ + "dep:k256", + "dep:sha3", + "dep:alloy-providers", + "dep:alloy-transport", + "dep:alloy-transport-http", + "dep:alloy-rpc-types", + "dep:alloy-json-rpc", + "dep:alloy-json-abi", + "dep:alloy-sol-types", + "dep:alloy-primitives", +] [dependencies] bs58 = "0.4" data-encoding = "2.3" -derive_more = { version = "0.99", default-features = false, features = ["display", "from", "as_ref", "as_mut"] } +derive_more = { version = "0.99", default-features = false, features = [ + "display", + "from", + "as_ref", + "as_mut", +] } serde = { version = "1.0", features = ["derive", "rc"] } serde-aux = { version = "4.1", default-features = false } serde_json = "1.0" thiserror = "1.0" ed25519-dalek = { git = "https://github.com/dalek-cryptography/ed25519-dalek.git", rev = "7529d65" } rand = "0.7" -chrono = { version = "0.4", default-features = false, features = ["std", "clock"] } +chrono = { version = "0.4", default-features = false, features = [ + "std", + "clock", +] } regex = "1.7" once_cell = "1.16" jsonwebtoken = "8.1" @@ -25,14 +44,14 @@ sha3 = { version = "0.10", optional = true } sha2 = { version = "0.10.6" } reqwest = { version = "0.11", features = ["default-tls"] } url = "2" -alloy-providers = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1" } -alloy-transport = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1" } -alloy-transport-http = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1" } -alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1" } -alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1" } -alloy-json-abi = "0.6.2" -alloy-sol-types = "0.6.2" -alloy-primitives = "0.6.2" +alloy-providers = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1", optional = true } +alloy-transport = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1", optional = true } +alloy-transport-http = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1", optional = true } +alloy-rpc-types = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1", optional = true } +alloy-json-rpc = { git = "https://github.com/alloy-rs/alloy.git", rev = "e6f98e1", optional = true } +alloy-json-abi = { version = "0.6.2", optional = true } +alloy-sol-types = { version = "0.6.2", optional = true } +alloy-primitives = { version = "0.6.2", optional = true } [dev-dependencies] tokio = { version = "1.35.1", features = ["test-util", "macros"] }