Skip to content

Commit ed7016c

Browse files
committed
Add benchmark files and update documentation
1 parent 64b7cb1 commit ed7016c

File tree

4 files changed

+21
-0
lines changed

4 files changed

+21
-0
lines changed

collector/compile-benchmarks/README.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ They mostly consist of real-world crates.
2323
`N` value from 1 to 1024.
2424
- **cargo-0.60.0**: The Rust package manager. A large program, and an important
2525
part of the Rust ecosystem.
26+
- **cargo-0.87.1**: The Rust package manager. A large program, and an important
27+
part of the Rust ecosystem.
2628
- **clap-3.1.6**: A command line argument parser library. A crate used by many
2729
Rust programs.
2830
- **cranelift-codegen-0.82.1**: The largest crate from a code generator. Used by

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ path = "cargo-0.60.0/**"
3232
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
3333
SPDX-License-Identifier = "MIT OR Apache-2.0"
3434

35+
[[annotations]]
36+
path = "cargo-0.87.1/**"
37+
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
38+
SPDX-License-Identifier = "MIT OR Apache-2.0"
39+
3540
[[annotations]]
3641
path = "clap-3.1.6/**"
3742
SPDX-FileCopyrightText = "clap contributors"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/cargo/sources/path.rs b/src/cargo/sources/path.rs
2+
index c1e81528..7ae91667 100644
3+
--- a/src/cargo/sources/path.rs
4+
+++ b/src/cargo/sources/path.rs
5+
@@ -58,6 +58,7 @@ impl<'gctx> PathSource<'gctx> {
6+
/// Preloads a package for this source. The source is assumed that it has
7+
/// yet loaded any other packages.
8+
pub fn preload_with(pkg: Package, gctx: &'gctx GlobalContext) -> Self {
9+
+ println!("testing");
10+
let source_id = pkg.package_id().source_id();
11+
let path = pkg.root().to_owned();
12+
Self {

collector/compile-benchmarks/cargo-0.87.1/Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -393,3 +393,5 @@ rust_2018_idioms = "warn"
393393

394394
[lints.rustdoc]
395395
private_intra_doc_links = "allow"
396+
397+
[workspace]

0 commit comments

Comments
 (0)