Skip to content

Commit 63ec0e3

Browse files
authored
chore: various fixes / clippy lints (#6)
- **chore: set msrv to 1.74** - **chore: move shared config to tui-widgets** - **chore: use workspace package metadata** - **fix: various clippy lints**
1 parent 2563207 commit 63ec0e3

36 files changed

+85
-1143
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
/Cargo.lock

tui-big-text/.markdownlint.yaml .markdownlint.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
no-inline-html:
22
allowed_elements:
3+
- h1
4+
- img
35
- br
46
- details
57
- summary

tui-big-text/CONTRIBUTING.md CONTRIBUTING.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Contribution guidelines
22

3-
First off, thank you for considering contributing to tui-big-text.
3+
First off, thank you for considering contributing to tui-widgets.
44

55
If your contribution is not straightforward, please first discuss the change you
66
wish to make by creating a new issue before making the change.
77

88
## Reporting issues
99

1010
Before reporting an issue on the
11-
[issue tracker](https://github.com/joshka/tui-big-text/issues),
11+
[issue tracker](https://github.com/joshka/tui-widgets/issues),
1212
please check that it has not already been reported by searching for some related
1313
keywords.
1414

@@ -55,8 +55,8 @@ A specification for adding human and machine readable meaning to commit messages
5555
This is no different than other Rust projects.
5656

5757
```shell
58-
git clone https://github.com/joshka/tui-big-text
59-
cd tui-big-text
58+
git clone https://github.com/joshka/tui-widgets
59+
cd tui-widgets
6060
cargo test
6161
```
6262

Cargo.lock

+10-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+10-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = ["Joshka"]
77
license = "MIT OR Apache-2.0"
88
repository = "https://github.com/joshka/tui-widgets"
99
edition = "2021"
10-
rust-version = "1.63.0"
10+
rust-version = "1.74.0"
1111
categories = ["command-line-interface", "gui"]
1212
keywords = ["cli", "console", "ratatui", "terminal", "tui"]
1313

@@ -26,6 +26,15 @@ rstest = "0.21.0"
2626
strum = { version = "0.26.1", features = ["derive"] }
2727
tokio = { version = "1.39" }
2828

29+
[lints.rust]
30+
unused = "warn"
31+
32+
[lints.clippy]
33+
# cargo = "warn" # currently fails because crossterm 0.27.0 uses multiple windows crate versions
34+
pedantic = "warn"
35+
nursery = "warn"
36+
37+
2938
[package]
3039
name = "tui-widgets"
3140
description = "A collection of useful widgets for building terminal user interfaces using Ratatui"

bacon.toml

+37-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ command = [
2323
need_stdout = false
2424

2525
[jobs.clippy]
26-
command = ["cargo", "clippy", "--all-targets", "--color", "always"]
26+
command = [
27+
"cargo",
28+
"clippy",
29+
"--workspace",
30+
"--all-features",
31+
"--all-targets",
32+
"--color",
33+
"always",
34+
]
2735
need_stdout = false
2836

2937
[jobs.test]
@@ -48,7 +56,7 @@ need_stdout = false
4856
[jobs.doc-open]
4957
command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"]
5058
need_stdout = false
51-
on_success = "back" # so that we don't open the browser at each change
59+
on_success = "job:doc" # so that we don't open the browser at each change
5260

5361
# You can run your application and have the result displayed in bacon,
5462
# *if* it makes sense for this crate. You can run an example the same
@@ -65,9 +73,35 @@ command = [
6573
need_stdout = true
6674
allow_warnings = true
6775

76+
[jobs.coverage]
77+
command = [
78+
"cargo",
79+
"llvm-cov",
80+
"--workspace",
81+
"--lcov",
82+
"--output-path",
83+
"target/lcov.info",
84+
"--color",
85+
"always",
86+
]
87+
88+
[jobs.format]
89+
command = ["cargo", "+nightly", "fmt", "--", "--check"]
90+
91+
[jobs.rdme]
92+
command = ["cargo", "rdme", "--force"]
93+
need_stdout = true
94+
95+
[jobs.vhs]
96+
command = ["vhs", "tui-prompts/examples/text.tape"]
97+
need_stdout = true
98+
6899
# You may define here keybindings that would be specific to
69100
# a project, for example a shortcut to launch a specific job.
70101
# Shortcuts to internal functions (scrolling, toggling, etc.)
71102
# should go in your personal global prefs.toml file instead.
72103
[keybindings]
73-
# alt-m = "job:my-job"
104+
shift-r = "job:rdme"
105+
f = "job:format"
106+
o = "job:coverage"
107+
v = "job:vhs"
File renamed without changes.
File renamed without changes.
File renamed without changes.

tui-big-text/.github/dependabot.yml

-15
This file was deleted.

tui-big-text/.github/workflows/check.yml

-12
This file was deleted.

tui-big-text/.github/workflows/release.yml

-17
This file was deleted.

tui-big-text/.github/workflows/test.yml

-11
This file was deleted.

tui-big-text/.gitignore

-2
This file was deleted.

0 commit comments

Comments
 (0)