From 8c7bfb3e1a6bd65d683efae1f8e8357e2f55d41b Mon Sep 17 00:00:00 2001 From: Noa Date: Mon, 6 Jan 2025 12:54:04 -0600 Subject: [PATCH] Fix redox --- .github/workflows/ci.yaml | 1 + common/src/lib.rs | 2 +- stdlib/src/lib.rs | 1 + vm/src/lib.rs | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f60bddabe..f45c1c0dc 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -229,6 +229,7 @@ jobs: uses: coolreader18/redoxer-action@v1 with: command: check + args: --ignore-rust-version snippets_cpython: if: ${{ !contains(github.event.pull_request.labels.*.name, 'skip:ci') }} diff --git a/common/src/lib.rs b/common/src/lib.rs index 25501e4f5..cf2286c1c 100644 --- a/common/src/lib.rs +++ b/common/src/lib.rs @@ -1,6 +1,6 @@ //! A crate to hold types and functions common to all rustpython components. -#![cfg_attr(target_os = "redox", feature(byte_slice_trim_ascii))] +#![cfg_attr(target_os = "redox", feature(byte_slice_trim_ascii, new_uninit))] #[macro_use] mod macros; diff --git a/stdlib/src/lib.rs b/stdlib/src/lib.rs index a910c5854..33eb114f0 100644 --- a/stdlib/src/lib.rs +++ b/stdlib/src/lib.rs @@ -1,6 +1,7 @@ // to allow `mod foo {}` in foo.rs; clippy thinks this is a mistake/misunderstanding of // how `mod` works, but we want this sometimes for pymodule declarations #![allow(clippy::module_inception)] +#![cfg_attr(target_os = "redox", feature(raw_ref_op))] #[macro_use] extern crate rustpython_derive; diff --git a/vm/src/lib.rs b/vm/src/lib.rs index cb2e77327..93adaa13f 100644 --- a/vm/src/lib.rs +++ b/vm/src/lib.rs @@ -13,6 +13,7 @@ #![allow(clippy::upper_case_acronyms)] #![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/main/logo.png")] #![doc(html_root_url = "https://docs.rs/rustpython-vm/")] +#![cfg_attr(target_os = "redox", feature(raw_ref_op))] #[cfg(feature = "flame-it")] #[macro_use]