Skip to content

Commit

Permalink
update to edition 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
aarkegz committed Dec 5, 2024
1 parent 82d9a05 commit 23eb4a3
Show file tree
Hide file tree
Showing 33 changed files with 48 additions and 47 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
rust-toolchain: [nightly, nightly-2024-05-02]
rust-toolchain: [nightly, nightly-2024-12-05]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
steps:
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
matrix:
os: [ubuntu-latest]
arch: [x86_64, riscv64, aarch64]
rust-toolchain: [nightly, nightly-2024-05-02]
rust-toolchain: [nightly, nightly-2024-12-05]
env:
RUSTUP_TOOLCHAIN: ${{ matrix.rust-toolchain }}
steps:
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
rust-toolchain: [nightly, nightly-2024-05-02]
rust-toolchain: [nightly, nightly-2024-12-05]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build & Deploy docs
on: [push, pull_request]

env:
rust-toolchain: nightly-2024-05-02
rust-toolchain: nightly-2024-12-05

jobs:
doc:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

env:
qemu-version: 8.2.0
rust-toolchain: nightly-2024-05-02
rust-toolchain: nightly-2024-12-05
arceos-apps: 'da1caa5'

jobs:
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ members = [

[workspace.package]
version = "0.1.0"
edition = "2021"
authors = ["Yuekai Jia <[email protected]>"]
license = "GPL-3.0-or-later OR Apache-2.0 OR MulanPSL-2.0"
homepage = "https://github.com/arceos-org/arceos"
Expand Down
2 changes: 1 addition & 1 deletion api/arceos_api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arceos_api"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "Public APIs and types for ArceOS modules"
license.workspace = true
Expand Down
4 changes: 2 additions & 2 deletions api/arceos_posix_api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arceos_posix_api"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = [
"Yuekai Jia <[email protected]>",
"yanjuguang <[email protected]>",
Expand Down Expand Up @@ -46,7 +46,7 @@ axnet = { workspace = true, optional = true }
# Other crates
axio = "0.1"
axerrno = "0.1"
flatten_objects = "0.1"
flatten_objects = "0.2"
static_assertions = "1.1.0"
spin = { version = "0.9" }
lazy_static = { version = "1.5", features = ["spin_no_std"] }
Expand Down
2 changes: 1 addition & 1 deletion api/axfeat/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axfeat"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "Top-level feature selection for ArceOS"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arceos-helloworld"
version = "0.1.0"
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/httpclient/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arceos-httpclient"
version = "0.1.0"
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>", "Dashuai Wu <[email protected]>"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/httpserver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arceos-httpserver"
version = "0.1.0"
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion examples/shell/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "arceos-shell"
version = "0.1.0"
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion modules/axalloc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axalloc"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "ArceOS global memory allocator"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axconfig/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axconfig"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "Platform-specific constants and parameters for ArceOS"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axdisplay/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axdisplay"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Shiping Yuan <[email protected]>"]
description = "ArceOS graphics module"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axdma/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "axdma"
edition = "2021"
edition.workspace = true
version.workspace = true
authors = ["Zhour Rui <[email protected]>"]
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axdriver/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axdriver"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>", "ChengXiang Qi <[email protected]>"]
description = "ArceOS device drivers"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axfs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axfs"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "ArceOS filesystem module"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axhal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axhal"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "ArceOS hardware abstraction layer, provides unified APIs for platform-specific operations"
license.workspace = true
Expand Down
6 changes: 3 additions & 3 deletions modules/axhal/src/arch/x86_64/context.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use core::{arch::asm, fmt};
use core::{arch::naked_asm, fmt};
use memory_addr::VirtAddr;

/// Saved registers when a trap (interrupt or exception) occurs.
Expand Down Expand Up @@ -198,7 +198,7 @@ impl TaskContext {

#[naked]
unsafe extern "C" fn context_switch(_current_stack: &mut u64, _next_stack: &u64) {
asm!(
naked_asm!(
"
push rbp
push rbx
Expand All @@ -216,6 +216,6 @@ unsafe extern "C" fn context_switch(_current_stack: &mut u64, _next_stack: &u64)
pop rbx
pop rbp
ret",
options(noreturn),
// options(noreturn),
)
}
2 changes: 1 addition & 1 deletion modules/axlog/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axlog"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "Macros for multi-level formatted logging used by ArceOS"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axmm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axmm"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "ArceOS virtual memory management module"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axnet/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axnet"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>", "ChengXiang Qi <[email protected]>"]
description = "ArceOS network module"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axruntime/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axruntime"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "Runtime library of ArceOS"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axsync/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axsync"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "ArceOS synchronization primitives"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion modules/axtask/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axtask"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = ["Yuekai Jia <[email protected]>"]
description = "ArceOS task management module"
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[toolchain]
profile = "minimal"
channel = "nightly-2024-05-02"
channel = "nightly-2024-12-05"
components = ["rust-src", "llvm-tools", "rustfmt", "clippy"]
targets = ["x86_64-unknown-none", "riscv64gc-unknown-none-elf", "aarch64-unknown-none", "aarch64-unknown-none-softfloat"]
2 changes: 1 addition & 1 deletion tools/bwbench_client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "bwbench-client"
version = "0.1.0"
edition = "2021"
edition.workspace = true
authors = ["ChengXiang Qi <[email protected]>"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion tools/deptool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "deptool"
version = "0.1.0"
edition = "2021"
edition.workspace = true

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

Expand Down
2 changes: 1 addition & 1 deletion tools/raspi4/chainloader/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "mingo"
version = "0.6.0"
authors = ["Andre Richter <[email protected]>"]
edition = "2021"
edition.workspace = true

[profile.release]
lto = true
Expand Down
2 changes: 1 addition & 1 deletion tools/raspi4/chainloader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ diff -uNr 05_drivers_gpio_uart/Cargo.toml 06_uart_chainloader/Cargo.toml
-version = "0.5.0"
+version = "0.6.0"
authors = ["Andre Richter <[email protected]>"]
edition = "2021"
edition.workspace = true

Binary files 05_drivers_gpio_uart/demo_payload_rpi3.img and 06_uart_chainloader/demo_payload_rpi3.img differ
Binary files 05_drivers_gpio_uart/demo_payload_rpi4.img and 06_uart_chainloader/demo_payload_rpi4.img differ
Expand Down
2 changes: 1 addition & 1 deletion ulib/axlibc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "axlibc"
version.workspace = true
edition = "2021"
edition.workspace = true
authors = [
"Yuekai Jia <[email protected]>",
"yanjuguang <[email protected]>",
Expand Down
Loading

0 comments on commit 23eb4a3

Please sign in to comment.