# 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" name = "mpesa" version = "1.1.0" authors = ["Collins Muriuki "] description = "A wrapper around the M-PESA API in Rust." readme = "./README.md" keywords = [ "api", "mpesa", "mobile", ] license = "MIT" repository = "https://github.com/collinsmuriuki/mpesa-rust" [dependencies.cached] version = "0.46" features = [ "wasm", "async", "proc_macro", ] [dependencies.chrono] version = "0.4" features = [ "clock", "serde", ] optional = true default-features = false [dependencies.derive_builder] version = "0.12" [dependencies.openssl] version = "0.10" optional = true [dependencies.reqwest] version = "0.11" features = ["json"] [dependencies.secrecy] version = "0.8.0" [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde-aux] version = "4.2.0" [dependencies.serde_json] version = "1.0" [dependencies.serde_repr] version = "0.1" [dependencies.thiserror] version = "1.0.37" [dependencies.wiremock] version = "0.5" [dev-dependencies.dotenv] version = "0.15" [dev-dependencies.tokio] version = "1" features = [ "rt", "rt-multi-thread", "macros", ] [dev-dependencies.wiremock] version = "0.5" [features] account_balance = ["dep:openssl"] b2b = ["dep:openssl"] b2c = ["dep:openssl"] bill_manager = ["dep:chrono"] c2b_register = [] c2b_simulate = [] default = [ "account_balance", "b2b", "b2c", "bill_manager", "c2b_register", "c2b_simulate", "express_request", "transaction_reversal", "transaction_status", "dynamic_qr", ] dynamic_qr = [] express_request = ["dep:chrono"] transaction_reversal = ["dep:openssl"] transaction_status = ["dep:openssl"]