@hackage rustls0.0.0.0
TLS bindings for Rustls
Categories
License
CC0-1.0
Maintainer
amesgen@amesgen.de
Links
Versions
Installation
Dependencies (8)
- base >=4.12 && <5
- bytestring >=0.10 && <0.12
- derive-storable ^>=0.3
- derive-storable-plugin
- network ^>=3.1
- resourcet ^>=1.2 || ^>=1.3 Show all…
Dependents (1)
@hackage/http-client-rustls
Package Flags
derive-storable-plugin
(on by default)
Use derive-storable-plugin
hs-rustls — Rustls for Haskell
Haskell bindings for the Rustls TLS library via rustls-ffi.
See the haddocks for documentation.
Also see:
- http-client-rustls: Make HTTPS requests using http-client and Rustls.
Development
With Nix
When developing this library, just drop into a Nix shell.
If you want to depend on this library in another package, you have to make sure to include rustls-ffi as a native dependency. You can do so by depending on the github:amesgen/hs-rustls?dir=nix-rustls flake, and then using the nix-rustls.packages.${system}.default output.
Without Nix
rustls-ffi
Make sure to have Cargo installed. Then, clone and install rustls-ffi:
git clone https://github.com/rustls/rustls-ffi
cd rustls-ffi
make DESTDIR=/path/to/some/dir install
Then, in a cabal.project.local, add these lines:
extra-include-dirs: /path/to/some/dir/include
extra-lib-dirs: /path/to/some/dir/lib
With this, Cabal should be able to find the rustls-ffi native library.
Note: This process might become less manual if sth like haskell/cabal#7906 lands in Cabal.
Testing
When running the tests in this repo, you have to have minica and miniserve installed.