Skip to content

Commit

Permalink
build: use shallow clone for git dependencies (#17526)
Browse files Browse the repository at this point in the history
Signed-off-by: xxchan <[email protected]>
  • Loading branch information
xxchan authored Jul 2, 2024
1 parent 2dfad37 commit 015aa5d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,11 @@ rustflags = [
# Flags for all targets.
[target.'cfg(all())']
rustflags = ["--cfg", "tokio_unstable"]

# We have large git dependencies. This can make cloning faster.
# https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#git
# Actually we also want to prevent submodule cloning completely
# https://github.com/rust-lang/cargo/issues/4247
[unstable.git]
shallow_index = true
shallow_deps = true

0 comments on commit 015aa5d

Please sign in to comment.