mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
basic wasip2 support
This commit is contained in:
1 parent
974c54ede2
commit
e434ff5f6e
4 files changed
+7
No files matched your search
@@ -74,6 +74,8 @@ unic
|
||||
unistd
|
||||
unraw
|
||||
unsync
|
||||
wasip1
|
||||
wasip2
|
||||
wasmbind
|
||||
wasmtime
|
||||
widestring
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user