Skip to main content

Installation

Supported Platforms​

TQUIC is written in the Rust language. Currently, it runs on Linux, MacOS, FreeBSD, Windows, iOS, Android and Harmony.

Prerequisites​

Building​

To build TQUIC for Linux, run the following commands:

git clone https://github.com/tencent/tquic --recursive
cd tquic

cargo build --release --all
tip

The --release option enables cargo to build optimized artifacts and put them in the directory ./target/release/, instead of the default location ./target/debug/.

The --all option enables cargo to build both the tquic library and example tools.

If you want to enable the C API, just add -F ffi option to the cargo build command:

cargo build --release -F ffi

Running the tests​

The command below runs unit tests:

cargo test

Further readings​

Problems?​