Skip to content

Commit 2904e8f

Browse files
committed
Init clippy::pedantic and bacon.toml use
1 parent 6019885 commit 2904e8f

File tree

2 files changed

+170
-72
lines changed

2 files changed

+170
-72
lines changed

bacon.toml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# This is a configuration file for the bacon tool
2+
#
3+
# Bacon repository: https://github.com/Canop/bacon
4+
# Complete help on configuration: https://dystroy.org/bacon/config/
5+
# You can also check bacon's own bacon.toml file
6+
# as an example: https://github.com/Canop/bacon/blob/main/bacon.toml
7+
8+
default_job = "clippy"
9+
10+
[jobs.check]
11+
command = ["cargo", "check", "--color", "always"]
12+
need_stdout = false
13+
14+
[jobs.check-all]
15+
command = ["cargo", "check", "--all-targets", "--color", "always"]
16+
need_stdout = false
17+
18+
[jobs.clippy]
19+
command = [
20+
"cargo", "clippy",
21+
"--all-targets",
22+
"--color", "always",
23+
"--",
24+
"--deny=clippy::pedantic"
25+
]
26+
need_stdout = false
27+
28+
# This job lets you run
29+
# - all tests: bacon test
30+
# - a specific test: bacon test -- config::test_default_files
31+
# - the tests of a package: bacon test -- -- -p config
32+
[jobs.test]
33+
command = [
34+
"cargo", "test", "--color", "always",
35+
"--", "--color", "always", # see https://github.com/Canop/bacon/issues/124
36+
]
37+
need_stdout = true
38+
39+
[jobs.doc]
40+
command = ["cargo", "doc", "--color", "always", "--no-deps"]
41+
need_stdout = false
42+
43+
# If the doc compiles, then it opens in your browser and bacon switches
44+
# to the previous job
45+
[jobs.doc-open]
46+
command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"]
47+
need_stdout = false
48+
on_success = "back" # so that we don't open the browser at each change
49+
50+
# You can run your application and have the result displayed in bacon,
51+
# *if* it makes sense for this crate. You can run an example the same
52+
# way. Don't forget the `--color always` part or the errors won't be
53+
# properly parsed.
54+
[jobs.run]
55+
command = [
56+
"cargo", "run",
57+
"--color", "always",
58+
# put launch parameters for your program behind a `--` separator
59+
]
60+
need_stdout = true
61+
allow_warnings = true
62+
63+
# This parameterized job runs the example of your choice, as soon
64+
# as the code compiles.
65+
# Call it as
66+
# bacon ex -- my-example
67+
[jobs.ex]
68+
command = ["cargo", "run", "--color", "always", "--example"]
69+
allow_warnings = true
70+
need_stdout = true
71+
72+
# You may define here keybindings that would be specific to
73+
# a project, for example a shortcut to launch a specific job.
74+
# Shortcuts to internal functions (scrolling, toggling, etc.)
75+
# should go in your personal global prefs.toml file instead.
76+
[keybindings]
77+
# alt-m = "job:my-job"

0 commit comments

Comments
 (0)