This repository has been archived on 2023-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
py-libreauth/docs/install.rst

33 lines
911 B
ReStructuredText
Raw Normal View History

2017-12-17 00:40:03 +01:00
Install
=======
In order to work, you need to install LibreAuth 0.6 or higher.
Installing Rust with rustup
---------------------------
LibreAuth is developed in Rust. If you do not already have the latest stable version of the Rust compiler, you can install it with rustup.
.. code-block:: console
curl https://sh.rustup.rs -sSf | sh
rustc --version
cargo --version
Building LibreAuth
------------------
Now that we have the Rust compiler, let's download and install LibreAuth.
.. code-block:: console
wget 'https://github.com/breard-r/libreauth/archive/v0.6.0.tar.gz' -O '/tmp/libreauth.tar.gz'
tar -xvf '/tmp/libreauth.tar.gz'
cd 'libreauth-0.6.0'
make
sudo make install
It is not mandatory to install it system-wide. You can also copy the file ``target/release/liblibreauth.so`` anywhere and specify its path using the ``LIBREAUTH_LIB_PATH`` environment variable.