Merge pull request #5720 from youknowone/wasip2-build

basic wasip2 support
This commit is contained in:
Noa authored and GitHub committed 2025-04-21 13:39:41 -05:00
commit 3bfafb0ecb
4 files changed
+7

No files matched your search

+2
View File
@@ -74,6 +74,8 @@ unic
unistd
unraw
unsync
wasip1
wasip2
wasmbind
wasmtime
widestring
+1
View File
@@ -1,5 +1,6 @@
//! A crate to hold types and functions common to all rustpython components.
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
#![cfg_attr(target_os = "redox", feature(byte_slice_trim_ascii, new_uninit))]
#[macro_use]
+2
View File
@@ -35,6 +35,8 @@
//!
//! The binary will have all the standard arguments of a python interpreter (including a REPL!) but
//! it will have your modules loaded into the vm.
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
#![allow(clippy::needless_doctest_main)]
#[macro_use]
+2
View File
@@ -1,6 +1,8 @@
// 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(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
#![cfg_attr(target_os = "redox", feature(raw_ref_op))]
#[macro_use]