monty-types 0.0.21

A sandboxed, snapshotable Python interpreter written in Rust.
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"
name = "monty-types"
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]
test-hooks = []

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

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.monty-macros]
version = "0.0.21"

[dependencies.num-bigint]
version = "0.4"
features = ["serde"]

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

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.strum]
version = "0.27"
features = ["derive"]

[dependencies.unicode-general-category]
version = "1"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dependencies.web-time]
version = "1.1"

[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"