# 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 = "lago-client"
version = "0.1.7"
authors = ["Lago Team <tech@getlago.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lago API client"
readme = "README.md"
license = "MIT"
repository = "https://github.com/getlago/lago-rust-client"

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0"

[dependencies.lago-types]
version = "0.1.7"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.45"
features = ["full"]

[dependencies.url]
version = "2.5"

[dev-dependencies.mockito]
version = "1.4"

[dev-dependencies.tokio-test]
version = "0.4"
