Skip to content

Conversation

@kkysen
Copy link
Contributor

@kkysen kkysen commented Jan 27, 2026

cargo always recursively clones git dependencies, even though c2rust git dependencies don't need any of the big submodules here used just for testing. Setting update = none is workaround (see rust-lang/cargo#10717). However, other users need to explicitly update submodules now.

With this change, it takes ~6 s to resolve a c2rust-bitfields git dependency, vs. many minutes before with all of the large submodules.

@kkysen kkysen requested a review from spernsteiner January 27, 2026 22:16
@kkysen kkysen force-pushed the kkysen/submodule-update-none branch from 43b79bf to ded2b7f Compare January 27, 2026 22:21
…ncies don't clone them

`cargo` always recursively clones git dependencies,
even though c2rust git dependencies don't need
any of the big submodules here used just for testing.
Setting `update = none` is workaround
(see <rust-lang/cargo#10717>).
However, other users need to explicitly update submodules now.

With this change, it takes ~6 s to resolve a `c2rust-bitfields` git dependency,
vs. many minutes before with all of the large submodules.
@kkysen kkysen force-pushed the kkysen/submodule-update-none branch from ded2b7f to a101fbe Compare January 27, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants