mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
11 lines
264 B
Rust
11 lines
264 B
Rust
use rustpython::{InterpreterBuilder, InterpreterBuilderExt};
|
|
|
|
pub fn main() -> std::process::ExitCode {
|
|
let mut config = InterpreterBuilder::new();
|
|
#[cfg(feature = "stdlib")]
|
|
{
|
|
config = config.init_stdlib();
|
|
}
|
|
rustpython::run(config)
|
|
}
|