Skip to main content

rustpython_host_env/
lib.rs

1#![allow(clippy::must_use_candidate)]
2
3extern crate alloc;
4
5#[macro_use]
6mod macros;
7pub use macros::*;
8
9#[cfg(feature = "ctypes")]
10pub mod ctypes;
11#[cfg(any(unix, windows, target_os = "wasi"))]
12pub mod errno;
13#[cfg(all(target_arch = "wasm32", target_os = "unknown"))]
14#[path = "errno_wasm.rs"]
15pub mod errno;
16#[cfg(any(unix, windows, target_os = "wasi"))]
17pub mod io;
18#[cfg(all(target_arch = "wasm32", not(target_os = "wasi")))]
19#[path = "io_unsupported.rs"]
20pub mod io;
21pub mod os;
22#[cfg(any(unix, windows))]
23pub mod thread;
24
25#[cfg(any(unix, windows, target_os = "wasi"))]
26pub mod crt_fd;
27#[cfg(all(target_arch = "wasm32", not(target_os = "wasi")))]
28#[path = "crt_fd_unsupported.rs"]
29pub mod crt_fd;
30
31#[cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))]
32pub mod fileutils;
33pub mod fs;
34#[cfg(any(unix, windows))]
35pub mod locale;
36#[cfg(feature = "native-certs")]
37pub mod native_certs;
38pub mod readline;
39#[cfg(feature = "ssl")]
40pub mod ssl;
41
42#[cfg(windows)]
43pub mod windows;
44
45#[cfg(any(unix, target_os = "wasi"))]
46pub mod fcntl;
47#[cfg(any(unix, windows, target_os = "wasi"))]
48pub mod select;
49#[cfg(any(unix, windows))]
50pub mod socket;
51#[cfg(any(all(target_arch = "wasm32", target_os = "unknown"), target_os = "wasi"))]
52#[path = "socket_wasm.rs"]
53pub mod socket;
54#[cfg(unix)]
55pub mod syslog;
56#[cfg(all(unix, not(target_os = "redox"), not(target_os = "ios")))]
57pub mod termios;
58
59#[cfg(unix)]
60pub mod grp;
61#[cfg(unix)]
62pub mod posix;
63#[cfg(target_os = "wasi")]
64#[path = "posix_wasi.rs"]
65pub mod posix;
66#[cfg(windows)]
67#[path = "posix_windows.rs"]
68pub mod posix;
69#[cfg(any(unix, target_os = "wasi"))]
70pub mod posix_unix_like;
71#[cfg(unix)]
72pub mod pwd;
73#[cfg(unix)]
74pub mod resource;
75#[cfg(all(unix, not(target_os = "redox"), not(target_os = "android")))]
76pub mod shm;
77#[cfg(any(unix, windows))]
78pub mod signal;
79pub mod time;
80
81#[cfg(windows)]
82pub mod cert_store;
83#[cfg(target_os = "macos")]
84pub mod system_configuration {
85    pub use ::system_configuration::*;
86}
87#[cfg(any(unix, windows))]
88pub mod faulthandler;
89#[cfg(any(unix, windows))]
90pub mod mmap;
91#[cfg(windows)]
92pub mod msvcrt;
93#[cfg(any(unix, windows))]
94pub mod multiprocessing;
95#[cfg(windows)]
96pub mod nt;
97#[cfg(windows)]
98pub mod overlapped;
99#[cfg(windows)]
100pub mod testconsole;
101#[cfg(windows)]
102pub mod uuid;
103#[cfg(windows)]
104pub mod winapi;
105#[cfg(windows)]
106pub mod winreg;
107#[cfg(windows)]
108pub mod winsound;
109#[cfg(windows)]
110pub mod wmi;