官方文档
rust
shell
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
quiche + boringssl
shell
git clone --recursive -b 0.24.5 https://github.com/cloudflare/quiche
cd quiche
# sudo dnf install -y gcc gcc-c++ make cmake
cargo build --package quiche --release --features ffi,pkg-config-meta,qlog
ln -s libquiche.so target/release/libquiche.so.0
mkdir quiche/deps/boringssl/src/lib
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) quiche/deps/boringssl/src/lib/
curl
shell
cd ..
git clone https://github.com/curl/curl
cd curl
# sudo dnf install -y automake autoconf libtool libpsl libpsl-devel
autoreconf -fi
./configure LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-openssl=$PWD/../quiche/quiche/deps/boringssl/src --with-quiche=$PWD/../quiche/target/release
make
sudo make install
测试
shell
[idoly@OuO ~]$ curl -I --http3 --noproxy '*' https://cloudflare-quic.com
HTTP/3 200
date: Sun, 26 Oct 2025 12:48:46 GMT
content-type: text/html
cf-ray: 994a11e5afbd265a-LAX
priority: u=3,i=?0
server: cloudflare
alt-svc: h3=":443"; ma=86400
server-timing: cfExtPri