[package]
edition = "2024"
rust-version = "1.95"
name = "monty-runtime"
version = "0.0.21"
authors = ["Samuel Colvin <samuel@pydantic.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A sandboxed, snapshotable Python interpreter written in Rust."
homepage = "https://github.com/pydantic/monty/"
readme = "README.md"
keywords = [
"python",
"interpreter",
"sandbox",
"embedded",
]
categories = [
"compilers",
"emulators",
"development-tools",
]
license = "MIT"
repository = "https://github.com/pydantic/monty/"
resolver = "2"
[features]
default = ["standalone"]
standalone = [
"dep:anstream",
"dep:anstyle",
"dep:rustyline",
]
telemetry = [
"standalone",
"dep:logfire",
"dep:tracing",
]
[[bin]]
name = "monty"
path = "src/main.rs"
[[test]]
name = "mounts"
path = "tests/mounts.rs"
[[test]]
name = "subprocess"
path = "tests/subprocess.rs"
[dependencies.anstream]
version = "0.6"
optional = true
[dependencies.anstyle]
version = "1"
optional = true
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.logfire]
version = "0.12"
features = ["export-http-protobuf"]
optional = true
default-features = false
[dependencies.monty]
version = "0.0.21"
[dependencies.monty-alloc]
version = "0.0.21"
features = ["exit-code"]
[dependencies.monty-fs]
version = "0.0.21"
[dependencies.monty-proto]
version = "0.0.21"
features = ["worker"]
[dependencies.monty-type-checking]
version = "0.0.21"
[dependencies.monty-types]
version = "0.0.21"
[dependencies.rustyline]
version = "15"
optional = true
[dependencies.tracing]
version = "0.1"
optional = true
[dev-dependencies.tempfile]
version = "3"
[lints.clippy]
absolute_paths = "warn"
allow_attributes = "warn"
cast_precision_loss = "allow"
dbg_macro = "warn"
doc_markdown = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
redundant_clone = "warn"
similar_names = "allow"
too_many_lines = "allow"
undocumented_unsafe_blocks = "warn"
use_self = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(codspeed)",
"cfg(heap_reader_compile_fail_tests)",
"cfg(heap_reader_compile_fail_test_read_while_ref_alive)",
"cfg(heap_reader_compile_fail_test_dec_ref_while_reading)",
"cfg(heap_reader_compile_fail_test_smuggle_heap_read)",
"cfg(heap_reader_compile_fail_test_double_get_mut)",
"cfg(heap_reader_compile_fail_test_heap_mutation_while_reading)",
"cfg(heap_reader_compile_fail_test_mutation_in_map_closure)",
"cfg(heap_reader_compile_fail_test_smuggle_vm)",
"cfg(heap_reader_compile_fail_test_smuggle_and_swap_reader)",
]
[lints.rustdoc]
invalid_codeblock_attributes = "allow"