emilk / ehttp

Minimal Rust HTTP client for both native and WASM
Apache License 2.0
316 stars 30 forks source link

Build fails with vendored dependencies #50

Closed v-morlock closed 7 months ago

v-morlock commented 7 months ago

Hi, due to the use of the "document features" crate, this crate won't build when vendoring dependencies. (https://github.com/slint-ui/document-features/issues/20)

Would it be possible to place this behind a feature flag or sth similar to make building with vendored dependencies possible? That's relevant eg when packaging for nix.

error: Could not find documented features in Cargo.toml
  --> /private/tmp/nix-build-rerun-cli.drv-0/rerun-cli-vendor.tar.gz/ehttp/src/lib.rs:21:10
   |
21 | #![doc = document_features::document_features!()]
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
v-morlock commented 7 months ago

My bad, this already works in the latest published version