-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathCargo.toml
106 lines (92 loc) · 2.9 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
105
106
[package]
name = "sheldon"
version = "0.8.0"
authors = ["Ross MacArthur <[email protected]>"]
edition = "2021"
rust-version = "1.70"
description = "Fast, configurable, shell plugin manager."
documentation = "https://sheldon.cli.rs"
readme = "README.md"
repository = "https://github.com/rossmacarthur/sheldon"
license = "MIT OR Apache-2.0"
keywords = ["shell", "plugin", "manager", "zsh", "bash"]
categories = ["command-line-utilities"]
build = "build.rs"
include = ["src/**/*", "LICENSE-*", "README.md", "build.rs"]
[profile.release]
strip = "symbols"
[profile.compact]
inherits = "release"
opt-level = "s"
lto = true
panic = "abort"
codegen-units = 1
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ version }/sheldon-{ version }-{ target }.tar.gz"
[dependencies]
anyhow = "1.0.86"
casual = "0.2.0"
clap_complete = "4.4.10"
constcat = "0.5.0"
curl = "0.4.46"
fmutex = "0.1.0"
git2 = "0.20.0"
globwalk = "0.9.1"
home = "0.5.9"
indexmap = { version = "2.4.0", features = ["rayon", "serde"] }
itertools = "0.13.0"
maplit = "1.0.2"
once_cell = "1.19.0"
rayon = "1.10.0"
regex-macro = "0.2.0"
serde = { version = "1.0.209", features = ["derive"] }
thiserror = "1.0.63"
toml = { version = "0.8.19", features = ["preserve_order"] }
toml_edit = "0.22.20"
upon = { version = "0.8.1", default-features = false, features = ["serde", "filters"] }
url = { version = "2.5.2", features = ["serde"] }
walkdir = "2.5.0"
which = { version = "6.0.3", default-features = false }
yansi = "1.0.1"
[dependencies.clap]
version = "4.4.18"
default-features = false
features = [
"std", "help", "usage", "error-context", "suggestions", # default excluding "color"
"cargo", "env", "derive" # optional
]
[build-dependencies]
anyhow = "1.0.86"
[dev-dependencies]
goldie = "0.5.0"
pretty_assertions = "1.4.0"
tempfile = "3.12.0"
[features]
# By default vendor libgit2 since we rely on some modern features.
default = ["vendored-libgit2"]
# Vendor and statically link curl, libgit2, and openssl
vendored = ["vendored-curl", "vendored-libgit2", "vendored-openssl"]
# Vendor and statically link curl
vendored-curl = ["curl/static-curl"]
# Vendor and statically link libgit2
#
# Disabling this will not force the usage of the system libgit2, you can do that
# using LIBGIT2_NO_VENDOR=1 which will error at compile time if the system
# libgit2 is not a high enough version.
vendored-libgit2 = ["git2/vendored-libgit2"]
# Vendor and statically link openssl
#
# Disabling this will not force the usage of the system OpenSSL you can do that
# using OPENSSL_NO_VENDOR=1
vendored-openssl = ["git2/vendored-openssl", "curl/static-ssl"]
[lints.rust]
unknown_lints = "allow"
elided_lifetimes_in_paths = "warn"
let_underscore_drop = "warn"
macro_use_extern_crate = "warn"
meta_variable_misuse = "warn"
unsafe_op_in_unsafe_fn = "warn"
[lints.clippy]
if_not_else = "warn"
items_after_statements = "warn"
semicolon_if_nothing_returned = "warn"