Skip to content

Commit 9bb064a

Browse files
committed
Add benchmark files and update documentation
1 parent 594965e commit 9bb064a

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

collector/compile-benchmarks/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ They mostly consist of real-world crates.
2525
part of the Rust ecosystem.
2626
- **cargo-0.87.1**: The Rust package manager. A large program, and an important
2727
part of the Rust ecosystem.
28-
- **clap-3.1.6**: A command line argument parser library. A crate used by many
29-
Rust programs.
28+
- **clap-3.1.6**: A command line argument parser library. A crate used by many Rust programs.
29+
- **clap_derive-4.5.32**: The proc macro sub-crate of a command line argument parser library that is used by many Rust programs.
3030
- **cranelift-codegen-0.82.1**: The largest crate from a code generator. Used by
3131
wasmtime. Stresses obligation processing.
3232
- **diesel-1.4.8**: A type safe SQL query builder. Utilizes the type system to

collector/compile-benchmarks/REUSE.toml

+5
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ path = "clap-3.1.6/**"
4242
SPDX-FileCopyrightText = "clap contributors"
4343
SPDX-License-Identifier = "MIT OR Apache-2.0"
4444

45+
[[annotations]]
46+
path = "clap_derive-4.5.32/**"
47+
SPDX-FileCopyrightText = "clap contributors"
48+
SPDX-License-Identifier = "MIT OR Apache-2.0"
49+
4550
[[annotations]]
4651
path = "coercions/**"
4752
SPDX-FileCopyrightText = "The Rust Project Developers (see https://thanks.rust-lang.org)"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/src/lib.rs b/src/lib.rs
2+
index 760c5b52..1281bb19 100644
3+
--- a/src/lib.rs
4+
+++ b/src/lib.rs
5+
@@ -36,6 +36,7 @@ mod utils;
6+
/// Generates the `ValueEnum` impl.
7+
#[proc_macro_derive(ValueEnum, attributes(clap, value))]
8+
pub fn value_enum(input: TokenStream) -> TokenStream {
9+
+ println!("testing!");
10+
let input: DeriveInput = parse_macro_input!(input);
11+
derives::derive_value_enum(&input)
12+
.unwrap_or_else(|err| {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"category": "primary",
3+
"artifact": "library"
4+
}

0 commit comments

Comments
 (0)