File tree Expand file tree Collapse file tree 4 files changed +49
-0
lines changed Expand file tree Collapse file tree 4 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ fn main() {
37
37
|| target. contains ( "nintendo-3ds" )
38
38
|| target. contains ( "vita" )
39
39
|| target. contains ( "nto" )
40
+ || target. contains ( "xous" )
40
41
// See src/bootstrap/synthetic_targets.rs
41
42
|| env:: var ( "RUSTC_BOOTSTRAP_SYNTHETIC_TARGET" ) . is_ok ( )
42
43
{
Original file line number Diff line number Diff line change @@ -44,6 +44,9 @@ cfg_if::cfg_if! {
44
44
} else if #[ cfg( target_family = "wasm" ) ] {
45
45
mod wasm;
46
46
pub use self :: wasm:: * ;
47
+ } else if #[ cfg( target_os = "xous" ) ] {
48
+ mod xous;
49
+ pub use self :: xous:: * ;
47
50
} else if #[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ] {
48
51
mod sgx;
49
52
pub use self :: sgx:: * ;
Original file line number Diff line number Diff line change
1
+ #![ deny( unsafe_op_in_unsafe_fn) ]
2
+
3
+ #[ path = "../unsupported/alloc.rs" ]
4
+ pub mod alloc;
5
+ #[ path = "../unsupported/args.rs" ]
6
+ pub mod args;
7
+ #[ path = "../unix/cmath.rs" ]
8
+ pub mod cmath;
9
+ #[ path = "../unsupported/env.rs" ]
10
+ pub mod env;
11
+ #[ path = "../unsupported/fs.rs" ]
12
+ pub mod fs;
13
+ #[ path = "../unsupported/io.rs" ]
14
+ pub mod io;
15
+ #[ path = "../unsupported/locks/mod.rs" ]
16
+ pub mod locks;
17
+ #[ path = "../unsupported/net.rs" ]
18
+ pub mod net;
19
+ #[ path = "../unsupported/once.rs" ]
20
+ pub mod once;
21
+ #[ path = "../unsupported/os.rs" ]
22
+ pub mod os;
23
+ #[ path = "../unix/os_str.rs" ]
24
+ pub mod os_str;
25
+ #[ path = "../unix/path.rs" ]
26
+ pub mod path;
27
+ #[ path = "../unsupported/pipe.rs" ]
28
+ pub mod pipe;
29
+ #[ path = "../unsupported/process.rs" ]
30
+ pub mod process;
31
+ #[ path = "../unsupported/stdio.rs" ]
32
+ pub mod stdio;
33
+ #[ path = "../unsupported/thread.rs" ]
34
+ pub mod thread;
35
+ #[ path = "../unsupported/thread_local_key.rs" ]
36
+ pub mod thread_local_key;
37
+ #[ path = "../unsupported/thread_parking.rs" ]
38
+ pub mod thread_parking;
39
+ #[ path = "../unsupported/time.rs" ]
40
+ pub mod time;
41
+
42
+ #[ path = "../unsupported/common.rs" ]
43
+ mod common;
44
+ pub use common:: * ;
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ cfg_if::cfg_if! {
46
46
if #[ cfg( any( target_os = "l4re" ,
47
47
feature = "restricted-std" ,
48
48
all( target_family = "wasm" , not( target_os = "emscripten" ) ) ,
49
+ target_os = "xous" ,
49
50
all( target_vendor = "fortanix" , target_env = "sgx" ) ) ) ] {
50
51
pub use crate :: sys:: net;
51
52
} else {
You can’t perform that action at this time.
0 commit comments