[package]
edition = "2024"
rust-version = "1.93.0"
name = "rustpython-common"
version = "0.5.0"
authors = ["RustPython Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "General python functions and algorithms for use in RustPython"
readme = false
license = "MIT"
repository = "https://github.com/RustPython/RustPython"
resolver = "2"
[features]
default = ["std"]
std = []
threading = [
"parking_lot",
"std",
]
wasm_js = ["getrandom/wasm_js"]
[lib]
name = "rustpython_common"
path = "src/lib.rs"
[dependencies.ascii]
version = "1.1"
[dependencies.bitflags]
version = "2.11.0"
[dependencies.cfg-if]
version = "1.0"
[dependencies.getrandom]
version = "0.3"
features = ["std"]
[dependencies.itertools]
version = "0.14.0"
[dependencies.libc]
version = "0.2.183"
[dependencies.lock_api]
version = "0.4"
[dependencies.malachite-base]
version = "0.9.1"
[dependencies.malachite-bigint]
version = "0.9.1"
[dependencies.malachite-q]
version = "0.9.1"
[dependencies.num-complex]
version = "0.4.6"
[dependencies.num-traits]
version = "0.2"
[dependencies.parking_lot]
version = "0.12.3"
optional = true
[dependencies.radium]
version = "1.1.1"
[dependencies.rustpython-literal]
version = "0.5.0"
[dependencies.rustpython-wtf8]
version = "0.5.0"
[dependencies.siphasher]
version = "1"
[dependencies.unicode_names2]
version = "2.0.0"
[target."cfg(unix)".dependencies.nix]
version = "0.30"
features = [
"fs",
"user",
"process",
"term",
"time",
"signal",
"ioctl",
"socket",
"sched",
"zerocopy",
"dir",
"hostname",
"net",
"poll",
]
[target."cfg(windows)".dependencies.widestring]
version = "1.2.0"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
"Win32_Foundation",
"Win32_Networking_WinSock",
"Win32_Storage_FileSystem",
"Win32_System_Ioctl",
"Win32_System_LibraryLoader",
"Win32_System_SystemServices",
]
[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"