[package]
edition = "2021"
name = "scribe-client"
version = "0.3.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust client for the Scribe document conversion API"
homepage = "https://scribeit.io"
documentation = "https://docs.rs/scribe-client"
readme = "README.md"
keywords = [
"scribe",
"accessibility",
"daisy",
"braille",
"epub",
]
categories = [
"api-bindings",
"accessibility",
"web-programming::http-client",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/PneumaSolutions/scribe-api-client"
[features]
default = ["rustls"]
native-tls = [
"reqwest/native-tls",
"tokio-tungstenite/native-tls",
]
rustls = [
"reqwest/rustls",
"tokio-tungstenite/rustls-tls-native-roots",
]
[lib]
name = "scribe_client"
path = "src/lib.rs"
[[example]]
name = "pkce_flow"
path = "examples/pkce_flow.rs"
[[test]]
name = "auth_test"
path = "tests/auth_test.rs"
[[test]]
name = "channel_test"
path = "tests/channel_test.rs"
[[test]]
name = "client_test"
path = "tests/client_test.rs"
[[test]]
name = "locale_test"
path = "tests/locale_test.rs"
[[test]]
name = "settings_test"
path = "tests/settings_test.rs"
[dependencies.base64]
version = "0.22.1"
[dependencies.futures-util]
version = "0.3.32"
features = ["sink"]
default-features = false
[dependencies.percent-encoding]
version = "2.3.2"
[dependencies.rand]
version = "0.10.2"
[dependencies.reqwest]
version = "0.13.4"
features = [
"json",
"multipart",
"form",
]
default-features = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.150"
[dependencies.sha2]
version = "0.11.0"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.time]
version = "0.3.53"
features = [
"serde",
"parsing",
"formatting",
]
[dependencies.tokio]
version = "1.52.3"
features = [
"rt",
"macros",
"sync",
"time",
]
[dependencies.tokio-tungstenite]
version = "0.29.0"
[dependencies.url]
version = "2.5.8"
[dev-dependencies.tokio]
version = "1.52.3"
features = [
"rt-multi-thread",
"macros",
"net",
"test-util",
]
[dev-dependencies.wiremock]
version = "0.6.5"
[lints.clippy.all]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1