Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
107 lines (97 loc) · 3.71 KB
/
Copy pathCargo.toml
File metadata and controls
107 lines (97 loc) · 3.71 KB
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
107
[package]
name = "vivace"
version = "0.21.0"
edition = "2024"
rust-version = "1.91"
description = "Fast Composer-compatible PHP package manager"
license = "GPL-3.0-or-later"
repository = "https://github.com/svandragt/vivace"
readme = "README.md"
keywords = ["composer", "php", "package-manager", "dependencies"]
categories = ["command-line-utilities", "development-tools"]
# An allowlist, not an exclude: the published crate is the binary's own
# sources and nothing else. `tests/fixtures` (9.6M), `bench` (62M) and
# `compat` (78M) would otherwise dominate the tarball. The `include_str!`s
# that reach into `tests/fixtures` all sit in `#[cfg(test)]` blocks, which a
# consumer never compiles; `src/autoload/templates` and `src/spdx-licenses.json`
# are inside `src` and ship with it.
include = ["/src/**", "/README.md", "/LICENSE"]
[[bin]]
name = "viv"
path = "src/main.rs"
[[bin]]
name = "composer"
path = "src/bin/composer.rs"
[lints.rust]
unsafe_code = "warn"
unreachable_pub = "warn"
[lints.clippy]
pedantic = { level = "warn", priority = -2 }
module_name_repetitions = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
too_many_lines = "allow"
must_use_candidate = "allow"
print_stdout = "warn"
print_stderr = "warn"
dbg_macro = "warn"
exit = "warn"
[dependencies]
anyhow = "1.0.104"
bzip2-rs = "0.1.2"
filetime = "0.2.29"
clap = { version = "4.6.6", features = ["derive"] }
clap_complete = "4.6"
clap_mangen = "0.3"
flate2 = { version = "1.1.10", default-features = false, features = ["rust_backend"] }
fs-err = "3.3.1"
futures = "0.3.34"
md5 = "0.8.1"
regex = "1.13.1"
reqwest = { version = "0.13.4", default-features = false, features = ["rustls", "http2", "stream", "gzip", "form"] }
semver-php = "0.1.0"
serde = { version = "1.0.229", features = ["derive"] }
serde_json = { version = "1.0.151", features = ["preserve_order", "raw_value"] }
sha1 = "0.11.0"
sha2 = "0.11.0"
tar = { version = "0.4.46", default-features = false }
tempfile = "3.27.0"
tokio = { version = "1.53.1", features = ["full"] }
tracing = "0.1.44"
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] }
zip = { version = "8.6.0", default-features = false, features = ["deflate"] }
xxhash-rust = { version = "0.8.18", features = ["xxh3"] }
toml = "1.1.6"
[package.metadata.deb]
maintainer = "Sander van Dragt <sander@vandragt.com>"
depends = "$auto"
section = "devel"
priority = "optional"
assets = [
["target/release/viv", "usr/bin/", "755"],
["README.md", "usr/share/doc/vivace/README.md", "644"],
# stage/ is filled by the `assets` job in release.yml (#335, #336).
["stage/man/*.1", "usr/share/man/man1/", "644"],
["stage/completions/viv", "usr/share/bash-completion/completions/viv", "644"],
["stage/completions/_viv", "usr/share/zsh/vendor-completions/_viv", "644"],
["stage/completions/viv.fish", "usr/share/fish/vendor_completions.d/viv.fish", "644"],
]
[package.metadata.binstall]
pkg-url = "https://github.com/svandragt/vivace/releases/download/v{ version }/vivace-v{ version }-{ target }.tar.gz"
bin-dir = "vivace-v{ version }-{ target }/{ bin }"
pkg-fmt = "tgz"
[dev-dependencies]
assert_cmd = "2.2.2"
insta = { version = "1.48.0", features = ["filters"] }
predicates = "3.1.4"
# Full DWARF in ~50 test binaries costs ~2 GB per commit; line tables keep file:line in backtraces.
[profile.dev]
debug = "line-tables-only"
# Tests spend their time in dependency code (zip, serde_json, regex): with
# dependencies unoptimised the two slowest unit tests took 50 s each on a
# CI runner and set the length of every job (#195). This optimises only
# dependencies, so the crate's own code keeps full debug info and fast
# incremental builds, and rust-cache stores the optimised dependency
# artifacts once.
[profile.dev.package."*"]
opt-level = 2