monty-alloc 0.0.21

Global allocator enforcing a Monty worker's hard memory ceiling.
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-alloc"
version = "0.0.21"
authors = ["Samuel Colvin <samuel@pydantic.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Global allocator enforcing a Monty worker's hard memory ceiling."
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]
exit-code = []

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

[[test]]
name = "not_installed"
path = "tests/not_installed.rs"

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

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