xref: /curl/docs/RUSTLS.md (revision 86d33001)
1<!--
2Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3
4SPDX-License-Identifier: curl
5-->
6
7# Rustls
8
9[Rustls is a TLS backend written in Rust](https://docs.rs/rustls/). Curl can
10be built to use it as an alternative to OpenSSL or other TLS backends. We use
11the [rustls-ffi C bindings](https://github.com/rustls/rustls-ffi/). This
12version of curl depends on version v0.13.0 of rustls-ffi.
13
14# Building with rustls
15
16First, [install Rust](https://rustup.rs/).
17
18Next, check out, build, and install the appropriate version of rustls-ffi:
19
20    % git clone https://github.com/rustls/rustls-ffi -b v0.13.0
21    % cd rustls-ffi
22    % make
23    % make DESTDIR=${HOME}/rustls-ffi-built/ install
24
25Now configure and build curl with rustls:
26
27    % git clone https://github.com/curl/curl
28    % cd curl
29    % autoreconf -fi
30    % ./configure --with-rustls=${HOME}/rustls-ffi-built
31    % make
32