-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
42 lines (36 loc) · 1.28 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
[package]
name = "parseargs"
version = "0.2.0"
edition = "2021"
authors = ["Ralf Schandl"]
description = "A command line options parser for shell scripts"
license = "MIT"
homepage = "https://rakus.github.io/parseargs/"
repository = "https://github.com/rakus/parseargs"
[profile.release]
opt-level = 'z' # Optimize for size
lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
#panic = 'abort' # Abort on panic
strip = true # Strip symbols from binary
[dependencies]
clap = { version = "4.3.0", features = ["derive"] }
[dev-dependencies]
assert_cmd = "2.0.12"
predicates = "3.0.3"
[package.metadata.generate-rpm]
assets = [
{ source = "target/release/parseargs", dest = "/usr/bin/parseargs", mode = "755" },
{ source = "LICENSE", dest = "/usr/share/doc/parseargs/", mode = "644", doc = true },
{ source = "target/user-doc/parseargs.1.gz", dest = "/usr/share/man/man1/", mode = "644", doc = true },
]
[package.metadata.deb]
license-file = "LICENSE"
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
[ "target/release/parseargs", "/usr/bin/", "755" ],
[ "LICENSE", "/usr/share/doc/parseargs/", "644" ],
[ "target/user-doc/parseargs.1.gz", "/usr/share/man/man1/", "644" ],
]