alexcrichton / curl-rust

Rust bindings to libcurl
MIT License
1k stars 234 forks source link

how to enable http3? #476

Open zhangbtciab opened 1 year ago

zhangbtciab commented 1 year ago

how to enable http3 for get or post request?

zhangbtciab commented 1 year ago

it tell me this .

error: failed to select a version for curl. ... required by package rust-http v0.1.0 (/root/test/rust-http) versions that meet the requirements ^0.4.44 (locked to 0.4.44) are: 0.4.44

the package rust-http depends on curl, with features: http3-quiche but curl does not have these features.

zhangbtciab commented 1 year ago

this is my toml file

[package] name = "rust-http" version = "0.1.0" edition = "2021"

[dependencies] curl = { version = "0.4.44", features = ["http2","poll_7_68_0","http3-quiche"] }

sagebind commented 1 year ago

There is no such feature as http3-quiche and currently it is not possible to enable HTTP/3 support in the Rust wrapper. Also keep in mind that HTTP/3 support in curl itself is still considered in experimental status.

zhangbtciab commented 1 year ago

There is no such feature as http3-quiche and currently it is not possible to enable HTTP/3 support in the Rust wrapper. Also keep in mind that HTTP/3 support in curl itself is still considered in experimental status.

how can I make a http3 request with quiche? Do you know?

zhangbtciab commented 1 year ago

There is no such feature as http3-quiche and currently it is not possible to enable HTTP/3 support in the Rust wrapper. Also keep in mind that HTTP/3 support in curl itself is still considered in experimental status.

I konw it is in experimental status. I want to use the branch http3-quiche as a test But I can not build the branch http3-quiche

sagebind commented 1 year ago

If you are referring to https://github.com/alexcrichton/curl-rust/pull/433, there are several issues preventing it from working, which is why it was never merged. I am not too surprised that it does not compile.