Skip to content

Commit 8a58e04

Browse files
committed
chore: Update from _rust template
2 parents 16804c1 + d159ec5 commit 8a58e04

File tree

8 files changed

+20
-12
lines changed

8 files changed

+20
-12
lines changed

.github/renovate.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
matchManagers: [
3333
'custom.regex',
3434
],
35-
matchPackageNames: [
35+
matchDepNames: [
3636
'STABLE',
3737
],
3838
extractVersion: '^(?<version>\\d+\\.\\d+)', // Drop the patch version

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ jobs:
144144
run: cargo install sarif-fmt --locked
145145
- name: Check
146146
run: >
147-
cargo clippy --workspace --all-features --all-targets --message-format=json -- -D warnings --allow deprecated
147+
cargo clippy --workspace --all-features --all-targets --message-format=json
148148
| clippy-sarif
149149
| tee clippy-results.sarif
150150
| sarif-fmt

CONTRIBUTING.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ appreciate any level you're willing to do.
77

88
Need some new functionality to help? You can let us know by opening an
99
[issue][new issue]. It's helpful to look through [all issues][all issues] in
10-
case its already being talked about.
10+
case it's already being talked about.
1111

1212
## Bug Reports
1313

1414
Please let us know about what problems you run into, whether in behavior or
1515
ergonomics of API. You can do this by opening an [issue][new issue]. It's
16-
helpful to look through [all issues][all issues] in case its already being
16+
helpful to look through [all issues][all issues] in case it's already being
1717
talked about.
1818

1919
## Pull Requests
2020

21-
Looking for an idea? Check our [issues][issues]. If it's look more open ended,
21+
Looking for an idea? Check our [issues][issues]. If the issue looks open ended,
2222
it is probably best to post on the issue how you are thinking of resolving the
2323
issue so you can get feedback early in the process. We want you to be
2424
successful and it can be discouraging to find out a lot of re-work is needed.
@@ -41,15 +41,18 @@ As a heads up, we'll be running your PR through the following gauntlet:
4141
Not everything can be checked automatically though.
4242

4343
We request that the commit history gets cleaned up.
44+
4445
We ask that commits are atomic, meaning they are complete and have a single responsibility.
45-
PRs should tell a cohesive story, with test and refactor commits that keep the
46+
A complete commit should build, pass tests, update documentation and tests, and not have dead code.
47+
48+
PRs should tell a cohesive story, with refactor and test commits that keep the
4649
fix or feature commits simple and clear.
4750

4851
Specifically, we would encourage
4952
- File renames be isolated into their own commit
50-
- Add tests in a commit before their feature or fix, showing the current behavior.
53+
- Add tests in a commit before their feature or fix, showing the current behavior (i.e. they should pass).
5154
The diff for the feature/fix commit will then show how the behavior changed,
52-
making it clearer to reviewrs and the community and showing people that the
55+
making the commit's intent clearer to reviewers and the community, and showing people that the
5356
test is verifying the expected state.
5457
- e.g. [clap#5520](https://github.com/clap-rs/clap/pull/5520)
5558

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ rc_mutex = "warn"
7171
redundant_feature_names = "warn"
7272
ref_option_ref = "warn"
7373
rest_pat_in_fully_bound_structs = "warn"
74+
result_large_err = "allow"
7475
same_functions_in_if_condition = "warn"
7576
self_named_module_files = "warn"
7677
semicolon_if_nothing_returned = "warn"
@@ -100,7 +101,7 @@ include.workspace = true
100101

101102
[package.metadata.docs.rs]
102103
all-features = true
103-
rustdoc-args = ["--cfg", "docsrs"]
104+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
104105

105106
[package.metadata.release]
106107
pre-release-replacements = [

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ at your option.
1919

2020
Unless you explicitly state otherwise, any contribution intentionally
2121
submitted for inclusion in the work by you, as defined in the Apache-2.0
22-
license, shall be dual licensed as above, without any additional terms or
22+
license, shall be dual-licensed as above, without any additional terms or
2323
conditions.
2424

2525
[Crates.io]: https://crates.io/crates/completest

crates/completest-nu/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include.workspace = true
1212

1313
[package.metadata.docs.rs]
1414
all-features = true
15-
rustdoc-args = ["--cfg", "docsrs"]
15+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
1616

1717
[package.metadata.release]
1818
pre-release-replacements = [

crates/completest-pty/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include.workspace = true
1212

1313
[package.metadata.docs.rs]
1414
all-features = true
15-
rustdoc-args = ["--cfg", "docsrs"]
15+
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]
1616

1717
[package.metadata.release]
1818
pre-release-replacements = [

src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
#![warn(clippy::print_stderr)]
99
#![warn(clippy::print_stdout)]
1010

11+
#[doc = include_str!("../README.md")]
12+
#[cfg(doctest)]
13+
pub struct ReadmeDoctests;
14+
1115
/// Terminal that shell's will run completions in
1216
#[derive(Debug)]
1317
pub struct Term {

0 commit comments

Comments
 (0)