1#![allow(clippy::module_inception)]
11#![allow(clippy::upper_case_acronyms)]
14#![doc(html_logo_url = "https://raw.githubusercontent.com/RustPython/RustPython/main/logo.png")]
15#![doc(html_root_url = "https://docs.rs/rustpython-vm/")]
16
17#[cfg(feature = "flame-it")]
18#[macro_use]
19extern crate flamer;
20
21#[macro_use]
22extern crate bitflags;
23#[macro_use]
24extern crate log;
25#[macro_use]
28extern crate rustpython_derive;
29
30extern crate self as rustpython_vm;
31
32pub use rustpython_derive::*;
33
34#[macro_use]
39pub(crate) mod macros;
40
41mod anystr;
42pub mod buffer;
43pub mod builtins;
44pub mod byte;
45mod bytesinner;
46pub mod cformat;
47pub mod class;
48mod codecs;
49pub mod compiler;
50pub mod convert;
51mod coroutine;
52mod dictdatatype;
53#[cfg(feature = "rustpython-compiler")]
54pub mod eval;
55pub mod exceptions;
56pub mod format;
57pub mod frame;
58pub mod function;
59pub mod import;
60mod intern;
61pub mod iter;
62pub mod object;
63#[cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))]
64pub mod ospath;
65pub mod prelude;
66pub mod protocol;
67pub mod py_io;
68#[cfg(feature = "serde")]
69pub mod py_serde;
70pub mod readline;
71pub mod recursion;
72pub mod scope;
73pub mod sequence;
74pub mod signal;
75pub mod sliceable;
76pub mod stdlib;
77pub mod suggestion;
78pub mod types;
79pub mod utils;
80pub mod version;
81pub mod vm;
82pub mod warn;
83#[cfg(windows)]
84pub mod windows;
85
86pub use self::compiler::parser::source_code;
87pub use self::convert::{TryFromBorrowedObject, TryFromObject};
88pub use self::object::{
89 AsObject, Py, PyAtomicRef, PyExact, PyObject, PyObjectRef, PyPayload, PyRef, PyRefExact,
90 PyResult, PyWeakRef,
91};
92pub use self::vm::{Context, Interpreter, Settings, VirtualMachine};
93
94pub use rustpython_common as common;
95pub use rustpython_compiler_core::{bytecode, frozen};
96pub use rustpython_literal as literal;
97
98#[doc(hidden)]
99pub mod __exports {
100 pub use paste;
101}