api_builder 0.2.0

A simple client-agnostic API builder, inspired by the GitLab crate
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "api_builder"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A simple client-agnostic API builder, inspired by the GitLab crate"
readme = "README.md"
keywords = [
    "api",
    "builder",
    "rest",
    "client-agnostic",
    "agnostic",
]
categories = [
    "asynchronous",
    "api-bindings",
]
license = "MIT"
repository = "https://github.com/Stefanuk12/api-builder"

[features]
default = ["derive"]
default-tls = ["reqwest/default-tls"]
derive = ["dep:api_builder_derive"]
prost = ["dep:prost"]
reqwest = ["dep:reqwest"]
reqwest_blocking = [
    "reqwest",
    "reqwest/blocking",
]
rustls-tls = ["reqwest/rustls"]

[lib]
name = "api_builder"
path = "src/lib.rs"

[[example]]
name = "all"
path = "examples/all.rs"
required-features = ["reqwest_blocking"]

[[example]]
name = "client"
path = "examples/client.rs"
required-features = [
    "derive",
    "reqwest",
]

[[example]]
name = "endpoint"
path = "examples/endpoint.rs"
required-features = ["derive"]

[dependencies.anyhow]
version = "1.0"

[dependencies.api_builder_derive]
version = "0.1.0"
optional = true

[dependencies.bytes]
version = "1.11"

[dependencies.http]
version = "1.4"

[dependencies.prost]
version = "0.14"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "charset",
    "http2",
]
optional = true
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.url]
version = "2.5"

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-net]
version = "0.7.0"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"