Skip to main content

rustpython_common/
lib.rs

1//! A crate to hold types and functions common to all rustpython components.
2
3#![cfg_attr(not(feature = "std"), no_std)]
4
5extern crate alloc;
6
7#[macro_use]
8mod macros;
9pub use macros::*;
10
11pub mod atomic;
12pub mod borrow;
13pub mod boxvec;
14pub mod cformat;
15#[cfg(all(feature = "std", any(unix, windows, target_os = "wasi")))]
16pub mod crt_fd;
17pub mod encodings;
18#[cfg(all(feature = "std", any(not(target_arch = "wasm32"), target_os = "wasi")))]
19pub mod fileutils;
20pub mod float_ops;
21pub mod format;
22pub mod hash;
23pub mod int;
24pub mod linked_list;
25pub mod lock;
26#[cfg(feature = "std")]
27pub mod os;
28pub mod rand;
29pub mod rc;
30pub mod refcount;
31pub mod static_cell;
32pub mod str;
33#[cfg(all(feature = "std", windows))]
34pub mod windows;
35
36pub use rustpython_wtf8 as wtf8;
37
38pub mod vendored {
39    pub use ascii;
40}