# 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 = "sdk-rust"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Canonical Rust core for the Lattix metadata-only control-plane SDK"
homepage = "https://lattix.io/"
documentation = "https://docs.rs/sdk-rust"
readme = "README.md"
keywords = [
    "lattix",
    "sdk",
    "zero-trust",
    "metadata",
    "control-plane",
]
license-file = "LICENSE"
repository = "https://github.com/LATTIX-IO/sdk-rust"

[package.metadata.docs.rs]
default-target = "x86_64-unknown-linux-gnu"
targets = [
    "x86_64-unknown-linux-gnu",
    "x86_64-pc-windows-msvc",
    "aarch64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[lib]
name = "sdk_rust"
crate-type = [
    "rlib",
    "cdylib",
    "staticlib",
]
path = "src/lib.rs"

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

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

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

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

[dependencies.serde_json]
version = "1"

[dependencies.ureq]
version = "2"
features = ["json"]
default-features = true

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