Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4e27d6b
chore: bump rustc to v1.95.0 (#10390)
mraszyk Jul 8, 2026
84b928c
enable bazel test all
mraszyk Jul 8, 2026
8f0a573
test: adjust wasm size limits and subnet-splitting estimates for rust…
mraszyk Jul 8, 2026
6bf0dc9
Merge branch 'master' into mraszyl/rustc-1-95-0-again
mraszyk Jul 8, 2026
11e20bc
Updating container images to tag: 0b686a486b72ba188d46146139fce699140…
Jul 8, 2026
912e8bb
chore: refresh canbench results
mraszyk Jul 9, 2026
0bd351a
Merge remote-tracking branch 'origin/master' into mraszyl/rustc-1-95-…
basvandijk Jul 9, 2026
6325c0d
Updating container images to tag: baf0cbe760d16c66c8294e2c5b8edc59a95…
Jul 9, 2026
03af339
Merge branch 'master' into mraszyl/rustc-1-95-0-again
basvandijk Jul 9, 2026
16cd278
Merge remote-tracking branch 'origin/master' into mraszyl/rustc-1-95-…
basvandijk Jul 10, 2026
8864ac6
Updating container images to tag: 10a13e88a32ba0930ec494327b5e413df2c…
Jul 10, 2026
5c0fe78
Merge remote-tracking branch 'origin/master' into mraszyl/rustc-1-95-…
basvandijk Jul 10, 2026
1a237c9
Updating container images to tag: 285e2d5f1b7bc3735765c70b70504aad04c…
Jul 10, 2026
e20e6a3
chore: upgrade rustc: 1.95.0 -> 1.97.0
basvandijk Jul 10, 2026
3522b76
Updating container images to tag: 180b7a18c045f013033db88ee52d44c4c9f…
Jul 10, 2026
b979272
Merge remote-tracking branch 'origin/master' into rustc-1.97.0
basvandijk Jul 10, 2026
58eab26
chore: adapt for rustc-1.97.0
basvandijk Jul 10, 2026
e4223cc
Merge remote-tracking branch 'origin/master' into rustc-1.97.0
basvandijk Jul 13, 2026
0957c4a
chore: fix rustc 1.97.0 clippy violations
basvandijk Jul 14, 2026
fd2a884
Automatically updated Cargo*.lock
Jul 14, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions Cargo.Bazel.json.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"checksum": "607398f501234430d179782f3255247d0fadba6fd387c0f0b07470d4b0ba3875",
"checksum": "3400af9d008b727142c1e50ae09873d3bf926c4b7b2ef5503bd51c4cb1616726",
"crates": {
"abnf 0.12.0": {
"name": "abnf",
Expand Down Expand Up @@ -22116,7 +22116,7 @@
"target": "ethers_core"
},
{
"id": "ethnum 1.3.2",
"id": "ethnum 1.5.3",
"target": "ethnum"
},
{
Expand Down Expand Up @@ -23571,7 +23571,7 @@
],
"cfg(windows)": [
{
"id": "windows-sys 0.59.0",
"id": "windows-sys 0.61.2",
"target": "windows_sys"
}
]
Expand Down Expand Up @@ -26373,14 +26373,14 @@
],
"license_file": null
},
"ethnum 1.3.2": {
"ethnum 1.5.3": {
"name": "ethnum",
"version": "1.3.2",
"version": "1.5.3",
"package_url": "https://github.com/nlordell/ethnum-rs",
"repository": {
"Http": {
"url": "https://static.crates.io/crates/ethnum/1.3.2/download",
"sha256": "0198b9d0078e0f30dedc7acbb21c974e838fc8fae3ee170128658a98cb2c1c04"
"url": "https://static.crates.io/crates/ethnum/1.5.3/download",
"sha256": "40404c3f5f511ec4da6fe866ddf6a717c309fdbb69fbbad7b0f3edab8f2e835f"
}
},
"targets": [
Expand Down Expand Up @@ -26418,7 +26418,7 @@
"selects": {}
},
"edition": "2021",
"version": "1.3.2"
"version": "1.5.3"
},
"license": "MIT OR Apache-2.0",
"license_ids": [
Expand Down Expand Up @@ -34642,7 +34642,7 @@
"target": "pin_project_lite"
},
{
"id": "socket2 0.5.9",
"id": "socket2 0.6.1",
"target": "socket2"
},
{
Expand Down Expand Up @@ -63730,7 +63730,7 @@
],
"cfg(not(all(target_family = \"wasm\", target_os = \"unknown\")))": [
{
"id": "socket2 0.5.9",
"id": "socket2 0.6.1",
"target": "socket2"
}
]
Expand Down Expand Up @@ -70330,7 +70330,7 @@
"alias": "libc_errno"
},
{
"id": "windows-sys 0.59.0",
"id": "windows-sys 0.61.2",
"target": "windows_sys"
}
],
Expand Down Expand Up @@ -71286,7 +71286,7 @@
],
"cfg(windows)": [
{
"id": "windows-sys 0.59.0",
"id": "windows-sys 0.61.2",
"target": "windows_sys"
}
]
Expand Down Expand Up @@ -71401,7 +71401,7 @@
],
"cfg(windows)": [
{
"id": "windows-sys 0.59.0",
"id": "windows-sys 0.61.2",
"target": "windows_sys"
}
]
Expand Down Expand Up @@ -81542,7 +81542,7 @@
],
"cfg(windows)": [
{
"id": "windows-sys 0.59.0",
"id": "windows-sys 0.61.2",
"target": "windows_sys"
}
],
Expand Down Expand Up @@ -101321,7 +101321,7 @@
"erased-serde 0.3.28",
"escargot 0.5.7",
"ethers-core 2.0.8",
"ethnum 1.3.2",
"ethnum 1.5.3",
"evm_rpc_client 0.4.0",
"evm_rpc_types 3.1.1",
"exec 0.3.1",
Expand Down
18 changes: 9 additions & 9 deletions Cargo.Bazel.toml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4095,7 +4095,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users 0.5.0",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]

[[package]]
Expand Down Expand Up @@ -4557,9 +4557,9 @@ dependencies = [

[[package]]
name = "ethnum"
version = "1.3.2"
version = "1.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0198b9d0078e0f30dedc7acbb21c974e838fc8fae3ee170128658a98cb2c1c04"
checksum = "40404c3f5f511ec4da6fe866ddf6a717c309fdbb69fbbad7b0f3edab8f2e835f"
dependencies = [
"serde",
]
Expand Down Expand Up @@ -5940,7 +5940,7 @@ dependencies = [
"libc",
"percent-encoding",
"pin-project-lite",
"socket2 0.5.9",
"socket2 0.6.1",
"system-configuration 0.7.0",
"tokio",
"tower-layer",
Expand Down Expand Up @@ -10788,7 +10788,7 @@ dependencies = [
"quinn-udp",
"rustc-hash 2.1.1",
"rustls 0.23.27",
"socket2 0.5.9",
"socket2 0.6.1",
"thiserror 2.0.18",
"tokio",
"tracing",
Expand Down Expand Up @@ -11820,7 +11820,7 @@ dependencies = [
"errno 0.3.10",
"libc",
"linux-raw-sys 0.12.1",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]

[[package]]
Expand Down Expand Up @@ -11963,7 +11963,7 @@ dependencies = [
"security-framework 3.5.1",
"security-framework-sys",
"webpki-root-certs",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]

[[package]]
Expand All @@ -11984,7 +11984,7 @@ dependencies = [
"security-framework 3.5.1",
"security-framework-sys",
"webpki-root-certs",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]

[[package]]
Expand Down Expand Up @@ -13658,7 +13658,7 @@ dependencies = [
"getrandom 0.3.4",
"once_cell",
"rustix 1.1.4",
"windows-sys 0.59.0",
"windows-sys 0.61.2",
]

[[package]]
Expand Down
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ ed25519-dalek = { version = "2.2.0", features = [
"pem",
"hazmat",
] }
ethnum = { version = "1.3.2", features = ["serde"] }
ethnum = { version = "1.5.3", features = ["serde"] }
evm_rpc_client = "0.4.0"
evm_rpc_types = "3.1.0"
flate2 = "1.0.31"
Expand Down
2 changes: 1 addition & 1 deletion bazel/rust.MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ crate.spec(
crate.spec(
features = ["serde"],
package = "ethnum",
version = "^1.3.2",
version = "^1.5.3",
)
crate.spec(
package = "evm_rpc_client",
Expand Down
10 changes: 2 additions & 8 deletions rs/bitcoin/ckbtc/minter/src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1230,13 +1230,7 @@ impl CkBtcMinterState {
) -> Option<&ConsolidateUtxosRequest> {
self.current_consolidate_utxos_request
.as_ref()
.and_then(|req| {
if req.block_index == block_index {
Some(req)
} else {
None
}
})
.filter(|&req| req.block_index == block_index)
}

/// Push a new ConsolidateUtxosRequest.
Expand Down Expand Up @@ -1821,7 +1815,7 @@ impl CkBtcMinterState {
.get(&input.previous_output)
.copied()
.unwrap_or_else(|| {
panic!("BUG: no account for outpoint {:?}", &input.previous_output)
panic!("BUG: no account for outpoint {:?}", input.previous_output)
}),
)
}
Expand Down
2 changes: 1 addition & 1 deletion rs/bitcoin/ckbtc/minter/src/state/eventlog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ impl EventLogger for CkBtcEventLogger {
None => {
return Err(ReplayLogError::InconsistentLog(format!(
"Cannot replace a non-existent transaction {}",
&old_txid
old_txid
)));
}
};
Expand Down
2 changes: 1 addition & 1 deletion rs/bitcoin/ckbtc/minter/src/tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub struct DisplayOutpoint<'a>(pub &'a OutPoint);

impl fmt::Display for DisplayOutpoint<'_> {
fn fmt(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {
write!(fmt, "{}:{}", &self.0.txid, self.0.vout)
write!(fmt, "{}:{}", self.0.txid, self.0.vout)
}
}

Expand Down
21 changes: 6 additions & 15 deletions rs/boundary_node/ic_boundary/src/rate_limiting/generic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,8 @@ impl Bucket {
}

if let Some(v) = self.rule.canister_id {
if let Some(x) = ctx.canister_id {
// If we have a canister id - compare it
if x != v {
return None;
}
} else {
// Otherwise ignore this rule
// If we have a canister id - compare it, otherwise ignore this rule
if ctx.canister_id? != v {
return None;
}
}
Expand All @@ -127,14 +122,10 @@ impl Bucket {
return None;
}

if let Some(rgx) = &self.rule.methods_regex {
if let Some(v) = ctx.method {
if !rgx.is_match(v) {
return None;
}
} else {
return None;
}
if let Some(rgx) = &self.rule.methods_regex
&& !rgx.is_match(ctx.method?)
{
return None;
}

if let Some(v) = self.rule.ip
Expand Down
2 changes: 1 addition & 1 deletion rs/canister_client/src/cbor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn parse_query_response(message: &CBOR) -> Result<RequestStatus, String> {
)),
None => Err(format!(
"Key '{:?}' not found in '{:?}'",
status_key, &content
status_key, content
)),
}?;

Expand Down
2 changes: 1 addition & 1 deletion rs/canister_client/src/http_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ impl HttpClient {
let readable_response = if is_update_call {
format!("{:?}", serde_cbor::from_slice::<Value>(&parsed_body))
} else {
format!("{:?}", &std::str::from_utf8(&parsed_body))
format!("{:?}", std::str::from_utf8(&parsed_body))
};

return Err(format!(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,7 @@ impl SandboxedExecutionController {
.get_ref()
.resource_limits()
.maximum_state_delta
.and_then(|d| if d.get() != 0 { Some(d) } else { None })
.filter(|&d| d.get() != 0)
.unwrap_or(self.default_subnet_heap_delta_capacity);
heap_delta_capacity / MAX_SANDBOXES_RSS_TO_HEAP_DELTA_RATIO
}
Expand Down
2 changes: 1 addition & 1 deletion rs/canister_sandbox/src/rpc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ impl<Message> ReplyManager<Message> {

pub fn flush_with_errors(&self) {
let mut mut_repr = self.repr.lock().unwrap();
for (_cookie, cell) in mut_repr.cells.iter() {
for cell in mut_repr.cells.values() {
cell.post_result(Err(Error::ServerError));
}
mut_repr.cells.clear();
Expand Down
4 changes: 2 additions & 2 deletions rs/config/src/crypto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ impl CryptoConfig {
if permissions_owner != 0o700 {
return Err(format!(
"Crypto state directory {} has permissions {:#o}, disallowing owner access",
&dir.display(),
dir.display(),
unix_permission_bits
));
}
let permissions_all = unix_permission_bits & 0o007;
if permissions_all != 0 {
return Err(format!(
"Crypto state directory {} has permissions {:#o}, allowing general access",
&dir.display(),
dir.display(),
unix_permission_bits
));
}
Expand Down
4 changes: 2 additions & 2 deletions rs/consensus/dkg/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ mod tests {
"Configs: {:?}",
summary.dkg.configs
);
for (dkg_id, _) in summary.dkg.configs.iter() {
for dkg_id in summary.dkg.configs.keys() {
assert_eq!(dkg_id.target_subnet, NiDkgTargetSubnet::Local);
}
assert_eq!(summary.dkg.transcripts_for_remote_subnets.len(), 0);
Expand Down Expand Up @@ -1568,7 +1568,7 @@ mod tests {
PoolReader::new(&pool_1).get_highest_finalized_summary_block();
if let BlockPayload::Summary(summary) = block.payload.as_ref() {
assert_eq!(summary.dkg.configs.len(), 2);
for (dkg_id, _) in summary.dkg.configs.iter() {
for dkg_id in summary.dkg.configs.keys() {
assert_eq!(dkg_id.target_subnet, NiDkgTargetSubnet::Local);
}
} else {
Expand Down
Loading
Loading