RustPython requires Rust latest stable version to be installed
The latest stable version of the library can be installed using the following command:
cargo add rustpythonor by adding the following to your Cargo.toml:
[dependencies]
rustpython = "0.4"Nightly releases are built weekly and are released on git.
[dependencies]
rustpython = { git = "https://github.com/RustPython/RustPython", tag = "2025-02-24-main-13" }The tag should be pointed to the latest tag found at https://github.com/RustPython/RustPython/tags.
By default threading, stdlib, and importlib are enabled.
stdlib is the default feature that enables the standard library,
parts of the stdlib will still be accessible even if this is disabled.
If you'd like to use the sqlite3 module, you can enable the sqlite feature.
If you'd like to make https requests, you can enable the ssl feature, which also lets you install the pip package manager. Note that on Windows, you may need to install OpenSSL, or you can enable the ssl-vendor feature instead, which compiles OpenSSL for you but requires a C compiler, perl, and make. OpenSSL version 3 is expected and tested in CI. Older versions may not work.