-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
104 lines (88 loc) · 2.4 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
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
[package]
name = "flake-edit"
description = "Edit your flake inputs with ease."
version = "0.0.2"
edition = "2021"
keywords = ["nix", "flake", "terminal", "cli"]
categories = ["command-line-utilities"]
authors = ["Alexander Kenji Berthold"]
readme = "README.md"
license = "MIT"
repository = "https://github.com/a-kenji/flake-edit"
documentation = "https://github.com/a-kenji/flake-edit"
homepage = "https://github.com/a-kenji/flake-edit"
include = ["src/**/*", "LICENSE", "README.md", "build.rs"]
[[bin]]
name = "flake-edit"
[workspace]
resolver = "2"
members = ["."]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["application"]
application = [
"clap",
"write",
"assets",
"anyhow",
"diffy",
"tracing-subscriber",
"serde_json",
]
write = ["ropey"]
assets = ["clap_complete", "clap_complete_nushell", "roff", "clap_mangen"]
[dependencies]
anyhow = { version = "1.0.92", optional = true }
clap = { version = "4.5.20", optional = true, features = ["derive"] }
color-eyre = "0.6.3"
diffy = { version = "0.4.0", optional = true }
directories = "5.0.1"
nix-uri = "0.1.8"
reqwest = { version = "0.12.9", features = ["blocking"] }
rnix = "0.11.0"
ropey = { version = "1.6.1", optional = true }
semver = "1.0.23"
serde = "1.0.214"
serde_json = { version = "1.0.132", optional = true }
thiserror = "1.0.65"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = [
"time",
"std",
"fmt",
"env-filter",
], optional = true }
[build-dependencies]
clap = { version = "4.5.20", features = ["derive"], optional = true }
clap_complete = { version = "4.5.36", features = [], optional = true }
clap_complete_nushell = { version = "4.5.4", optional = true }
clap_mangen = { version = "0.2.24", features = [], optional = true }
roff = { version = "0.2.2", optional = true }
[[bench]]
name = "benches"
path = "benches/benches.rs"
harness = false
[[bench]]
name = "divan"
path = "benches/divan.rs"
harness = false
[profile.release]
lto = true
codegen-units = 1
opt-level = 'z'
strip = true
[profile.dev]
incremental = true
lto = "thin"
# Set this to 1 or 2 to get more useful backtraces in debugger.
debug = false
[profile.dev.package.insta]
opt-level = 3
[profile.dev.package.similar]
opt-level = 3
[profile.dev.package.backtrace]
opt-level = 3
[dev-dependencies]
criterion = "0.5.1"
divan = "0.1.3"
insta = { version = "1.41.1", features = ["yaml"] }