apibrasil 1.0.0

SDK oficial Rust da plataforma APIBrasil: WhatsApp, SMS, consultas de CPF/CNPJ, veiculos, CEP, correios, pagamentos PIX/boleto e mais.
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 = "2021"
rust-version = "1.82"
name = "apibrasil"
version = "1.0.0"
authors = ["APIBrasil <contato@apibrasil.com.br>"]
build = false
exclude = [
    ".github/",
    "scripts/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SDK oficial Rust da plataforma APIBrasil: WhatsApp, SMS, consultas de CPF/CNPJ, veiculos, CEP, correios, pagamentos PIX/boleto e mais."
homepage = "https://apibrasil.com.br"
documentation = "https://docs.rs/apibrasil"
readme = "README.md"
keywords = [
    "apibrasil",
    "whatsapp",
    "cnpj",
    "pix",
    "sdk",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/APIBrasil/apigratis-sdk-rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
blocking = ["tokio/rt-multi-thread"]
default = ["rustls-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]

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

[[bin]]
name = "codegen"
path = "src/bin/codegen.rs"
required-features = ["blocking"]

[[example]]
name = "basico"
path = "examples/basico.rs"

[[example]]
name = "sincrono"
path = "examples/sincrono.rs"
required-features = ["blocking"]

[[example]]
name = "whatsapp"
path = "examples/whatsapp.rs"

[[test]]
name = "blocking"
path = "tests/blocking.rs"

[[test]]
name = "catalog"
path = "tests/catalog.rs"

[[test]]
name = "contract"
path = "tests/contract.rs"

[[test]]
name = "data"
path = "tests/data.rs"

[[test]]
name = "errors"
path = "tests/errors.rs"

[[test]]
name = "http_client"
path = "tests/http_client.rs"

[[test]]
name = "legacy"
path = "tests/legacy.rs"

[[test]]
name = "messaging"
path = "tests/messaging.rs"

[[test]]
name = "platform"
path = "tests/platform.rs"

[[test]]
name = "retry"
path = "tests/retry.rs"

[[test]]
name = "transport"
path = "tests/transport.rs"

[dependencies.reqwest]
version = "0.12"
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = ["time"]

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "time",
]