Cargo Features

[dependencies]
rustpython-stdlib = { version = "0.4.0", default-features = false, features = ["compiler", "threading", "zlib", "bz2", "ssl", "ssl-vendor"] }
default = compiler

The compiler feature is set by default whenever rustpython-stdlib is added without default-features = false somewhere in the dependency tree.

compiler default

Enables compiler of rustpython-vm

threading

Enables threading of rustpython-common and rustpython-vm

zlib = libz-sys

Enables zlib of flate2

bz2 = bzip2
ssl ssl-vendor? = foreign-types-shared, openssl, openssl-sys
ssl-vendor = openssl-probe, ssl

Enables vendored of openssl

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

libz-sys zlib?
bzip2 bz2?
foreign-types-shared not wasm32 ssl?

Enables foreign-types-shared ^0.1.1

openssl-probe not wasm32 ssl-vendor?
openssl-sys not wasm32 ssl?
openssl not wasm32 ssl? ssl-vendor?