-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
64 lines (54 loc) · 2.36 KB
/
Cargo.toml
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
[package]
name = "project-below"
description = "Quickly find or run commands in many projects"
version = "1.2.0"
license = "MIT"
repository = "https://github.com/EdJoPaTo/project-below"
authors = ["EdJoPaTo <[email protected]>"]
edition = "2021"
rust-version = "1.70"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
pedantic = "warn"
nursery = "warn"
[profile.release]
# See https://doc.rust-lang.org/cargo/reference/profiles.html
codegen-units = 1
lto = true
[build-dependencies]
clap = { version = "4", features = ["deprecated", "derive"] }
clap_complete = "4"
clap_mangen = "0.2"
[dependencies]
clap = { version = "4", features = ["deprecated", "derive", "wrap_help"] }
crossbeam-channel = "0.5"
globset = "0.4"
ignore = "0.4"
pathdiff = "0.2"
# https://crates.io/crates/cargo-deb
[package.metadata.deb]
depends = ""
assets = [
["target/release/project-below", "/usr/bin/", "755"],
["CHANGELOG.md", "/usr/share/doc/project-below/", "644"],
["LICENSE", "/usr/share/licenses/project-below/", "644"],
["README.md", "/usr/share/doc/project-below/", "644"],
["target/completions/project-below.bash", "/usr/share/bash-completion/completions/project-below", "644"],
["target/completions/project-below.fish", "/usr/share/fish/completions/", "644"],
["target/completions/_project-below", "/usr/share/zsh/site-functions/", "644"],
["target/manpages/*", "/usr/share/man/man1/", "644"],
]
# https://crates.io/crates/cargo-generate-rpm
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/project-below", dest = "/usr/bin/", mode = "755" },
{ source = "CHANGELOG.md", dest = "/usr/share/doc/project-below/", mode = "644", doc = true },
{ source = "LICENSE", dest = "/usr/share/licenses/project-below/", mode = "644", doc = true },
{ source = "README.md", dest = "/usr/share/doc/project-below/", mode = "644", doc = true },
{ source = "target/completions/project-below.bash", dest = "/usr/share/bash-completion/completions/project-below", mode = "644" },
{ source = "target/completions/project-below.fish", dest = "/usr/share/fish/vendor_completions.d/", mode = "644" },
{ source = "target/completions/_project-below", dest = "/usr/share/zsh/site-functions/", mode = "644" },
{ source = "target/manpages/*", dest = "/usr/share/man/man1/", mode = "644", doc = true },
]