quiche icon indicating copy to clipboard operation
quiche copied to clipboard

boringssl submodule in crates.io is incomplete

Open WesleyRosenblum opened this issue 5 months ago • 3 comments

I'm trying to compile a project that has a Cargo.toml dependency on quiche on a 32-bit platform and I'm encountering this error:

CMake Error at /usr/local/share/cmake-3.23/Modules/CMakeDetermineSystem.cmake:130 (message):
    Could not find toolchain file:
    /cargo/registry/src/index.crates.io-1949cf8c6b5b557f/quiche-0.24.4/deps/boringssl/src/util/32-bit-toolchain.cmake

The quiche dependency is specified in my Cargo.toml as follows:

[dev-dependencies]
quiche = "0.24"

My understanding is that Rust crates published to crates.io include git submodules in the source as a regular directory. The boringssl submodule does appear in the source aquired from crates.io, but it is missing the referenced 32-bit-toolchain.cmake file:

curl -L 'https://crates.io/api/v1/crates/quiche/0.24.4/download' | tar -zxf -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 3691k  100 3691k    0     0  5107k      0 --:--:-- --:--:-- --:--:-- 5107k

ls -a quiche-0.24.4/deps/boringssl/src/util
.         ..        ar        fipstools

cat quiche-0.24.4/deps/boringssl/src/util/32-bit-toolchain.cmake
cat: quiche-0.24.4/deps/boringssl/src/util/32-bit-toolchain.cmake: No such file or directory

I believe this can happen if the git submodule hasn't been properly initialized or checked out at the time the crate was published to crates.io.

WesleyRosenblum avatar Jul 08 '25 23:07 WesleyRosenblum

Thanks for the report Wesley. I wonder if this is another thing that will be fixed by https://github.com/cloudflare/quiche/pull/2080

LPardue avatar Jul 08 '25 23:07 LPardue

I wonder if this is another thing that will be fixed by https://github.com/cloudflare/quiche/pull/2080

Probably, but I think it would be a quick fix to do a cargo publish with the complete submodule in place

WesleyRosenblum avatar Jul 09 '25 00:07 WesleyRosenblum

Hi @LPardue,

Can we get some updates on this issue? Thanks :)

boquan-fang avatar Sep 15 '25 20:09 boquan-fang