Skip to content

Commit 9b5e8f0

Browse files
authored
Use rust edition 2024 (#133)
1 parent dd48880 commit 9b5e8f0

File tree

19 files changed

+147
-139
lines changed

19 files changed

+147
-139
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "ckb-std"
3-
version = "0.17.1"
3+
version = "0.17.2"
44
authors = ["Nervos network"]
5-
edition = "2021"
5+
edition = "2024"
66
license = "MIT"
77
repository = "https://github.com/nervosnetwork/ckb-std"
88
description = "This library contains serveral modules help you write CKB contract with Rust"

contracts/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contracts/ckb-std-tests/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ckb-std-tests"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

contracts/exec-callee/exec-callee-dbg/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "exec-callee-dbg"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77
[dependencies]

contracts/rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.81.0
1+
1.85.0

contracts/spawn-callee/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "spawn-callee"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

contracts/spawn-caller-by-code-hash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "spawn-caller-by-code-hash"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

contracts/spawn-caller/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "spawn-caller"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

contracts/spawn-caller/src/entry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub fn main() -> Result<(), Error> {
2222
let mut pid: u64 = 0;
2323
let mut spgs = syscalls::SpawnArgs {
2424
argc: argc,
25-
argv: argv.as_ptr(),
25+
argv: argv.as_ptr() as *const *const i8,
2626
process_id: &mut pid as *mut u64,
2727
inherited_fds: son_fds.as_ptr(),
2828
};

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.81.0
1+
1.85.0

0 commit comments

Comments
 (0)