rustpython-vm 0.6.0

RustPython virtual machine.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.95.0"
name = "rustpython-vm"
version = "0.6.0"
authors = ["RustPython Team"]
build = "build.rs"
include = [
    "src/**/*.rs",
    "Cargo.toml",
    "build.rs",
    "Lib/**/*.py",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "RustPython virtual machine."
readme = false
license = "MIT"
repository = "https://github.com/RustPython/RustPython"
resolver = "2"

[features]
ast = [
    "ruff_python_ast",
    "ruff_text_size",
]
codegen = [
    "rustpython-codegen",
    "ast",
]
compiler = [
    "parser",
    "codegen",
    "rustpython-compiler",
]
default = [
    "compiler",
    "wasmbind",
    "gc",
    "host_env",
    "stdio",
    "doc",
]
doc = [
    "dep:rustpython-doc",
    "dep:xz",
]
encodings = ["importlib"]
flame-it = [
    "flame",
    "flamer",
]
freeze-stdlib = ["encodings"]
gc = []
host_env = ["rustpython-host_env/ctypes"]
importlib = []
jit = ["rustpython-jit"]
opcode-histogram = []
parser = ["ast"]
serde = ["dep:serde"]
stdio = []
threading = ["rustpython-common/threading"]
vm-tracing-logging = []
wasmbind = [
    "rustpython-common/wasm_js",
    "jiff/js",
    "wasm-bindgen",
]

[lib]
name = "rustpython_vm"
path = "src/lib.rs"

[dependencies.ascii]
version = "1.1"
default-features = false

[dependencies.bitflags]
version = "2.11.0"

[dependencies.bitflagset]
version = "0.0.4"

[dependencies.bstr]
version = "1"
features = ["unicode"]
default-features = false

[dependencies.constant_time_eq]
version = "0.6"

[dependencies.crossbeam-utils]
version = "0.8.21"

[dependencies.flame]
version = "0.2.2"
optional = true

[dependencies.flamer]
version = "0.5"
optional = true

[dependencies.half]
version = "2"

[dependencies.hex]
version = "0.4.3"

[dependencies.indexmap]
version = "2.14.0"
features = ["std"]

[dependencies.is-macro]
version = "0.3.7"

[dependencies.itertools]
version = "0.15.0"
features = ["use_alloc"]
default-features = false

[dependencies.itoa]
version = "1"

[dependencies.jiff]
version = "0.2"

[dependencies.libc]
version = "0.2.186"

[dependencies.log]
version = "0.4.30"

[dependencies.malachite-bigint]
version = "0.12.0"

[dependencies.memchr]
version = "2.8.1"
features = ["alloc"]
default-features = false

[dependencies.num-complex]
version = "0.4.6"

[dependencies.num-integer]
version = "0.1.46"

[dependencies.num-traits]
version = "0.2"

[dependencies.num_enum]
version = "0.7"
default-features = false

[dependencies.optional]
version = "0.5"

[dependencies.parking_lot]
version = "0.12.3"

[dependencies.paste]
version = "1.0.15"

[dependencies.psm]
version = "0.1"

[dependencies.rapidhash]
version = "4.4.1"

[dependencies.result-like]
version = "0.5.0"

[dependencies.ruff_python_ast]
version = "0.16.5"
optional = true
package = "rustpython-ruff_python_ast"

[dependencies.ruff_python_parser]
version = "0.16.5"
package = "rustpython-ruff_python_parser"

[dependencies.ruff_text_size]
version = "0.16.5"
optional = true
package = "rustpython-ruff_text_size"

[dependencies.rustpython-codegen]
version = "0.6.0"
optional = true

[dependencies.rustpython-common]
version = "0.6.0"

[dependencies.rustpython-compiler]
version = "0.6.0"
optional = true

[dependencies.rustpython-compiler-core]
version = "0.6.0"

[dependencies.rustpython-derive]
version = "0.6.0"

[dependencies.rustpython-doc]
version = "0.6.0"
optional = true

[dependencies.rustpython-host_env]
version = "0.6.0"

[dependencies.rustpython-jit]
version = "0.6.0"
optional = true

[dependencies.rustpython-literal]
version = "0.6.0"

[dependencies.rustpython-sre_engine]
version = "0.6.0"

[dependencies.rustpython-unicode]
version = "0.6.0"

[dependencies.scopeguard]
version = "1"

[dependencies.serde]
version = "1.0.225"
features = ["alloc"]
optional = true
default-features = false
package = "serde_core"

[dependencies.static_assertions]
version = "1.1"

[dependencies.strum]
version = "0.28"

[dependencies.strum_macros]
version = "0.28"

[dependencies.thin-vec]
version = "0.2.14"

[dependencies.thiserror]
version = "2.0"

[dependencies.xz]
version = "0.4.6-rc.0"
optional = true

[build-dependencies.glob]
version = "0.3"

[build-dependencies.jiff]
version = "0.2"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.wasm-bindgen]
version = "0.2.106"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.widestring]
version = "1.2.0"

[lints.clippy]
alloc_instead_of_core = "warn"
assigning_clones = "warn"
bool_to_int_with_if = "warn"
cfg_not_test = "warn"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
collapsible_else_if = "warn"
collection_is_never_read = "warn"
comparison_chain = "warn"
copy_iterator = "warn"
debug_assert_with_mut_call = "warn"
derive_partial_eq_without_eq = "warn"
doc_link_with_quotes = "warn"
duration_suboptimal_units = "warn"
elidable_lifetime_names = "warn"
enum_glob_use = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
format_collect = "warn"
if_not_else = "allow"
imprecise_flops = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
ip_constant = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_over_hash_type = "warn"
large_futures = "warn"
large_types_passed_by_value = "warn"
literal_string_with_formatting_args = "warn"
manual_assert = "warn"
manual_instant_elapsed = "warn"
manual_is_variant_and = "warn"
map_unwrap_or = "warn"
match_bool = "warn"
match_same_arms = "allow"
mismatching_type_param_order = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "warn"
mut_mut = "warn"
needless_bitwise_bool = "warn"
needless_collect = "warn"
needless_for_each = "warn"
non_std_lazy_statics = "warn"
option_as_ref_cloned = "warn"
or_fun_call = "warn"
ptr_offset_by_literal = "warn"
range_minus_one = "warn"
range_plus_one = "warn"
redundant_clone = "warn"
redundant_else = "warn"
redundant_test_prefix = "warn"
ref_option = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
search_is_some = "warn"
significant_drop_in_scrutinee = "warn"
similar_names = "allow"
single_char_pattern = "warn"
single_match_else = "allow"
single_option_map = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
tests_outside_test_module = "warn"
trait_duplication_in_bounds = "warn"
trivially_copy_pass_by_ref = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unchecked_time_subtraction = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_join = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
while_float = "warn"

[lints.clippy.complexity]
level = "warn"
priority = -2

[lints.clippy.correctness]
level = "warn"
priority = -2

[lints.clippy.perf]
level = "warn"
priority = -2

[lints.clippy.style]
level = "warn"
priority = -2

[lints.clippy.suspicious]
level = "warn"
priority = -2

[lints.rust]
elided_lifetimes_in_paths = "warn"
unreachable_pub = "warn"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "deny"