-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
51 lines (44 loc) · 1.46 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
[package]
name = "devscripts"
version = "0.1.0-alpha.2"
edition = "2021"
authors = ["einfachIrgendwer0815"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/einfachIrgendwer0815/devscripts"
description = "Run path-specific (shell) scripts without the need to modify `PATH`."
exclude = ["*", "!src/**", "!completions/**", "!LICENSE*", "!NOTICE", "!README"]
rust-version = "1.81.0"
[[bin]]
name = "dev"
required-features = ["application"]
[features]
default = ["application"]
# Should be disabled when depending on devscripts as a library
# (no-default-features = true).
application = ["clap", "anyhow", "serde", "git-version"]
# Used for builds on docs.rs to enable #![features(doc_auto_cfg)] (internal)
docsrs = []
# Enable implementations of serde traits on certain types.
serde = ["dep:serde", "dep:figment"]
[dependencies]
anyhow = { version = "1.0.89", optional = true }
clap = { version = "4.5.17", features = ["cargo"], optional = true }
git-version = { version = "0.3.9", optional = true }
home = { version = "0.5.9" }
serde = { version = "1.0.210", optional = true, features = ["derive"] }
thiserror = "1.0.63"
[dependencies.figment]
version = "0.10.19"
features = ["env", "toml"]
optional = true
[dependencies.git2]
version = "0.19.0"
default-features = false
features = ["vendored-libgit2"]
[package.metadata.docs.rs]
no-default-features = true # to exclude `application`
features = ["docsrs", "serde"]
[profile.release]
lto = true
strip = true
codegen-units = 1