Commit 2c2e5b3a authored by Pascal Engélibert's avatar Pascal Engélibert 🚴
Browse files

Cargo.toml, Readme, deps versions

parent b579c5eb
......@@ -3,17 +3,21 @@ name = "py-pkstl"
version = "0.1.0"
authors = ["tuxmain <tuxmain@zettascript.org>"]
description = "Python bindings for pkstl"
repository = "https://git.duniter.org/tools/py-pkstl"
homepage = "https://git.duniter.org/tools/py-pkstl"
license = "AGPL-3.0"
readme = "README.md"
keywords = ["python","security"]
edition = "2018"
[lib]
name = "pkstl"
name = "py_pkstl"
crate-type = ["cdylib"]
[dependencies]
pkstl = {path="../duniter-rs/lib/tools/pkstl"}
pkstl = "0.1.0"
ring = "0.16.9"
[dependencies.pyo3]
version = "0.8.3"
version = "0.8.4"
features = ["extension-module"]
# Py-PKSTL
Python 3 bindings for Rust PKSTL.
Python 3 bindings for [Rust PKSTL](https://github.com/librelois/pkstl). PKSTL is a security layer for network connections (public key cryptography & Diffie-Hellman secret generation).
## Build & install
Crate `pkstl` is not yet on _crates.io_. Change its local path in `Cargo.toml`.
After build, place directly `libpy_pkstl.so` in your `site-packages` under the name `pkstl.so`. There are scripts for this, `install_debug.sh` and `install_release.sh`. (python-3.8 assumed, but >=3.5 should be OK)
After build, place directly `libpkstl.so` in your `site-packages` under the name `pkstl.so`. There are scripts for this, `install_debug.sh` and `install_release.sh`. (python-3.8 assumed, but >=3.5 should be OK)
[Download compiled latest version](https://zettascript.org/projects/py-pkstl/latest) (directly usable from Python)
## Example
......
mv target/debug/libpkstl.so /usr/lib/python3.8/site-packages/pkstl.so
mv target/debug/libpy_pkstl.so /usr/lib/python3.8/site-packages/pkstl.so
mv target/release/libpkstl.so /usr/lib/python3.8/site-packages/pkstl.so
mv target/release/libpy_pkstl.so /usr/lib/python3.8/site-packages/pkstl.so
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment