-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCargo.toml
90 lines (73 loc) · 2.72 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
[package]
name = "tomlq"
version = "0.2.2"
authors = [
"Natalia Maximo <iam@natalia.dev>",
"James Munns <james.munns@gmail.com>",
]
edition = "2021"
license = "MIT"
repository = "https://github.com/cryptaliagy/tomlq"
description = "A tool for obtaining information from a TOML file on the command line"
[dependencies]
toml = "0.8"
clap = { version = "4.5", features = [
"derive",
"usage",
"help",
], optional = true }
colored = { version = "3.0.0", optional = true }
thiserror = "2.0.11"
console = { version = "0.15.10", features = [
"windows-console-colors",
], optional = true }
anyhow = { version = "1.0.95", features = ["backtrace"], optional = true }
bat = { version = "0.25.0", optional = true, default-features = false, features = [
"build-assets",
"regex-fancy",
] }
serde = "1.0.217"
[dependencies.serde_json]
version = "1.0.135"
features = ["indexmap", "preserve_order", "raw_value", "unbounded_depth"]
optional = true
[features]
default = ["json", "bin"]
json = ["dep:serde_json"]
# Syntax highlighting feature for the tq CLI -- optional, disabled by default.
syntax-highlighting = ["bin", "dep:bat", "dep:console"]
bin = ["dep:clap", "dep:anyhow"]
# THIS FEATURE IS FOR THE PREVIOUS VERSION OF TOMLQ AND IS NOT USED BY THE TQ BINARY.
# IT WILL BE REMOVED IN A FUTURE RELEASE.
color = ["dep:colored"]
[lib]
name = "tq"
test = true
doctest = true
doc = true
[[bin]]
name = "tq"
test = false
required-features = ["bin"]
[package.metadata.binstall]
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.amd64{ archive-suffix }"
[package.metadata.binstall.overrides.aarch64-unknown-linux-gnu]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.arm64{ archive-suffix }"
[package.metadata.binstall.overrides.armv7-unknown-linux-gnueabi]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.armv7{ archive-suffix }"
[package.metadata.binstall.overrides.armv7-unknown-linux-gnueabihf]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.armv7hf{ archive-suffix }"
[package.metadata.binstall.overrides.x86_64-unknown-linux-musl]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.amd64{ archive-suffix }"
[package.metadata.binstall.overrides.aarch64-unknown-linux-musl]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.arm64{ archive-suffix }"
[package.metadata.binstall.overrides.armv7-unknown-linux-musleabi]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.armv7{ archive-suffix }"
[package.metadata.binstall.overrides.armv7-unknown-linux-musleabihf]
pkg-url = "{ repo }/releases/download/{ version }/{ name }.armv7hf{ archive-suffix }"
[profile.release]
strip = true
opt-level = "z"
lto = true