@@ -13,11 +13,24 @@ edition = "2024"
1313rust-version = " 1.91"
1414default-run = " sk"
1515
16- [package .metadata .wix ]
17- upgrade-guid = " 6DDAED06-EBE2-41C4-94F5-CB03F2A4B92E"
18- path-guid = " 05D1A327-19E0-4C82-B5EC-6B28E40C691B"
19- license = false
20- eula = false
16+ [lib ]
17+ name = " skim"
18+ path = " src/lib.rs"
19+
20+ [[bin ]]
21+ name = " sk"
22+ path = " src/bin/main.rs"
23+ required-features = [" cli" ]
24+
25+ [features ]
26+ # Default is destined to the CLI, not to library usage.
27+ default = [" cli" , " frizbee" ]
28+ # Everyting needed to use skim as a cli (argument parsing, shell integrations...). This should not be needed for most libraries.
29+ cli = [" dep:clap" , " dep:clap_complete" , " dep:shlex" , " dep:env_logger" , " dep:clap_mangen" ]
30+ # Include frizbee as a matching algorithm
31+ frizbee = [" dep:frizbee" ]
32+ # Enable gungraun (Valgrind-based) benchmarks
33+ gungraun = [" dep:gungraun" ]
2134
2235[profile .release ]
2336lto = true
@@ -34,64 +47,51 @@ inherits = "release"
3447debug = true
3548strip = false
3649
37-
38- [lib ]
39- name = " skim"
40- path = " src/lib.rs"
41-
42- [[bin ]]
43- name = " sk"
44- path = " src/bin/main.rs"
45- required-features = [" cli" ]
46-
4750[dependencies ]
4851ansi-to-tui = " 8.0.1"
49- assert_enum_variants = " = 0.1.2"
52+ assert_enum_variants = " 0.1.2"
5053clap = { version = " 4.6.1" , optional = true , features = [" cargo" , " derive" , " unstable-markdown" ] }
5154clap_complete = { version = " 4.6.0" , optional = true }
5255clap_complete_nushell = " 4.6.0"
53- clap_mangen = { version = " =0.3.0" , optional = true }
54- color-eyre = " =0.6.5"
56+ clap_mangen = { version = " 0.3.0" , optional = true }
57+ color-eyre = " 0.6.5"
58+ # Crossterm's version is selected by ratatui
5559crossterm = { version = " >=0.0.0" , features = [" event-stream" , " use-dev-tty" , " libc" ] }
56- derive_builder = " = 0.20.2"
60+ derive_builder = " 0.20.2"
5761derive_more = { version = " 2.1.1" , features = [" debug" , " eq" ] }
5862env_logger = { version = " 0.11.10" , optional = true , features = [" humantime" ] }
59- futures = " = 0.3.32"
63+ futures = " 0.3.32"
6064gungraun = { version = " 0.18.1" , optional = true }
6165indexmap = " 2.13.1"
6266interprocess = { version = " 2.4.0" , features = [" tokio" ] }
63- kanal = " = 0.1.1"
67+ kanal = " 0.1.1"
6468log = " 0.4.29"
6569memchr = " 2.8.0"
6670mimalloc = { version = " 0.1.48" , features = [" v3" ] }
6771nix = { version = " 0.31.2" , features = [" fs" , " poll" ] }
68- portable-pty = " = 0.9.0"
72+ portable-pty = " 0.9.0"
6973ratatui = " 0.30.0"
7074regex = " 1.12.3"
7175roff = " 1.1.1"
72- ron = " = 0.12.1"
76+ ron = " 0.12.1"
7377serde = { version = " 1.0.228" , features = [" derive" ] }
74- shell-quote = " = 0.7.2"
75- shlex = { version = " = 1.3.0" , optional = true }
78+ shell-quote = " 0.7.2"
79+ shlex = { version = " 1.3.0" , optional = true }
7680tempfile = " 3.27.0"
7781thiserror = " 2.0.18"
7882thread_local = " 1.1.9"
7983tokio = { version = " 1.51.0" , features = [" macros" , " net" , " rt-multi-thread" , " sync" , " time" , " tokio-macros" ] }
80- tokio-util = " = 0.7.18"
81- tui-term = " = 0.3.4"
82- unicode-display-width = " = 0.3.0"
83- unicode-normalization = " = 0.1.25"
84+ tokio-util = " 0.7.18"
85+ tui-term = " 0.3.4"
86+ unicode-display-width = " 0.3.0"
87+ unicode-normalization = " 0.1.25"
8488which = " 8.0.2"
8589
8690[target .'cfg(any(target_arch = "x86_64", target_arch = "aarch64"))' .dependencies ]
87- frizbee = { version = " =0.9.0" }
91+ frizbee = { version = " =0.9.0" , optional = true }
8892
89- [features ]
90- default = [" cli" ]
91- # Everyting needed to use skim as a cli (argument parsing, shell integrations...)
92- cli = [" dep:clap" , " dep:clap_complete" , " dep:shlex" , " dep:env_logger" , " dep:clap_mangen" ]
93- # Enable gungraun (Valgrind-based) benchmarks
94- gungraun = [" dep:gungraun" ]
93+ [build-dependencies ]
94+ cfg_aliases = " 0.2.1"
9595
9696[dev-dependencies ]
9797criterion = { version = " 0.8.2" , features = [" async_tokio" ] }
@@ -129,3 +129,9 @@ required-features = ["gungraun"]
129129name = " cli"
130130harness = false
131131bench = false
132+
133+ [package .metadata .wix ]
134+ upgrade-guid = " 6DDAED06-EBE2-41C4-94F5-CB03F2A4B92E"
135+ path-guid = " 05D1A327-19E0-4C82-B5EC-6B28E40C691B"
136+ license = false
137+ eula = false
0 commit comments