mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
148 lines
5.2 KiB
TOML
148 lines
5.2 KiB
TOML
[package]
|
|
name = "rustpython-stdlib"
|
|
description = "RustPython standard libraries in Rust."
|
|
version.workspace = true
|
|
authors.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
repository.workspace = true
|
|
license.workspace = true
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[features]
|
|
default = ["compiler", "host_env"]
|
|
host_env = ["rustpython-vm/host_env"]
|
|
compiler = ["rustpython-vm/compiler"]
|
|
threading = ["rustpython-common/threading", "rustpython-vm/threading"]
|
|
sqlite = ["dep:libsqlite3-sys"]
|
|
# SSL backends
|
|
ssl = ["host_env"]
|
|
ssl-rustls = ["__ssl-rustls", "rustls/custom-provider"]
|
|
ssl-openssl = ["ssl", "openssl", "openssl-sys", "foreign-types-shared", "openssl-probe"]
|
|
ssl-openssl-vendor = ["ssl-openssl", "openssl/vendored"]
|
|
tkinter = ["dep:tk-sys", "dep:tcl-sys", "dep:widestring"]
|
|
flame-it = ["flame"]
|
|
|
|
__ssl-rustls = ["ssl", "rustls", "rustls-native-certs", "rustls-pemfile", "rustls-platform-verifier", "x509-cert", "x509-parser", "der", "pem-rfc7468", "webpki-roots", "oid-registry", "pkcs8"]
|
|
|
|
[dependencies]
|
|
# rustpython crates
|
|
rustpython-derive = { workspace = true }
|
|
rustpython-vm = { workspace = true, default-features = false, features = ["compiler"]}
|
|
rustpython-common = { workspace = true }
|
|
rustpython-host_env = { workspace = true }
|
|
|
|
ruff_python_parser = { workspace = true }
|
|
ruff_python_ast = { workspace = true }
|
|
ruff_text_size = { workspace = true }
|
|
ruff_source_file = { workspace = true }
|
|
|
|
ascii = { workspace = true }
|
|
crossbeam-utils = { workspace = true }
|
|
flame = { workspace = true, optional = true }
|
|
hex = { workspace = true }
|
|
itertools = { workspace = true }
|
|
indexmap = { workspace = true }
|
|
libc = { workspace = true }
|
|
num-complex = { workspace = true }
|
|
malachite-bigint = { workspace = true }
|
|
num-traits = { workspace = true }
|
|
num_enum = { workspace = true }
|
|
parking_lot = { workspace = true }
|
|
phf = { workspace = true, default-features = true, features = ["macros"] }
|
|
rapidhash = { workspace = true }
|
|
|
|
memchr = { workspace = true }
|
|
base64 = { workspace = true }
|
|
csv-core = { workspace = true }
|
|
dyn-clone = { workspace = true }
|
|
pymath = { workspace = true }
|
|
xml = { workspace = true }
|
|
|
|
# random
|
|
rand_core = { workspace = true }
|
|
mt19937 = { workspace = true }
|
|
|
|
# Crypto:
|
|
digest = { workspace = true }
|
|
md-5 = { workspace = true }
|
|
sha-1 = { workspace = true }
|
|
sha2 = { workspace = true }
|
|
sha3 = { workspace = true }
|
|
blake2 = { workspace = true }
|
|
hmac = { workspace = true }
|
|
pbkdf2 = { workspace = true, features = ["hmac"] }
|
|
constant_time_eq = { workspace = true }
|
|
|
|
## unicode stuff
|
|
unicode_names2 = { workspace = true }
|
|
# update version all at the same time
|
|
icu_properties = { workspace = true }
|
|
icu_normalizer = { workspace = true }
|
|
unic-ucd-age = { workspace = true }
|
|
ucd = { workspace = true }
|
|
|
|
# compression
|
|
adler32 = { workspace = true }
|
|
crc32fast = { workspace = true }
|
|
flate2 = { workspace = true, features = ["zlib-rs"] }
|
|
libz-rs-sys = { workspace = true }
|
|
bzip2 = { workspace = true }
|
|
|
|
# tkinter
|
|
tk-sys = { workspace = true, optional = true }
|
|
tcl-sys = { workspace = true, optional = true }
|
|
widestring = { workspace = true, optional = true }
|
|
chrono.workspace = true
|
|
|
|
# uuid
|
|
[target.'cfg(not(any(target_os = "ios", target_os = "android", target_os = "windows", target_arch = "wasm32", target_os = "redox")))'.dependencies]
|
|
mac_address = { workspace = true }
|
|
uuid = { workspace = true, features = ["v1"] }
|
|
|
|
# mmap + socket dependencies
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
gethostname = { workspace = true }
|
|
socket2 = { workspace = true, features = ["all"] }
|
|
dns-lookup = { workspace = true }
|
|
|
|
# OpenSSL dependencies (optional, for ssl-openssl feature)
|
|
openssl = { workspace = true, optional = true }
|
|
openssl-sys = { workspace = true, optional = true }
|
|
openssl-probe = { workspace = true, optional = true }
|
|
foreign-types-shared = { workspace = true, optional = true }
|
|
|
|
# Rustls dependencies (optional, for ssl-rustls feature)
|
|
rustls = { workspace = true, default-features = false, features = ["std", "tls12"], optional = true }
|
|
rustls-native-certs = { workspace = true, optional = true }
|
|
rustls-pemfile = { workspace = true, optional = true }
|
|
rustls-platform-verifier = { workspace = true, optional = true }
|
|
x509-cert = { workspace = true, features = ["pem", "builder"], optional = true }
|
|
x509-parser = { workspace = true, optional = true }
|
|
der = { workspace = true, optional = true }
|
|
pem-rfc7468 = { workspace = true, features = ["alloc"], optional = true }
|
|
webpki-roots = { workspace = true, optional = true }
|
|
oid-registry = { workspace = true, features = ["x509", "pkcs1", "nist_algs"], optional = true }
|
|
pkcs8 = { workspace = true, features = ["encryption", "pkcs5", "pem"], optional = true }
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_arch = "wasm32")))'.dependencies]
|
|
libsqlite3-sys = { workspace = true, features = ["bundled"], optional = true }
|
|
liblzma = { workspace = true }
|
|
liblzma-sys = { workspace = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
paste = { workspace = true }
|
|
widestring = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
system-configuration = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
insta = { workspace = true }
|
|
rustpython-pylib = { workspace = true, features = [ "freeze-stdlib" ] }
|
|
|
|
|
|
[lints]
|
|
workspace = true
|