-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
155 lines (131 loc) · 4.43 KB
/
Copy pathCargo.toml
File metadata and controls
155 lines (131 loc) · 4.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#:tombi toml-version = "v1.0.0"
[package]
name = "runner-run"
version = "0.25.1"
edition = "2024"
rust-version = "1.95"
description = "Universal project task runner"
documentation = "https://docs.rs/runner-run"
readme = "README.md"
homepage = "https://runner.kjanat.dev"
repository = "https://github.com/kjanat/runner"
license = "MIT"
keywords = ["automation", "build-tool", "cli", "task-runner"]
categories = ["command-line-utilities", "development-tools"]
build = "build.rs"
include = ["/CHANGELOG.md", "/LICENSE*", "/README.md", "/build.rs", "/man", "/schemas", "/src", "/tests"]
default-run = "runner"
autobins = false
[package.metadata]
authors = [{ name = "Kaj Kowalski", email = "info+runner@kajkowalski.nl" }]
schema-base = "https://kjanat.github.io/runner/schemas"
binstall = { pkg-url = "{repo}/releases/download/v{version}/runner-v{version}-{target}{archive-suffix}", pkg-fmt = "tgz", bin-dir = "{bin}{binary-ext}" }
npm = { name = "runner-run", subpkgscope = "@runner-run", bugs = { "url" = "https://github.com/kjanat/runner/issues" }, repository = { "type" = "git", "url" = "git+https://github.com/kjanat/runner.git" }, engines = { "node" = ">=18" } }
[lib]
name = "runner"
path = "src/lib.rs"
[[bin]]
name = "runner"
path = "src/main.rs"
[[bin]]
name = "run"
path = "src/bin/run.rs"
required-features = ["run"]
[dependencies]
actions-rs = "0.1"
anyhow = "1"
colored = "3"
deno_task_shell = "0.33"
json5 = "1"
semver = "1"
serde_json = "1"
shlex = "2"
terminal_size = "0.4"
unicode-width = "0.2"
yaml-rust2 = "0.11"
[dependencies.clap]
version = "4"
features = ["cargo", "derive", "env", "string", "wrap_help"]
[dependencies.clap_complete]
version = "4"
features = ["unstable-dynamic"]
[dependencies.clap_mangen]
version = "0.3"
optional = true
[dependencies.json-schema-sort]
version = "0.1"
default-features = false
optional = true
[dependencies.lsp-server]
version = "0.8"
optional = true
[dependencies.lsp-types]
version = "0.97"
optional = true
[dependencies.schemars]
version = "1.2"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.tokio]
version = "1"
features = ["io-util", "process", "rt", "signal", "time"]
[dependencies.toml]
version = "1.1"
default-features = false
features = ["display", "parse", "serde"]
[build-dependencies.serde]
version = "1"
features = ["derive"]
[build-dependencies.toml]
version = "1.1"
default-features = false
features = ["parse", "serde"]
[features]
default = ["lsp", "run"]
# Editor language server (`runner lsp`): hover, completion, and diagnostics for
# runner.toml. Pulls in `schema` to reuse field docs as the single source of truth.
lsp = ["dep:lsp-server", "dep:lsp-types", "schema"]
man = ["dep:clap_mangen"]
run = []
schema = ["dep:json-schema-sort", "dep:schemars"]
# Flip the deno self-exec policy to self-exec-first (default policy is
# `deno task` when deno is present, self-exec only as fallback). The
# self-exec engine itself is always compiled in.
unstable-deno-exec = []
[lints.clippy]
all = { level = "deny", priority = -1 }
cargo = { level = "deny", priority = -1 }
complexity = { level = "deny", priority = -1 }
correctness = { level = "deny", priority = -1 }
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
# individual
multiple_crate_versions = "allow"
redundant_pub_crate = "allow"
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_docs = "warn"
trivial_numeric_casts = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
private_intra_doc_links = "deny"
redundant_explicit_links = "warn"
unescaped_backticks = "warn"
[profile.release]
strip = true
lto = true