mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-09 22:49:57 +09:00
This includes everything needed to call str.format with integers as positional and keyword parameters.
47 lines
929 B
Rust
47 lines
929 B
Rust
//! This crate contains most python logic.
|
|
//!
|
|
//! - Compilation
|
|
//! - Bytecode
|
|
//! - Import mechanics
|
|
//! - Base objects
|
|
|
|
#[macro_use]
|
|
extern crate bitflags;
|
|
#[macro_use]
|
|
extern crate log;
|
|
// extern crate env_logger;
|
|
extern crate num_bigint;
|
|
extern crate num_complex;
|
|
extern crate num_traits;
|
|
extern crate serde;
|
|
extern crate serde_json;
|
|
extern crate statrs;
|
|
|
|
extern crate rustpython_parser;
|
|
|
|
//extern crate eval; use eval::eval::*;
|
|
// use py_code_object::{Function, NativeType, PyCodeObject};
|
|
|
|
// This is above everything else so that the defined macros are available everywhere
|
|
#[macro_use]
|
|
mod macros;
|
|
|
|
mod builtins;
|
|
pub mod bytecode;
|
|
pub mod compile;
|
|
pub mod eval;
|
|
mod exceptions;
|
|
pub mod format;
|
|
mod frame;
|
|
pub mod import;
|
|
pub mod obj;
|
|
pub mod pyobject;
|
|
pub mod stdlib;
|
|
mod sysmodule;
|
|
mod traceback;
|
|
mod vm;
|
|
|
|
// pub use self::pyobject::Executor;
|
|
pub use self::exceptions::print_exception;
|
|
pub use self::vm::VirtualMachine;
|