Skip to content

Commit bb7896c

Browse files
committed
cull a bunch of vendor dependency files
1 parent 8267784 commit bb7896c

656 files changed

Lines changed: 46 additions & 379176 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
11
/target/
22
/vendor/.vendor*/
33
/vendor/**/*._oro-prepatch
4+
5+
# Vendor-specific ignores
6+
/vendor/*/tests/*
7+
/vendor/*/examples/*
8+
/vendor/*/benches/*
9+
/vendor/**/.editorconfig
10+
/vendor/**/.github/*
11+
/vendor/**/release-plz.toml
12+
/vendor/**/rust-toolchain.toml
13+
14+
!/vendor/**/.github/FUNDING.yml
15+
!/vendor/**/.github/FUNDING.yaml
16+
17+
!/vendor/clap/examples/demo.rs
18+
!/vendor/clap/examples/demo.md
19+
!/vendor/winnow/examples/css
20+
/vendor/winnow/examples/css/*
21+
!/vendor/winnow/examples/css/parser.rs
22+
23+
/vendor/flickzeug/test-data/
24+
vendor/flickzeug/src/patch/snapshots/
25+
26+
# Building on windows isn't supported to begin with.
27+
/vendor/windows-sys/src/*

utils/build/src/cmd/vendor.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,28 @@ fn vendor() {
4343
eprintln!("wrote .cargo/config.toml paths");
4444

4545
super::patch::apply_all();
46+
47+
eprintln!("cleaning vendor directory...");
48+
match std::process::Command::new("git")
49+
.arg("clean")
50+
.arg("-dffX")
51+
.arg("vendor")
52+
.current_dir(vfs.root())
53+
.stdout(std::process::Stdio::inherit())
54+
.stderr(std::process::Stdio::inherit())
55+
.stdin(std::process::Stdio::inherit())
56+
.status()
57+
{
58+
Ok(status) if status.success() => {
59+
eprintln!("cleaned vendor/ directory");
60+
}
61+
Ok(status) => {
62+
panic!("git exited non-zero; is it installed?: {status}");
63+
}
64+
Err(err) => {
65+
panic!("failed to spawn git to clean vendor/directory: {err}");
66+
}
67+
}
4668
}
4769

4870
fn check() {

vendor/anstream/examples/dump-stream.rs

Lines changed: 0 additions & 130 deletions
This file was deleted.

vendor/anstream/examples/query-stream.rs

Lines changed: 0 additions & 22 deletions
This file was deleted.

vendor/anstyle-parse/examples/parselog.rs

Lines changed: 0 additions & 72 deletions
This file was deleted.

vendor/anstyle-query/examples/query.rs

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)