[package]
edition = "2024"
rust-version = "1.93.0"
name = "rustpython-pylib"
version = "0.5.0"
authors = ["CPython Developers"]
build = "build.rs"
include = [
"Cargo.toml",
"build.rs",
"src/**/*.rs",
"Lib/",
"!Lib/**/test/",
"!Lib/**/*.pyc",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A subset of the Python standard library for use with RustPython"
readme = false
license-file = "Lib/PSF-LICENSE"
repository = "https://github.com/RustPython/RustPython"
resolver = "2"
[features]
freeze-stdlib = [
"dep:rustpython-compiler-core",
"dep:rustpython-derive",
]
[lib]
name = "rustpython_pylib"
path = "src/lib.rs"
[dependencies.rustpython-compiler-core]
version = "0.5.0"
optional = true
[dependencies.rustpython-derive]
version = "0.5.0"
optional = true
[build-dependencies.glob]
version = "0.3"
[lints.clippy]
alloc_instead_of_core = "warn"
complexity = "warn"
correctness = "warn"
perf = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
style = "warn"
suspicious = "warn"
[lints.rust]
elided_lifetimes_in_paths = "warn"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "deny"