11[workspace ]
22members = [" crates/*" ]
3+ resolver = " 2"
34
45[workspace .package ]
56version = " 0.2.21"
@@ -12,42 +13,12 @@ license = "MIT"
1213prek-consts = { path = " crates/prek-consts" , version = " 0.2.21" }
1314prek-pty = { path = " crates/prek-pty" , version = " 0.2.21" }
1415
15- rustix = { version = " 1.0.8" , features = [" pty" , " process" , " fs" , " termios" ] }
16- thiserror = { version = " 2.0.11" }
17- tokio = { version = " 1.47.1" , features = [" fs" , " process" , " rt" , " sync" , " macros" , " net" ] }
18- tracing = { version = " 0.1.40" }
19-
20- [package ]
21- name = " prek"
22- authors = [
" j178 <[email protected] >" ]
23- description = " Better `pre-commit`, re-engineered in Rust"
24- version = { workspace = true }
25- repository = { workspace = true }
26- homepage = { workspace = true }
27- edition = { workspace = true }
28- license = { workspace = true }
29-
30- default-run = " prek"
31-
32- [features ]
33- default = [" docker" ]
34- # Adds self-update functionality. This feature is only enabled for prek built binarys
35- # and should be left unselected when building prek for package managers.
36- self-update = [" dep:axoupdater" ]
37- # Enable the profiler for benchmarking
38- profiler = [" dep:pprof" , " pprof/flamegraph" ]
39- # Enable docker related tests in integration tests
40- docker = []
41-
42- [dependencies ]
43- prek-consts = { workspace = true }
44-
4516anstream = { version = " 0.6.15" }
4617anstyle-query = { version = " 1.1.5" }
4718anyhow = { version = " 1.0.86" }
4819async-compression = { version = " 0.4.18" , features = [" gzip" , " xz" , " tokio" ] }
4920async_zip = { version = " 0.0.17" , package = " astral_async_zip" , features = [" deflate" , " tokio" ] }
50- axoupdater = { version = " 0.9.0" , default-features = false , features = [" github_releases" ], optional = true }
21+ axoupdater = { version = " 0.9.0" , default-features = false , features = [" github_releases" ] }
5122bstr = { version = " 1.11.0" }
5223cargo_metadata = { version = " 0.23.1" }
5324clap = { version = " 4.5.16" , features = [" derive" , " env" , " string" , " wrap_help" ] }
@@ -66,17 +37,20 @@ indoc = { version = "2.0.5" }
6637itertools = { version = " 0.14.0" }
6738lazy-regex = { version = " 3.4.2" }
6839levenshtein = { version = " 1.0.5" }
40+ libc = { version = " 0.2.164" }
6941# Enable static linking for liblzma
7042# This is required for the `xz` feature in `async-compression`
7143liblzma = { version = " 0.4.5" , features = [" static" ] }
7244memchr = { version = " 2.7.5" }
7345owo-colors = { version = " 4.1.0" }
7446path-clean = { version = " 1.0.1" }
47+ pprof = { version = " 0.15.0" }
7548quick-xml = { version = " 0.38" }
7649rand = { version = " 0.9.0" }
7750rayon = { version = " 1.10.0" }
7851reqwest = { version = " 0.12.9" , default-features = false , features = [" http2" , " stream" , " json" , " rustls-tls-native-roots" , " rustls-tls-webpki-roots" ] }
7952rustc-hash = { version = " 2.1.1" }
53+ rustix = { version = " 1.0.8" , features = [" pty" , " process" , " fs" , " termios" ] }
8054same-file = { version = " 1.0.6" }
8155semver = { version = " 1.0.24" , features = [" serde" ] }
8256serde = { version = " 1.0.210" , features = [" derive" ] }
@@ -88,55 +62,26 @@ smallvec = { version = "1.15.1" }
8862target-lexicon = { version = " 0.13.0" }
8963tempfile = { version = " 3.13.0" }
9064textwrap = { version = " 0.16.1" }
91- thiserror = { workspace = true }
92- tokio = { workspace = true }
65+ thiserror = { version = " 2.0.11 " }
66+ tokio = { version = " 1.47.1 " , features = [ " fs " , " process " , " rt " , " sync " , " macros " , " net " ] }
9367tokio-tar = { version = " 0.5.1" , package = " astral-tokio-tar" }
9468tokio-util = { version = " 0.7.13" }
9569toml = { version = " 0.9.5" , default-features = false , features = [" fast_hash" , " parse" , " preserve_order" , " serde" ] }
96- tracing = { workspace = true }
70+ tracing = { version = " 0.1.40 " }
9771tracing-subscriber = { version = " 0.3.20" , features = [" env-filter" ] }
9872unicode-width = { version = " 0.2.0" }
9973walkdir = { version = " 2.5.0" }
10074which = { version = " 8.0.0" }
10175
102- [target .'cfg(unix)' .dependencies ]
103- prek-pty = { workspace = true }
104-
105- libc = { version = " 0.2.164" }
106- pprof = { version = " 0.15.0" , optional = true }
107-
108- [build-dependencies ]
109- fs-err = { version = " 3.1.0" }
110-
111- [dev-dependencies ]
76+ # dev-dependencies
11277assert_cmd = { version = " 2.0.16" , features = [" color" ] }
11378assert_fs = { version = " 1.1.2" }
114- etcetera = { version = " 0.11.0" }
11579insta = { version = " 1.40.0" , features = [" filters" ] }
11680insta-cmd = { version = " 0.6.0" }
11781markdown = { version = " 1.0.0" }
11882predicates = { version = " 3.1.2" }
11983pretty_assertions = { version = " 1.4.1" }
12084regex = { version = " 1.11.0" }
121- tempfile = { version = " 3.13.0" }
122-
123- [package .metadata .binstall ]
124- pkg-url = " { repo }/releases/download/v{ version }/{ name }-{ target }{ archive-suffix }"
125- pkg-fmt = " tgz"
126-
127- [package .metadata .binstall .overrides .x86_64-pc-windows-msvc ]
128- pkg-fmt = " zip"
129- pkg-url = " { repo }/releases/download/v{ version }/{ name }-{ target }.zip"
130-
131- [package .metadata .binstall .overrides .aarch64-pc-windows-msvc ]
132- pkg-fmt = " zip"
133- pkg-url = " { repo }/releases/download/v{ version }/{ name }-{ target }.zip"
134-
135- [package .metadata .cargo-shear ]
136- ignored = [" liblzma" ]
137-
138- [lints ]
139- workspace = true
14085
14186[workspace .lints .rust ]
14287dead_code = " allow"
@@ -175,6 +120,9 @@ edn = "edn"
175120styl = " styl"
176121jod = " jod"
177122
123+ [workspace .metadata .cargo-shear ]
124+ ignored = [" liblzma" ]
125+
178126[profile .profiling ]
179127inherits = " release"
180128strip = false
0 commit comments