[package]
edition = "2024"
rust-version = "1.85"
name = "open-library-api-rs"
version = "0.1.0"
authors = ["louisc <director@fail.academy>"]
build = false
exclude = [
".gitignore",
"target/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust client for the Open Library API"
homepage = "https://github.com/aVOIDSTARch/open-library-api-rs"
documentation = "https://docs.rs/open-library-api-rs"
readme = "README.md"
keywords = [
"open-library",
"openlibrary",
"books",
"api",
"async",
]
categories = [
"api-bindings",
"web-programming::http-client",
"asynchronous",
]
license = "MIT"
repository = "https://github.com/aVOIDSTARch/open-library-api-rs"
[features]
blocking = ["tokio/rt"]
default = ["rustls-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]
[lib]
name = "open_library_api_rs"
path = "src/lib.rs"
[[bin]]
name = "olib"
path = "src/bin/olib.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.governor]
version = "0.7"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"sync",
"time",
"rt-multi-thread",
"macros",
]
[dependencies.url]
version = "2"
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.mockito]
version = "1"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.tokio]
version = "1"
features = [
"full",
"test-util",
]