b1eca56ec3
* Add python3-sys to rust-cpython as an optional feature, and make python27-sys also optional, but still the default * Parametrise python27-sys/build.rs so that it is python version independent, and clone it into python3-sys/build.rs. Hopefully this can continue to be maintained as an identical file. * python27-sys and python3-sys gain features for explicitly selecting a python version to link to. for python27-sys, there's currently only python27; for python3-sys there's python 3.4 and 3.5. * explicitly tell travis to use nightlies (seems to have started trying to use 1.0.0) |
||
---|---|---|
.. | ||
examples | ||
src | ||
.gitignore | ||
.travis.yml | ||
build.rs | ||
Cargo.toml | ||
LICENSE | ||
README.md |
rust-python27-sys
Rust FFI declarations for Python 2.7.
This cargo -sys package provides python27
declarations.
Licensed under the Python license (see LICENSE
).
For a safe high-level API, see rust-cpython.
Usage
python27-sys
is available on crates.io so you can use it like this (in your Cargo.toml
):
[dependencies.python27-sys]
version = "*"
In Rust, import the crate like this:
extern crate python27_sys as py;
Documentation for the python API is available on [https://docs.python.org/2/c-api/].