From dbbefb3c442a85f42c5aa9eb5611ff680c90800d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thoralf=20M=C3=BCller?= Date: Wed, 18 Sep 2024 09:44:20 +0200 Subject: [PATCH] fix compilation for Rust >= 1.79 --- Cargo.lock | 8 ++++---- bindings/nodejs/package.json | 2 +- bindings/nodejs/yarn.lock | 8 ++++---- sdk/src/client/mod.rs | 2 +- sdk/src/types/block/protocol.rs | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 29580d921b..fca9c46ea9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3204,9 +3204,9 @@ dependencies = [ [[package]] name = "time" -version = "0.3.34" +version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8248b6521bb14bc45b4067159b9b6ad792e2d6d754d6c41fb50e29fefe38749" +checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" dependencies = [ "deranged", "itoa", @@ -3236,9 +3236,9 @@ dependencies = [ [[package]] name = "time-macros" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ba3a3ef41e6672a2f0f001392bb5dcd3ff0a9992d618ca761a11c3121547774" +checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" dependencies = [ "num-conv", "time-core", diff --git a/bindings/nodejs/package.json b/bindings/nodejs/package.json index fc9efb31dc..4b0ce5d21a 100644 --- a/bindings/nodejs/package.json +++ b/bindings/nodejs/package.json @@ -35,7 +35,7 @@ "@types/node": "^18.15.12", "@typescript-eslint/eslint-plugin": "^5.30.7", "@typescript-eslint/parser": "^5.30.7", - "cargo-cp-artifact": "^0.1.6", + "cargo-cp-artifact": "^0.1.9", "dotenv": "^16.0.3", "electron-build-env": "^0.2.0", "eslint": "^8.20.0", diff --git a/bindings/nodejs/yarn.lock b/bindings/nodejs/yarn.lock index 11abd7bb3b..54fd5e38ab 100644 --- a/bindings/nodejs/yarn.lock +++ b/bindings/nodejs/yarn.lock @@ -1455,10 +1455,10 @@ caniuse-lite@^1.0.30001580: resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001585.tgz#0b4e848d84919c783b2a41c13f7de8ce96744401" integrity sha512-yr2BWR1yLXQ8fMpdS/4ZZXpseBgE7o4g41x3a6AJOqZuOi+iE/WdJYAuZ6Y95i4Ohd2Y+9MzIWRR+uGABH4s3Q== -cargo-cp-artifact@^0.1.6: - version "0.1.8" - resolved "https://registry.yarnpkg.com/cargo-cp-artifact/-/cargo-cp-artifact-0.1.8.tgz#353814f49f6aa76601a4bcb3ea5f3071180b90de" - integrity sha512-3j4DaoTrsCD1MRkTF2Soacii0Nx7UHCce0EwUf4fHnggwiE4fbmF2AbnfzayR36DF8KGadfh7M/Yfy625kgPlA== +cargo-cp-artifact@^0.1.9: + version "0.1.9" + resolved "https://registry.yarnpkg.com/cargo-cp-artifact/-/cargo-cp-artifact-0.1.9.tgz#32264a0a48109e26c48da334daff9a1da9d9b7c8" + integrity sha512-6F+UYzTaGB+awsTXg0uSJA1/b/B3DDJzpKVRu0UmyI7DmNeaAl2RFHuTGIN6fEgpadRxoXGb7gbC1xo4C3IdyA== caseless@~0.12.0: version "0.12.0" diff --git a/sdk/src/client/mod.rs b/sdk/src/client/mod.rs index b759247f98..cbb93dff2f 100644 --- a/sdk/src/client/mod.rs +++ b/sdk/src/client/mod.rs @@ -16,7 +16,7 @@ //! .await?; //! //! let block = client -//! .block() +//! .build_block() //! .finish() //! .await?; //! diff --git a/sdk/src/types/block/protocol.rs b/sdk/src/types/block/protocol.rs index 7afb3591b8..cccbdd727b 100644 --- a/sdk/src/types/block/protocol.rs +++ b/sdk/src/types/block/protocol.rs @@ -125,7 +125,7 @@ impl ProtocolParameters { } /// Returns a [`ProtocolParameters`] for testing purposes. -#[cfg(any(feature = "test", feature = "rand"))] +#[cfg(any(test, feature = "rand"))] pub fn protocol_parameters() -> ProtocolParameters { ProtocolParameters::new( 2,