[package]
edition = "2024"
rust-version = "1.95.0"
name = "rustpython-host_env"
version = "0.6.0"
authors = ["RustPython Team"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Host OS API abstractions for RustPython"
readme = false
license = "MIT"
repository = "https://github.com/RustPython/RustPython"
resolver = "2"
[features]
ctypes = [
"dep:libffi",
"dep:libloading",
]
native-certs = ["dep:rustls-native-certs"]
rustls = [
"ssl",
"dep:rustls",
"dep:rustls-pemfile",
"dep:rustls-webpki",
"dep:x509-parser",
"dep:der",
"dep:pkcs8",
"dep:sha2",
]
ssl = []
[lib]
name = "rustpython_host_env"
path = "src/lib.rs"
[dependencies.bitflags]
version = "2.11.0"
[dependencies.bitflagset]
version = "0.0.4"
[dependencies.der]
version = "0.8"
features = [
"alloc",
"oid",
"pem",
"zeroize",
]
optional = true
[dependencies.getrandom]
version = "0.4"
features = ["std"]
[dependencies.libc]
version = "0.2.186"
[dependencies.num-traits]
version = "0.2"
[dependencies.parking_lot]
version = "0.12.3"
[dependencies.paste]
version = "1.0.15"
[dependencies.pkcs8]
version = "0.11"
features = [
"encryption",
"pkcs5",
"pem",
]
optional = true
[dependencies.rustls]
version = "0.23.39"
features = [
"std",
"tls12",
]
optional = true
default-features = false
[dependencies.rustls-pemfile]
version = "2.2"
optional = true
[dependencies.rustls-webpki]
version = "0.103"
features = ["std"]
optional = true
default-features = false
[dependencies.rustpython-wtf8]
version = "0.6.0"
[dependencies.sha2]
version = "0.11"
optional = true
[dependencies.widestring]
version = "1.2.0"
[dependencies.x509-parser]
version = "0.18"
optional = true
[build-dependencies.cc]
version = "1"
[target.'cfg(all(any(target_os = "linux", target_os = "macos", target_os = "windows", target_os = "android"), not(any(target_env = "musl", target_env = "sgx"))))'.dependencies.libffi]
version = "5"
features = ["system"]
optional = true
[target.'cfg(all(unix, not(target_os = "ios"), not(target_os = "redox")))'.dependencies.termios]
version = "0.3.3"
[target.'cfg(any(not(target_arch = "wasm32"), target_os = "wasi"))'.dependencies.num_cpus]
version = "1.17.0"
[target.'cfg(any(unix, target_os = "macos", target_os = "redox", target_os = "wasi"))'.dependencies.rustix]
version = "1.1"
features = [
"event",
"fs",
"param",
"system",
]
[target."cfg(any(unix, windows))".dependencies.libloading]
version = "0.9"
optional = true
[target."cfg(any(unix, windows))".dependencies.memmap2]
version = "0.9.10"
[target.'cfg(not(any(target_os = "ios", target_os = "android", target_os = "windows", target_arch = "wasm32", target_os = "redox")))'.dependencies.mac_address]
version = "1.1.3"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.dns-lookup]
version = "4.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.gethostname]
version = "1.0.2"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls-native-certs]
version = "0.8"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustyline]
version = "18"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.socket2]
version = "0.6.4"
features = ["all"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.which]
version = "8"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rustls]
version = "0.23.39"
features = ["aws_lc_rs"]
default-features = false
[target.'cfg(target_os = "macos")'.dependencies.system-configuration]
version = "0.8.0"
[target."cfg(unix)".dependencies.nix]
version = "0.31"
features = [
"fs",
"user",
"process",
"term",
"time",
"signal",
"ioctl",
"socket",
"sched",
"zerocopy",
"dir",
"hostname",
"net",
"poll",
]
[target."cfg(windows)".dependencies.junction]
version = "2.0.0"
[target."cfg(windows)".dependencies.memchr]
version = "2.8.1"
features = ["alloc"]
default-features = false
[target."cfg(windows)".dependencies.schannel]
version = "0.1.29"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61.2"
features = [
"Win32_Devices_Bluetooth",
"Win32_Foundation",
"Win32_Globalization",
"Win32_Media_Audio",
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Networking_WinSock",
"Win32_Security",
"Win32_Security_Authorization",
"Win32_Storage_FileSystem",
"Win32_System_Com",
"Win32_System_Console",
"Win32_System_Diagnostics_Debug",
"Win32_System_Environment",
"Win32_System_Ole",
"Win32_System_IO",
"Win32_System_Ioctl",
"Win32_System_JobObjects",
"Win32_System_Kernel",
"Win32_System_LibraryLoader",
"Win32_System_Memory",
"Win32_System_Pipes",
"Win32_System_Performance",
"Win32_System_Registry",
"Win32_System_Rpc",
"Win32_System_SystemInformation",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_Time",
"Win32_System_WindowsProgramming",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
]
[lints.clippy]
alloc_instead_of_core = "warn"
assigning_clones = "warn"
bool_to_int_with_if = "warn"
cfg_not_test = "warn"
checked_conversions = "warn"
cloned_instead_of_copied = "warn"
collapsible_else_if = "warn"
collection_is_never_read = "warn"
comparison_chain = "warn"
copy_iterator = "warn"
debug_assert_with_mut_call = "warn"
derive_partial_eq_without_eq = "warn"
doc_link_with_quotes = "warn"
duration_suboptimal_units = "warn"
elidable_lifetime_names = "warn"
enum_glob_use = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
explicit_iter_loop = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
format_collect = "warn"
if_not_else = "allow"
imprecise_flops = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "warn"
inefficient_to_string = "warn"
ip_constant = "warn"
iter_filter_is_ok = "warn"
iter_filter_is_some = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_over_hash_type = "warn"
large_futures = "warn"
large_types_passed_by_value = "warn"
literal_string_with_formatting_args = "warn"
manual_assert = "warn"
manual_instant_elapsed = "warn"
manual_is_variant_and = "warn"
map_unwrap_or = "warn"
match_bool = "warn"
match_same_arms = "allow"
mismatching_type_param_order = "warn"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "warn"
mut_mut = "warn"
needless_bitwise_bool = "warn"
needless_collect = "warn"
needless_for_each = "warn"
non_std_lazy_statics = "warn"
option_as_ref_cloned = "warn"
or_fun_call = "warn"
ptr_offset_by_literal = "warn"
range_minus_one = "warn"
range_plus_one = "warn"
redundant_clone = "warn"
redundant_else = "warn"
redundant_test_prefix = "warn"
ref_option = "warn"
return_self_not_must_use = "warn"
same_functions_in_if_condition = "warn"
search_is_some = "warn"
significant_drop_in_scrutinee = "warn"
similar_names = "allow"
single_char_pattern = "warn"
single_match_else = "allow"
single_option_map = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
tests_outside_test_module = "warn"
trait_duplication_in_bounds = "warn"
trivially_copy_pass_by_ref = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
unchecked_time_subtraction = "warn"
uninlined_format_args = "warn"
unnecessary_box_returns = "warn"
unnecessary_join = "warn"
unnecessary_struct_initialization = "warn"
unnecessary_wraps = "warn"
unnested_or_patterns = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
while_float = "warn"
[lints.clippy.complexity]
level = "warn"
priority = -2
[lints.clippy.correctness]
level = "warn"
priority = -2
[lints.clippy.perf]
level = "warn"
priority = -2
[lints.clippy.style]
level = "warn"
priority = -2
[lints.clippy.suspicious]
level = "warn"
priority = -2
[lints.rust]
elided_lifetimes_in_paths = "warn"
unreachable_pub = "warn"
unsafe_code = "allow"
unsafe_op_in_unsafe_fn = "deny"