# 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"
rust-version = "1.96"
name = "impulse-utils"
version = "1.1.9"
authors = ["Klimenty Titov <titoffklim@verbalautomation.tech>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bunch of fullstack utils"
readme = "README.md"
license = "MIT"
resolver = "2"

[features]
cresult = []
default = [
    "salvo",
    "reqwest",
    "mresult",
    "cresult",
]
mresult = ["salvo"]
reqwest = [
    "dep:reqwest",
    "cresult",
]
salvo = ["dep:salvo"]

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

[dependencies.anyhow]
version = "1"

[dependencies.http]
version = "1"

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
]
optional = true
default-features = false

[dependencies.rmp-serde]
version = "=1.3.1"

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

[dependencies.tracing]
version = "0.1"

[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.salvo]
version = "^0.93.0"
features = [
    "oapi",
    "rustls",
    "compression",
    "aws-lc-rs",
]
optional = true
default-features = false

[target.'cfg(not(any(target_arch = "wasm32", target_arch = "wasm64")))'.dependencies.sonic-rs]
version = "0.5.1"
