xh/Cargo.toml
2023-10-22 20:04:02 +08:00

112 lines
3.4 KiB
TOML

[package]
name = "xh"
version = "0.19.3"
authors = ["ducaale <sharaf.13@hotmail.com>"]
edition = "2021"
rust-version = "1.64.0"
license = "MIT"
description = "Friendly and fast tool for sending HTTP requests"
documentation = "https://github.com/ducaale/xh"
homepage = "https://github.com/ducaale/xh"
repository = "https://github.com/ducaale/xh"
readme = "README.md"
keywords = ["http"]
categories = ["command-line-utilities"]
exclude = ["assets/xhs", "assets/xhs.1.gz"]
[dependencies]
anyhow = "1.0.38"
atty = "0.2"
brotli = { version = "3.3.0", default-features = false, features = ["std"] }
chardetng = "0.1.15"
clap = { version = "4.0", features = ["derive", "wrap_help", "string"] }
clap_complete = { version = "4.0", optional = true }
cookie_store = { version = "0.20.0", features = ["preserve_order"] }
digest_auth = "0.3.0"
dirs = "5.0"
encoding_rs = "0.8.28"
encoding_rs_io = "0.1.7"
flate2 = "1.0.22"
indicatif = "0.17"
jsonxf = "1.1.0"
memchr = "2.4.1"
mime = "0.3.16"
mime2ext = "0.1.0"
mime_guess = "2.0"
network-interface = { version = "1.0.0", optional = true }
once_cell = "1.8.0"
os_display = "0.1.3"
pem = "3.0"
rand = "0.8.3"
regex = { version = "1", default-features = false, features = ["std"] }
roff = { version = "0.2.1", optional = true }
rpassword = "7.2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0", features = ["preserve_order"] }
serde_urlencoded = "0.7.0"
termcolor = "1.1.2"
time = "0.3.16"
unicode-width = "0.1.9"
url = "2.2.2"
[dependencies.reqwest]
version = "0.11.18"
default-features = false
features = ["json", "multipart", "blocking", "socks", "cookies"]
[dependencies.syntect]
version = "5.1"
default-features = false
features = ["parsing", "dump-load", "regex-onig"]
[build-dependencies.syntect]
version = "5.1"
default-features = false
features = ["dump-create", "plist-load", "regex-onig", "yaml-load"]
[dev-dependencies]
assert_cmd = "2.0.8"
form_urlencoded = "1.0.1"
indoc = "2.0"
predicates = "3.0"
hyper = { version = "0.14", features = ["server"] }
tokio = { version = "1", features = ["rt", "sync", "time"] }
tempfile = "3.2.0"
[features]
# Ideally network-interface would be disabled by default on certain platforms
# However: https://github.com/rust-lang/cargo/issues/1197
default = ["online-tests", "rustls", "network-interface"]
native-tls = ["reqwest/native-tls", "reqwest/native-tls-alpn"]
rustls = ["reqwest/rustls-tls", "reqwest/rustls-tls-webpki-roots", "reqwest/rustls-tls-native-roots"]
network-interface = ["dep:network-interface"]
online-tests = []
ipv6-tests = []
man-completion-gen = ["clap_complete", "roff"]
[package.metadata.cross.build.env]
passthrough = ["CARGO_PROFILE_RELEASE_LTO"]
[package.metadata.deb]
features = []
section = "web"
license-file = "LICENSE"
preserve-symlinks = true
assets = [
["target/release/xh", "usr/bin/", "755"],
["assets/xhs", "usr/bin/", "777"],
["CHANGELOG.md", "usr/share/doc/xh/NEWS", "644"],
["README.md", "usr/share/doc/xh/README", "644"],
["doc/xh.1", "usr/share/man/man1/xh.1", "644"],
["assets/xhs.1.gz", "usr/share/man/man1/xhs.1.gz", "777"],
["completions/xh.bash", "usr/share/bash-completion/completions/xh", "644"],
["completions/xh.fish", "usr/share/fish/vendor_completions.d/xh.fish", "644"],
["completions/_xh", "usr/share/zsh/vendor-completions/", "644"],
]
extended-description = """\
xh is a friendly and fast tool for sending HTTP requests.
It reimplements as much as possible of HTTPie's excellent design, with a focus
on improved performance.
"""