pyo3/python3-sys/README.md

31 lines
765 B
Markdown
Raw Normal View History

rust-python3-sys
2015-04-26 08:32:58 +00:00
====================
[Rust](http://www.rust-lang.org/) FFI declarations for Python 3.
Supports the PEP 384 stable ABI.
---
This [cargo -sys package](http://doc.crates.io/build-script.html#*-sys-packages) provides `python3` declarations.
Licensed under the Python license (see `LICENSE`).
For a safe high-level API, see [rust-cpython](https://github.com/dgrunwald/rust-cpython).
# Usage
[`python3-sys` is available on crates.io](https://crates.io/crates/python3-sys) so you can use it like this (in your `Cargo.toml`):
```toml
[dependencies.python3-sys]
version = "*"
```
In Rust, import the crate like this:
```rust
extern crate python3_sys as py;
```
Documentation for the python API is available on [https://docs.python.org/3/c-api/].