[package] name = "awaur" version = "0.2.1" authors = [ "Jacob Birkett " ] edition = "2021" description = "AWAUR: Asynchronous Web API Utilities for Rust" repository = "https://github.com/spikespaz/awaur" license = "MIT" keywords = [ "web", "rest", "async", "api", "utilities" ] categories = [ "rust-patterns", "web-programming", "asynchronous", "concurrency" ] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [package.metadata.docs.rs] no-default-features = true features = [ "paginator", "endpoints", "serde-as-wrapper", "serde-with-base62", "serde-with-json-string" ] [dependencies] # Dependencies for members that aren't feature-gated macro_pub = "0.1" # Dependencies for feature "paginator" futures-core = { version = "0.3", optional = true } async-trait = { version = "0.1", optional = true } # Dependencies for feature "endpoints" thiserror = { version = "1", optional = true } url = { version = "2", optional = true } serde_path_to_error = { version = "0.1", optional = true } futures-lite = { version = "1", optional = true } http = { version = "0.2", optional = true } serde_qs = { version = "0.9", optional = true } # Dependencies for feature "serde-with" serde_with = { version = "1", optional = true } base62 = { version = "2", optional = true } # "endpoints" and "serde-with" serde = { version = "1", features = ["derive"], optional = true } serde_json = { version = "1", optional = true } [features] # Feature to enable asynchronous paginator paginator = [ "dep:futures-core", "dep:async-trait" ] # Feature to construct the bodies of functions that make requests to REST endpoints endpoints = [ "dep:thiserror", "dep:url", "dep:serde_path_to_error", "dep:futures-lite", "dep:http", "dep:serde_qs", "dep:serde", "dep:serde_json" ] # Enable `serde_with::serde_as` support serde-as-wrapper = [ "dep:serde", "dep:serde_with" ] # Features for `#[serde(with = "...")]` extensions serde-with-base62 = [ "dep:serde", "dep:base62" ] serde-with-json-string = [ "dep:serde", "dep:serde_json" ] [dev-dependencies] time = { version = "0.3", features = ["serde-well-known"] } fake = { version = "2.5", features = ["derive"] } rand = "0.8"