Error: The `http3` feature is unstable, and requires the `RUSTFLAGS
Bug Description
freshly cloned repo, and running make init for the first time, create this error message:
error: The "http3" feature is unstable, and requires the RUSTFLAGS="--cfg reqwest_unstable'environment variable to be set. --> /home/langflow/.cache/puccinialin/cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.12.23/src/lib.rs:251:1 | 251 | / compile_error!( 252 | | "\ 253 | | Thehttp3feature is unstable, and requires the \ 254 | | RUSTFLAGS='--cfg reqwest_unstable'environment variable to be set.\ 255 | | " 256 | | ); | |_^
Reproduction
Steps to reproduce
- clone the repo
- run "make init"
Expected behavior
Complete without error
Who can help?
No response
Operating System
Docker
Langflow Version
?
Python Version
None
Screenshot
No response
Flow File
No response
A temporary fix might be to change line 60 in the Makefile:
- @uv sync --frozen --extra "postgresql" $(EXTRA_ARGS)
+ @RUSTFLAGS='--cfg reqwest_unstable' uv sync --frozen --extra postgresql $(EXTRA_ARGS)
which passes the required flag for reqwest’s http3 feature.
It seems that release 2.0.0 of apify-client replaced httpx with impit, a Rust-based package that uses reqwest (which uses http3). A longer-term fix might involve downgrading apify-client to a pre-2.0.0 version.
In the latest version, this problem no longer occurs. Reopen the issue if you are still experiencing this error. Thank you a lot