Skip to content

Commit c7e929e

Browse files
authored
Merge pull request #4752 from kevinmatthes/feature/cff
[Documentation] Create CITATION.cff
2 parents 8469554 + b8021a2 commit c7e929e

File tree

3 files changed

+37
-1
lines changed

3 files changed

+37
-1
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
contents: none
1515
name: CI
16-
needs: [test, check, docs, rustfmt, clippy]
16+
needs: [test, check, docs, rustfmt, clippy, cffconvert]
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Done
@@ -187,3 +187,15 @@ jobs:
187187
run: make clippy-full
188188
- name: Lint (release)
189189
run: make clippy-release
190+
cffconvert:
191+
name: cffconvert
192+
runs-on: ubuntu-latest
193+
steps:
194+
- name: Checkout repository
195+
uses: actions/checkout@v3
196+
with:
197+
persist-credentials: false
198+
- name: CFF validation
199+
uses: citation-file-format/[email protected]
200+
with:
201+
args: --validate

CITATION.cff

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Parser settings.
2+
cff-version: 1.2.0
3+
message: Please cite this crate using these information.
4+
5+
# Version information.
6+
date-released: 2023-02-28
7+
version: 4.1.8
8+
9+
# Project information.
10+
abstract: A full featured, fast Command Line Argument Parser for Rust
11+
authors:
12+
- alias: kbknapp
13+
family-names: Knapp
14+
given-names: Kevin B.
15+
- name: The Clap Community
16+
license:
17+
- Apache-2.0
18+
- MIT
19+
repository-artifact: https://crates.io/crates/clap
20+
repository-code: https://github.com/clap-rs/clap
21+
title: clap
22+
url: https://docs.rs/clap

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ pre-release-replacements = [
5757
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
5858
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
5959
{file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/clap-rs/clap/compare/{{tag_name}}...HEAD", exactly=1},
60+
{file="CITATION.cff", search="^date-released: ....-..-..", replace="date-released: {{date}}"},
61+
{file="CITATION.cff", search="^version: .+\\..+\\..+", replace="version: {{version}}"},
6062
]
6163

6264
[features]

0 commit comments

Comments
 (0)