on master help sign in
bat/Cargo.toml
100 lines 2.7 kB history raw
1[package]
2authors = ["David Peter <mail@david-peter.de>"]
3categories = ["command-line-utilities"]
4description = "A cat(1) clone with wings."
5homepage = "https://github.com/sharkdp/bat"
6license = "MIT/Apache-2.0"
7name = "bat"
8repository = "https://github.com/sharkdp/bat"
9version = "0.21.0"
10exclude = ["assets/syntaxes/*", "assets/themes/*"]
11build = "build.rs"
12edition = '2018'
14[features]
15default = ["application"]
16# Feature required for bat the application. Should be disabled when depending on
17# bat as a library.
18application = [
19 "bugreport",
20 "build-assets",
21 "git",
22 "minimal-application",
24# Mainly for developers that want to iterate quickly
25# Be aware that the included features might change in the future
26minimal-application = [
27 "atty",
28 "clap",
29 "dirs-next",
30 "paging",
31 "regex-onig",
32 "wild",
34git = ["git2"] # Support indicating git modifications
35paging = ["shell-words", "grep-cli"] # Support applying a pager on the output
36build-assets = ["syntect/yaml-load", "syntect/plist-load", "regex", "walkdir"]
38# You need to use one of these if you depend on bat as a library:
39regex-onig = ["syntect/regex-onig"] # Use the "oniguruma" regex engine
40regex-fancy = ["syntect/regex-fancy"] # Use the rust-only "fancy-regex" engine
42[dependencies]
43atty = { version = "0.2.14", optional = true }
44ansi_term = "^0.12.1"
45ansi_colours = "^1.1"
46bincode = "1.0"
47console = "0.15.0"
48flate2 = "1.0"
49once_cell = "1.10"
50thiserror = "1.0"
51wild = { version = "2.0", optional = true }
52content_inspector = "0.2.4"
53encoding = "0.2"
54shell-words = { version = "1.1.0", optional = true }
55unicode-width = "0.1.9"
56globset = "0.4"
57serde = { version = "1.0", features = ["derive"] }
58serde_yaml = "0.8"
59semver = "1.0"
60path_abs = { version = "0.5", default-features = false }
61clircle = "0.3"
62bugreport = { version = "0.5.0", optional = true }
63dirs-next = { version = "2.0.0", optional = true }
64grep-cli = { version = "0.1.6", optional = true }
65regex = { version = "1.5.5", optional = true }
66walkdir = { version = "2.0", optional = true }
67bytesize = { version = "1.1.0" }
69[dependencies.git2]
70version = "0.14"
71optional = true
72default-features = false
74[dependencies.syntect]
75version = "5.0.0"
76default-features = false
77features = ["parsing"]
79[dependencies.clap]
80version = "2.34"
81optional = true
82default-features = false
83features = ["suggestions", "color", "wrap_help"]
85[dev-dependencies]
86assert_cmd = "2.0.4"
87serial_test = "0.6.0"
88predicates = "2.1.1"
89wait-timeout = "0.2.0"
90tempfile = "3.3.0"
92[target.'cfg(unix)'.dev-dependencies]
93nix = { version = "0.24.1", default-features = false, features = ["term"] }
95[build-dependencies]
96clap = { version = "2.34", optional = true }
98[profile.release]
99lto = true
100codegen-units = 1