Skip to content

Commit 197864d

Browse files
author
Mateo
committed
Bump crates to the latest versions
1 parent db4a20f commit 197864d

File tree

13 files changed

+53
-50
lines changed

13 files changed

+53
-50
lines changed

.github/workflows/pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
include:
11-
- rust: 1.70.0
11+
- rust: 1.77.2
1212
examples: false
1313
continue-on-error: false
1414
- rust: stable

ethcontract-common/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ Common types for ethcontract-rs runtime and proc macro.
1313

1414
[dependencies]
1515
ethabi = "18.0"
16-
hex = "0.4"
17-
serde = "1.0"
18-
serde_derive = "1.0"
19-
serde_json = "1.0"
20-
thiserror = "1.0"
21-
tiny-keccak = { version = "2.0", features = ["keccak"] }
16+
hex = "0.4.3"
17+
serde = "1.0.198"
18+
serde_derive = "1.0.198"
19+
serde_json = "1.0.116"
20+
thiserror = "1.0.58"
21+
tiny-keccak = { version = "2.0.2", features = ["keccak"] }
2222
web3 = { version = "0.19", default-features = false }

ethcontract-common/src/artifact/truffle.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ impl TruffleLoader {
141141
let mut contract: Contract = loader(source)?;
142142

143143
if let Some(name) = &self.name {
144-
contract.name = name.clone();
144+
contract.name.clone_from(name)
145145
}
146146

147147
Ok(contract)

ethcontract-derive/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ proc-macro = true
2222
anyhow = "1.0"
2323
ethcontract-common = { version = "0.25.5", path = "../ethcontract-common" }
2424
ethcontract-generate = { version = "0.25.5", path = "../ethcontract-generate", default-features = false }
25-
proc-macro2 = "1.0"
26-
quote = "1.0"
27-
syn = "2.0"
25+
proc-macro2 = "1.0.81"
26+
quote = "1.0.36"
27+
syn = "2.0.60"

ethcontract-generate/Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ default = ["http"]
1616
http = ["curl"]
1717

1818
[dependencies]
19-
anyhow = "1.0"
20-
curl = { version = "0.4", optional = true }
19+
anyhow = "1.0.82"
20+
curl = { version = "0.4.46", optional = true }
2121
ethcontract-common = { version = "0.25.5", path = "../ethcontract-common" }
22-
Inflector = "0.11"
23-
proc-macro2 = "1.0"
24-
quote = "1.0"
25-
syn = "2.0"
26-
url = "2.1"
22+
Inflector = "0.11.4"
23+
proc-macro2 = "1.0.81"
24+
quote = "1.0.36"
25+
syn = "2.0.60"
26+
url = "2.5.0"

ethcontract-mock/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ Tools for mocking ethereum contracts.
1313

1414
[dependencies]
1515
ethcontract = { version = "0.25.5", path = "../ethcontract", default-features = false, features = ["derive"] }
16-
hex = "0.4"
17-
mockall = "0.11"
18-
rlp = "0.5"
16+
hex = "0.4.3"
17+
mockall = "0.12.1"
18+
rlp = "0.5.2"
1919
predicates = "3.0"
2020

2121
[dev-dependencies]
22-
tokio = { version = "1.6", features = ["macros", "rt"] }
22+
tokio = { version = "1.37.0", features = ["macros", "rt"] }
2323
ethcontract-derive = { version = "0.25.5", path = "../ethcontract-derive", default-features = false }

ethcontract-mock/src/details/transaction.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
33
use ethcontract::{Address, H256, U256};
44

5+
#[allow(dead_code)]
56
/// Basic transaction parameters.
67
pub struct Transaction {
78
pub from: Address,

ethcontract/Cargo.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,26 @@ ws-tls-tokio = ["web3/ws-tls-tokio"]
3232
ws-tokio = ["web3/ws-tokio"]
3333

3434
[dependencies]
35-
aws-config = { version = "0.55", optional = true }
36-
aws-sdk-kms = { version = "0.28", optional = true }
37-
arrayvec = "0.7"
35+
aws-config = { version = "1.2.0", features = ["behavior-version-latest"], optional = true }
36+
aws-sdk-kms = { version = "1.21.0", optional = true }
37+
arrayvec = "0.7.4"
3838
ethcontract-common = { version = "0.25.5", path = "../ethcontract-common" }
3939
ethcontract-derive = { version = "0.25.5", path = "../ethcontract-derive", optional = true, default-features = false }
4040
futures = "0.3"
4141
futures-timer = "3.0"
42-
hex = "0.4"
42+
hex = "0.4.3"
4343
jsonrpc-core = "18.0"
4444
lazy_static = "1.4"
45-
primitive-types = { version = "0.12", features = ["fp-conversion"] }
46-
rlp = { version = "0.5", default-features = false, optional = true }
47-
secp256k1 = { version = "0.27", features = ["recovery"] }
45+
primitive-types = { version = "0.12.2", features = ["fp-conversion"] }
46+
rlp = { version = "0.5.2", default-features = false, optional = true }
47+
secp256k1 = { version = "0.29.0", features = ["recovery"] }
4848
serde = { version = "1.0", features = ["derive"] }
49-
serde_json = "1.0"
50-
thiserror = "1.0"
51-
uint = "0.9"
49+
serde_json = "1.0.116"
50+
thiserror = "1.0.58"
51+
uint = "0.9.5"
5252
web3 = { version = "0.19", default-features = false, features = ["signing"] }
53-
zeroize = "1.1"
53+
zeroize = "1.7.0"
5454

5555
[dev-dependencies]
56-
hex-literal = "0.4"
57-
tokio = { version = "1.6", features = ["macros"] }
56+
hex-literal = "0.4.1"
57+
tokio = { version = "1.37.0", features = ["macros"] }

ethcontract/src/int.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ use std::fmt;
77
use std::iter;
88
use std::ops;
99
use std::str;
10-
use std::{i128, i64, u64};
1110
use web3::types::U256;
1211

1312
/// Compute the two's complement of a U256.
@@ -972,8 +971,8 @@ macro_rules! impl_from {
972971
type Error = TryFromBigIntError;
973972

974973
fn try_from(value: I256) -> Result<Self, Self::Error> {
975-
if value < I256::from(Self::min_value()) ||
976-
value > I256::from(Self::max_value()) {
974+
if value < I256::from(Self::MIN) ||
975+
value > I256::from(Self::MAX) {
977976
return Err(TryFromBigIntError);
978977
}
979978

@@ -1291,11 +1290,11 @@ mod tests {
12911290
assert_eq!(I256::one().to_string(), "1");
12921291
assert_eq!(I256::minus_one().to_string(), "-1");
12931292
assert_eq!(
1294-
I256::max_value().to_string(),
1293+
I256::MAX.to_string(),
12951294
"57896044618658097711785492504343953926634992332820282019728792003956564819967"
12961295
);
12971296
assert_eq!(
1298-
I256::min_value().to_string(),
1297+
I256::MIN.to_string(),
12991298
"-57896044618658097711785492504343953926634992332820282019728792003956564819968"
13001299
);
13011300
}
@@ -1317,18 +1316,18 @@ mod tests {
13171316
assert_eq!(I256::from(-42 as $signed).to_string(), "-42");
13181317
assert_eq!(I256::from(42 as $signed).to_string(), "42");
13191318
assert_eq!(
1320-
I256::from(<$signed>::max_value()).to_string(),
1321-
<$signed>::max_value().to_string(),
1319+
I256::from(<$signed>::MAX).to_string(),
1320+
<$signed>::MAX.to_string(),
13221321
);
13231322
assert_eq!(
1324-
I256::from(<$signed>::min_value()).to_string(),
1325-
<$signed>::min_value().to_string(),
1323+
I256::from(<$signed>::MIN).to_string(),
1324+
<$signed>::MIN.to_string(),
13261325
);
13271326

13281327
assert_eq!(I256::from(42 as $unsigned).to_string(), "42");
13291328
assert_eq!(
1330-
I256::from(<$unsigned>::max_value()).to_string(),
1331-
<$unsigned>::max_value().to_string(),
1329+
I256::from(<$unsigned>::MAX).to_string(),
1330+
<$unsigned>::MAX.to_string(),
13321331
);
13331332

13341333
assert!(matches!(<$signed>::try_from(small_positive), Ok(42)));

ethcontract/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ pub mod dyns {
165165
pub type DynAllEventsBuilder<E> = AllEventsBuilder<DynTransport, E>;
166166
}
167167

168+
#[allow(unknown_lints)]
169+
#[allow(clippy::mixed_attributes_style)]
168170
#[doc(hidden)]
169171
pub mod private {
170172
//! Private definitions that are needed by the generated contract code or

0 commit comments

Comments
 (0)