Skip to content

Commit af87430

Browse files
committed
Add clap 4.5.36 benchmark
1 parent a86adc1 commit af87430

File tree

576 files changed

+104555
-0
lines changed

Some content is hidden

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

576 files changed

+104555
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
allow-print-in-tests = true
2+
allow-expect-in-tests = true
3+
allow-unwrap-in-tests = true
4+
allow-dbg-in-tests = true
5+
disallowed-methods = [
6+
{ path = "std::option::Option::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
7+
{ path = "std::option::Option::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
8+
{ path = "std::result::Result::map_or", reason = "prefer `map(..).unwrap_or(..)` for legibility" },
9+
{ path = "std::result::Result::map_or_else", reason = "prefer `map(..).unwrap_or_else(..)` for legibility" },
10+
{ path = "std::iter::Iterator::for_each", reason = "prefer `for` for side-effects" },
11+
{ path = "std::iter::Iterator::try_for_each", reason = "prefer `for` for side-effects" },
12+
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: clap-rs
2+
open_collective: clap
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Bug report
2+
description: An issue with clap, clap_complete, clap_derive, or clap_mangen
3+
labels: 'C-bug'
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Please complete the following tasks
8+
options:
9+
- label: I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
10+
required: true
11+
- label: I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Aissue+label%3AS-wont-fix+is%3Aclosed) issues
12+
required: true
13+
- type: input
14+
attributes:
15+
label: Rust Version
16+
description: Output of `rustc -V`
17+
validations:
18+
required: true
19+
- type: input
20+
attributes:
21+
label: Clap Version
22+
description: Can be found in Cargo.lock or Cargo.toml of your project (i.e. `grep -C1 clap Cargo.lock`). PLEASE DO NOT PUT "latest" HERE, use precise version. Put `master` (or other branch) if you're using the repo directly.
23+
validations:
24+
required: true
25+
- type: textarea
26+
attributes:
27+
label: Minimal reproducible code
28+
description: Please write a minimal complete program which has this bug. Do not point to an existing repository.
29+
value: |
30+
```rust
31+
fn main() {}
32+
```
33+
validations:
34+
required: true
35+
- type: textarea
36+
attributes:
37+
label: Steps to reproduce the bug with the above code
38+
description: A command like `cargo run -- options...` or multiple commands.
39+
validations:
40+
required: true
41+
- type: textarea
42+
attributes:
43+
label: Actual Behaviour
44+
description: When I do like *this*, *that* is happening and I think it shouldn't.
45+
validations:
46+
required: true
47+
- type: textarea
48+
attributes:
49+
label: Expected Behaviour
50+
description: I think *this* should happen instead.
51+
validations:
52+
required: true
53+
- type: textarea
54+
attributes:
55+
label: Additional Context
56+
description: Add any other context about the problem here.
57+
- type: textarea
58+
attributes:
59+
label: Debug Output
60+
description: |
61+
Compile clap with `debug` feature:
62+
63+
```toml
64+
[dependencies]
65+
clap = { version = "*", features = ["debug"] }
66+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Ask a question
4+
about: For support or brainstorming
5+
url: https://github.com/clap-rs/clap/discussions/new
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Feature request
2+
description: Suggest an idea for this project
3+
labels: 'C-enhancement'
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Please complete the following tasks
8+
options:
9+
- label: I have searched the [discussions](https://github.com/clap-rs/clap/discussions)
10+
required: true
11+
- label: I have searched the [open](https://github.com/clap-rs/clap/issues) and [rejected](https://github.com/clap-rs/clap/issues?q=is%3Aissue+label%3AS-wont-fix+is%3Aclosed) issues
12+
required: true
13+
- type: input
14+
attributes:
15+
label: Clap Version
16+
description: Can be found in Cargo.lock or Cargo.toml of your project (i.e. `grep clap Cargo.lock`). PLEASE DO NOT PUT "latest" HERE, use precise version. Put `master` (or other branch) if you're using the repo directly.
17+
validations:
18+
required: true
19+
- type: textarea
20+
attributes:
21+
label: Describe your use case
22+
description: Describe the problem you're trying to solve. This is not mandatory and we *do* consider features without a specific use case, but real problems have priority.
23+
validations:
24+
required: true
25+
- type: textarea
26+
attributes:
27+
label: Describe the solution you'd like
28+
description: Please explain what the wanted solution should look like. You are **strongly encouraged** to attach a snippet of (pseudo)code.
29+
validations:
30+
required: true
31+
- type: textarea
32+
attributes:
33+
label: Alternatives, if applicable
34+
description: A clear and concise description of any alternative solutions or features you've managed to come up with.
35+
- type: textarea
36+
attributes:
37+
label: Additional Context
38+
description: Add any other context about the feature request here.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!--
2+
Thanks for helping out!
3+
4+
Please link the appropriate issue from your PR.
5+
6+
If you don't have an issue, we'd recommend starting with one first so the PR can focus on the
7+
implementation (unless its an obvious bug or documentation fix that will have
8+
little conversation).
9+
-->
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
{
2+
schedule: [
3+
'before 5am on the first day of the month',
4+
],
5+
semanticCommits: 'enabled',
6+
commitMessageLowerCase: 'never',
7+
configMigration: true,
8+
dependencyDashboard: true,
9+
customManagers: [
10+
{
11+
customType: 'regex',
12+
fileMatch: [
13+
'^rust-toolchain\\.toml$',
14+
'Cargo.toml$',
15+
'clippy.toml$',
16+
'^Makefile$',
17+
'^tests/derive_ui.rs$',
18+
'\\.clippy.toml$',
19+
'^\\.github/workflows/ci.yml$',
20+
'^\\.github/workflows/rust-next.yml$',
21+
],
22+
matchStrings: [
23+
'STABLE.*?(?<currentValue>\\d+\\.\\d+(\\.\\d+)?)',
24+
'(?<currentValue>\\d+\\.\\d+(\\.\\d+)?).*?STABLE',
25+
],
26+
depNameTemplate: 'STABLE',
27+
packageNameTemplate: 'rust-lang/rust',
28+
datasourceTemplate: 'github-releases',
29+
},
30+
],
31+
packageRules: [
32+
{
33+
commitMessageTopic: 'Rust Stable',
34+
matchManagers: [
35+
'custom.regex',
36+
],
37+
matchDepNames: [
38+
'STABLE',
39+
],
40+
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version
41+
schedule: [
42+
'* * * * *',
43+
],
44+
automerge: true,
45+
},
46+
// Goals:
47+
// - Keep version reqs low, ignoring compatible normal/build dependencies
48+
// - Take advantage of latest dev-dependencies
49+
// - Rollup safe upgrades to reduce CI runner load
50+
// - Help keep number of versions down by always using latest breaking change
51+
// - Have lockfile and manifest in-sync
52+
{
53+
matchManagers: [
54+
'cargo',
55+
],
56+
matchDepTypes: [
57+
'build-dependencies',
58+
'dependencies',
59+
],
60+
matchCurrentVersion: '>=0.1.0',
61+
matchUpdateTypes: [
62+
'patch',
63+
],
64+
enabled: false,
65+
},
66+
{
67+
matchManagers: [
68+
'cargo',
69+
],
70+
matchDepTypes: [
71+
'build-dependencies',
72+
'dependencies',
73+
],
74+
matchCurrentVersion: '>=1.0.0',
75+
matchUpdateTypes: [
76+
'minor',
77+
'patch',
78+
],
79+
enabled: false,
80+
},
81+
{
82+
matchManagers: [
83+
'cargo',
84+
],
85+
matchDepTypes: [
86+
'dev-dependencies',
87+
],
88+
matchCurrentVersion: '>=0.1.0',
89+
matchUpdateTypes: [
90+
'patch',
91+
],
92+
automerge: true,
93+
groupName: 'compatible (dev)',
94+
},
95+
{
96+
matchManagers: [
97+
'cargo',
98+
],
99+
matchDepTypes: [
100+
'dev-dependencies',
101+
],
102+
matchCurrentVersion: '>=1.0.0',
103+
matchUpdateTypes: [
104+
'minor',
105+
'patch',
106+
],
107+
automerge: true,
108+
groupName: 'compatible (dev)',
109+
},
110+
],
111+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
description: "A full featured, fast Command Line Argument Parser for Rust"
5+
homepage: "docs.rs/clap"
6+
topics: "rust cli command-line argparse clap"
7+
has_issues: true
8+
has_projects: false
9+
has_wiki: false
10+
has_downloads: true
11+
default_branch: master
12+
13+
# Preference: people do clean commits
14+
allow_merge_commit: true
15+
# Backup in case we need to clean up commits
16+
allow_squash_merge: true
17+
# Not really needed
18+
allow_rebase_merge: false
19+
20+
allow_auto_merge: true
21+
delete_branch_on_merge: true
22+
23+
squash_merge_commit_title: "PR_TITLE"
24+
squash_merge_commit_message: "PR_BODY"
25+
merge_commit_message: "PR_BODY"
26+
27+
#labels:
28+
# - name: "A-builder"
29+
# description: "Area: Builder API"
30+
# color: '#f7e101'
31+
# - name: "A-derive"
32+
# description: "Area: #[derive]` macro API"
33+
# color: '#f7e101'
34+
# - name: "A-docs"
35+
# description: "Area: documentation, including docs.rs, readme, examples, etc..."
36+
# color: '#f7e101'
37+
# - name: "A-completion"
38+
# description: "Area: completion generator"
39+
# color: '#f7e101'
40+
# - name: "A-help"
41+
# description: "Area: Help or usage messages"
42+
# color: '#f7e101'
43+
# - name: "A-meta"
44+
# description: "Area: administrative question or tracking issue"
45+
# color: '#f7e101'
46+
# - name: "A-parsing"
47+
# description: "Area: Parser's logic and needs it changed somehow."
48+
# color: '#f7e101'
49+
# - name: "A-validators"
50+
# description: "Area: ArgMatches validation logic
51+
# color: '#f7e101'
52+
# - name: "C-bug"
53+
# description: "Category: Things not working as expected"
54+
# color: '#f5f1fd'
55+
# - name: "C-enhancement"
56+
# description: "Category: Raise on the bar on expectations"
57+
# color: '#f5f1fd'
58+
# - name: "C-tracking-issue"
59+
# description: "Category: A tracking issue for an unstable feature"
60+
# color: '#f5f1fd'
61+
# - name: "C-dependencies"
62+
# description: "Category: Updating dependencies"
63+
# color: '#f5f1fd'
64+
# - name: "E-easy"
65+
# description: "Call for participation: Experience needed to fix: Easy / not much"
66+
# color: '#02E10C'
67+
# - name: "E-medium"
68+
# description: "Call for participation: Experience needed to fix: Medium / intermediate"
69+
# color: '#02E10C'
70+
# - name: "E-hard"
71+
# description: "Call for participation: Experience needed to fix: Hard / a lot"
72+
# color: '#02E10C'
73+
# - name: "E-help-wanted"
74+
# description: "Call for participation: Help is requested to fix this issue."
75+
# color: '#02E10C'
76+
# - name: "S-triage"
77+
# description: "Status: New; needs maintainer attention."
78+
# color: '#D3DDDD'
79+
# - name: "S-blocked"
80+
# description: "Status: Blocked on something else such as an RFC or other implementation work."
81+
# color: '#D3DDDD'
82+
# - name: "S-experimental"
83+
# description: "Status: Ongoing experiment that does not require reviewing and won't be merged in its current state."
84+
# color: '#D3DDDD'
85+
# - name: "S-waiting-on-design"
86+
# description: "Status: Waiting on user-facing design to be resolved before implementing"
87+
# color: '#D3DDDD'
88+
# - name: "S-waiting-on-decision"
89+
# description: "Status: Waiting on a go/no-go before implementing"
90+
# color: '#D3DDDD'
91+
# - name: "S-waiting-on-mentor"
92+
# description: "Status: Needs elaboration on the details before doing a 'Call for participation'"
93+
# color: '#D3DDDD'
94+
# - name: "S-waiting-on-author"
95+
# description: "Status: This is awaiting some action (such as code changes or more information) from the author."
96+
# color: '#D3DDDD'
97+
# - name: "M-breaking-change"
98+
# description: "Meta: Implementing or merging this will introduce a breaking change."
99+
# color: '#E10C02'
100+
# - name: "M-unreviewed"
101+
# description: "Meta: Request for post-merge review."
102+
# color: '#E10C02'
103+
104+
# This serves more as documentation.
105+
# Branch protection API was replaced by rulesets but settings isn't updated.
106+
# See https://github.com/repository-settings/app/issues/825
107+
#
108+
# branches:
109+
# - name: master
110+
# protection:
111+
# required_pull_request_reviews: null
112+
# required_conversation_resolution: true
113+
# required_status_checks:
114+
# # Required. Require branches to be up to date before merging.
115+
# strict: false
116+
# contexts: ["CI", "Spell Check with Typos"]
117+
# enforce_admins: false
118+
# restrictions: null

0 commit comments

Comments
 (0)