[package]
edition = "2021"
rust-version = "1.75"
name = "snippe"
version = "0.1.0"
authors = ["NEUROTECH AFRICA <hello@neurotech.africa>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async Rust client for the Snippe payments API (Tanzania) — collections, hosted checkout sessions, disbursements, and verified webhooks."
documentation = "https://docs.rs/snippe"
readme = "README.md"
keywords = [
"snippe",
"payments",
"tanzania",
"mpesa",
"fintech",
]
categories = [
"api-bindings",
"web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/Neurotech-HQ/snippe-rust-sdk"
[features]
default = ["rustls-tls"]
native-tls = ["reqwest/native-tls"]
rustls-tls = ["reqwest/rustls-tls"]
[lib]
name = "snippe"
path = "src/lib.rs"
[[example]]
name = "balance"
path = "examples/balance.rs"
[[example]]
name = "create_mobile_payment"
path = "examples/create_mobile_payment.rs"
[[example]]
name = "create_session"
path = "examples/create_session.rs"
[[example]]
name = "send_payout"
path = "examples/send_payout.rs"
[[example]]
name = "verify_webhook"
path = "examples/verify_webhook.rs"
[[test]]
name = "builder"
path = "tests/builder.rs"
[[test]]
name = "payments"
path = "tests/payments.rs"
[[test]]
name = "payouts"
path = "tests/payouts.rs"
[[test]]
name = "sessions"
path = "tests/sessions.rs"
[[test]]
name = "webhook"
path = "tests/webhook.rs"
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
[dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.sha2]
version = "0.10"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
]
[dev-dependencies.wiremock]
version = "0.6"