[package]
edition = "2024"
rust-version = "1.85"
name = "asknothingx2-util"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "asknothing"
documentation = "https://docs.rs/asknothingx2-util"
readme = "README.md"
keywords = [
"asknothing",
"client",
"http",
"oauth2",
"web",
]
categories = [
"api-bindings",
"authentication",
"network-programming",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/m3idnotfree/asknothingx2-util"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
api = [
"base64",
"bytes",
"dep:reqwest",
"dep:tokio",
"http",
"serde_json",
"serde_urlencoded",
"tokio?/fs",
"tokio?/process",
"tokio?/sync",
"tracing",
"url",
]
full = [
"api",
"oauth",
]
oauth = [
"base64",
"chrono",
"hex",
"hmac",
"rand",
"sha2",
"subtle",
"url",
"zeroize",
]
oauth-server = [
"dep:tokio",
"http-body-util",
"hyper",
"hyper-util",
"serde_json",
"serde_urlencoded",
"tokio?/macros",
"tokio?/net",
"tokio?/signal",
"tokio?/sync",
"tokio?/time",
"tracing",
]
reqwest = ["dep:reqwest"]
serde = ["serde_json"]
[lib]
name = "asknothingx2_util"
path = "src/lib.rs"
[[example]]
name = "oneshot"
path = "examples/oneshot.rs"
required-features = ["oauth-server"]
[[test]]
name = "oneshot"
path = "tests/oneshot.rs"
required-features = ["oauth-server"]
[[test]]
name = "signed_token"
path = "tests/signed_token.rs"
required-features = ["oauth"]
[dependencies.base64]
version = "0.22.1"
optional = true
[dependencies.bytes]
version = "1.11.0"
optional = true
[dependencies.chrono]
version = "0.4.43"
optional = true
[dependencies.hex]
version = "0.4.3"
optional = true
[dependencies.hmac]
version = "0.12.1"
optional = true
[dependencies.http]
version = "1.4.0"
optional = true
[dependencies.http-body-util]
version = "0.1.3"
optional = true
[dependencies.hyper]
version = "1.8.1"
features = [
"http1",
"server",
]
optional = true
[dependencies.hyper-util]
version = "0.1.20"
features = ["tokio"]
optional = true
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.rand]
version = "0.9.2"
optional = true
[dependencies.reqwest]
version = "0.13.1"
features = [
"brotli",
"cookies",
"gzip",
"hickory-dns",
"json",
"multipart",
"stream",
]
optional = true
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
optional = true
[dependencies.serde_urlencoded]
version = "0.7.1"
optional = true
[dependencies.sha2]
version = "0.10.9"
optional = true
[dependencies.subtle]
version = "2.6.1"
optional = true
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tokio]
version = "1.49.0"
optional = true
[dependencies.tracing]
version = "0.1.44"
optional = true
[dependencies.url]
version = "2.5.8"
optional = true
[dependencies.zeroize]
version = "1.8.2"
features = ["derive"]
optional = true
[dev-dependencies.futures]
version = "0.3.31"
[dev-dependencies.proptest]
version = "1.9.0"
[dev-dependencies.reqwest]
version = "0.13.1"
features = ["json"]
[dev-dependencies.serde_json]
version = "1.0.149"
[dev-dependencies.tempfile]
version = "3.24.0"
[dev-dependencies.tokio]
version = "1.49.0"
features = ["full"]
[dev-dependencies.tokio-test]
version = "0.4.5"
[dev-dependencies.tracing-subscriber]
version = "0.3.22"
features = ["fmt"]
[dev-dependencies.wiremock]
version = "0.6.5"