mozilla / sccache

Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.
Apache License 2.0
5.85k stars 552 forks source link

usage of document-features crate breaks sccache-dist #2123

Open lissyx opened 8 months ago

lissyx commented 8 months ago

cf https://crates.io/crates/document-features

wgpu-core crate recently landed on mozilla-central making use of that, and this depends on Cargo.toml being available.

It blows up with:


 0:04.92    Compiling wgpu-core v0.19.0 (https://github.com/gfx-rs/wgpu?rev=a5c0181c3a6b4b197dcae34591dfe78bf45338b9#a5c0181c)
 0:24.78 error: Can't open Cargo.toml: Os { code: 2, kind: NotFound, message: "No such file or directory" }
 0:24.78  --> /home/alex/codaz/Mozilla/gecko-cinnabar/third_party/rust/wgpu-core/src/lib.rs:6:10
 0:24.78   |
 0:24.78 6 | #![doc = document_features::document_features!()]
 0:24.78   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 0:24.78   |
 0:24.78   = note: this error originates in the macro `document_features::document_features` (in Nightly builds, run with -Z macro-backtrace for more info)
lissyx commented 8 months ago

https://github.com/mozilla/sccache/pull/2124

sylvestre commented 6 months ago

Pr welcome!