Skip to content
This repository was archived by the owner on Apr 24, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/post-commit-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
- pull_request

env:
NIGHTLY_VERSION: nightly-2025-08-10
NIGHTLY_VERSION: nightly-2025-08-30

defaults:
run:
Expand Down
25 changes: 9 additions & 16 deletions Cargo.lock

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

5 changes: 2 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
[package]
name = "libsys"
version = "0.3.4"
version = "0.3.5"
edition = "2024"

[dependencies]
num_enum = { version = "0.7", default-features = false }
spin = { version = "*", default-features = false, features = ["once"] }
thiserror = { version = "*", default-features = false }
thiserror = { version = "2.0", default-features = false }
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[toolchain]
channel = "nightly-2025-08-10"
channel = "nightly-2025-08-30"
components = ["rust-src", "rustfmt", "clippy"]
profile = "minimal"
7 changes: 1 addition & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
#![no_std]
#![feature(cfg_select, if_let_guard, pointer_is_aligned_to, step_trait)]
#![warn(clippy::pedantic, clippy::todo)]
#![allow(clippy::unusual_byte_groupings)]

// In the future, there may be a platform where the pointer width does not
// exactly match CPU's the register width. In that case, we may need to
// introduce special types like `uptr` or `ureg` to handle the differing
// sizes of the CPU-internal structures.

#[macro_use]
extern crate thiserror;

#[macro_use]
extern crate num_enum;

pub mod address;
pub mod constants;
pub mod math;
Expand Down
5 changes: 3 additions & 2 deletions src/syscall/klog.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use core::str::Utf8Error;

use crate::syscall::{Vector, syscall_2};
use core::str::Utf8Error;
use num_enum::{IntoPrimitive, TryFromPrimitive};
use thiserror::Error;

#[repr(usize)]
#[derive(Debug, Error, IntoPrimitive, TryFromPrimitive)]
Expand Down
2 changes: 2 additions & 0 deletions src/syscall/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
use num_enum::{IntoPrimitive, TryFromPrimitive};

pub mod klog;
pub mod task;

Expand Down
2 changes: 2 additions & 0 deletions src/syscall/task.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
use crate::syscall::{Vector, syscall_0};
use num_enum::{IntoPrimitive, TryFromPrimitive};
use thiserror::Error;

#[repr(usize)]
#[derive(Debug, Error, IntoPrimitive, TryFromPrimitive)]
Expand Down