From f232b62b2386134634b9a811fca5533dde3525c2 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 4 Feb 2022 12:48:02 +0100 Subject: [PATCH] v0.2.6 --- CHANGELOG.md | 17 ++++++++++++++++- Cargo.toml | 2 +- README.md | 10 ++++++++++ src/lib.rs | 10 ++++++++++ 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b55445c..9db5b36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,19 @@ This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +## [v0.2.6] - 2022-02-04 + +### Changed + +- architectures aarch64, riscv64 and x86_64 now use the stable `asm!` macro. this crate will work on + stable Rust 1.59+ when compiled to those architectures + +## [v0.2.5] - 2021-08-14 + +### Added + +- Added support for Android + ## [v0.2.4] - 2021-05-15 ### Added @@ -100,7 +113,9 @@ Initial release. Forked from [syscall] v0.2.1. - Support for x86_64 FreeBSD -[Unreleased]: https://github.com/japaric/syscall.rs/compare/v0.2.4...HEAD +[Unreleased]: https://github.com/japaric/syscall.rs/compare/v0.2.6...HEAD +[v0.2.6]: https://github.com/japaric/syscall.rs/compare/v0.2.5...v0.2.6 +[v0.2.5]: https://github.com/japaric/syscall.rs/compare/v0.2.4...v0.2.5 [v0.2.4]: https://github.com/japaric/syscall.rs/compare/v0.2.3...v0.2.4 [v0.2.3]: https://github.com/japaric/syscall.rs/compare/v0.2.2...v0.2.3 [v0.2.2]: https://github.com/japaric/syscall.rs/compare/v0.2.1...v0.2.2 diff --git a/Cargo.toml b/Cargo.toml index 6d1078f..e1a8275 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,4 +7,4 @@ license = "MIT OR Apache-2.0" name = "sc" readme = "README.md" repository = "https://github.com/japaric/syscall.rs" -version = "0.2.4" +version = "0.2.6" diff --git a/README.md b/README.md index 89adf96..42d4065 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,16 @@ This library allows Rust code to invoke system calls directly. +⚠️ NOTE: Only these architectures have been ported to the stable (as of 1.59) `asm!` macro + +- aarch64 +- riscv64 +- x86_64 + +All the other architectures use the deprecated `llvm_asm!` macro which has already been removed. +To use this crate with those architectures you'll need to use an older nightly like +`nightly-2022-01-14` + See the [list of supported platforms](https://github.com/japaric/syscall.rs/tree/master/src/platform). Additions are very welcome! We do not intend to provide wrapper functions like `read(2)` etc. because there are many subtly different ways to define them in Rust. diff --git a/src/lib.rs b/src/lib.rs index a30fe48..2c5aac4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -8,6 +8,16 @@ // except according to those terms. //! Raw system calls for Rust. +//! +//! NOTE: Only these architectures have been ported to the stable (as of 1.59) `asm!` macro +//! +//! - aarch64 +//! - riscv64 +//! - x86_64 +//! +//! All the other architectures use the deprecated `llvm_asm!` macro which has already been removed. +//! To use this crate with those architectures you'll need to use an older nightly like +//! `nightly-2022-01-14` // Reference http://man7.org/linux/man-pages/man2/syscall.2.html