93645484ed
* pkgconfig is frequently broken or missing, doesn't contain the explicit path to the interpreter (leading to bad guesses), and confuses users. Rely on PATH alone. * Fix bad detection of OSX shared library python * Fix get_config_from_interpreter reporting python interpreter path inconsistently with find_interpreter_and_get_config - fixes OSX python.org python 3, which doesn't have a 'python' in exec_prefix, just 'python3' |
||
---|---|---|
.. | ||
examples | ||
src | ||
.gitignore | ||
build.rs | ||
Cargo.toml | ||
LICENSE | ||
README.md |
rust-python3-sys
Rust FFI declarations for Python 3. Supports the PEP 384 stable ABI for Python 3.3 or higher.
This cargo -sys package provides python3
declarations.
Licensed under the Python license (see LICENSE
).
For a safe high-level API, see rust-cpython.
Usage
python3-sys
is available on crates.io so you can use it like this (in your Cargo.toml
):
[dependencies.python3-sys]
version = "*"
In Rust, import the crate like this:
extern crate python3_sys as py;
Documentation for the python API is available on [https://docs.python.org/3/c-api/].