# 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.91.0"
name = "fetsig"
version = "0.22.0"
authors = ["martin.kolarik@smartcontrol.cz"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Web-sys based browser fetch library using futures-signals with optional MAC."
homepage = "https://github.com/martin-kolarik/fetsig"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/martin-kolarik/fetsig"

[features]
browser = [
    "dep:js-sys",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:web-sys",
]
default = [
    "browser",
    "json",
    "postcard",
]
json = [
    "dep:serde_json",
    "dep:serde_with",
]
postcard = ["dep:postcard"]

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

[dependencies.artwrap]
version = "^0.2"

[dependencies.base64]
version = "^0.22"
features = ["std"]
default-features = false

[dependencies.futures-signals]
version = "^0.3"
features = ["serde"]
default-features = false

[dependencies.futures-signals-ext]
version = "^0.10"
features = [
    "option",
    "spawn-local",
    "ahash",
]
default-features = false

[dependencies.js-sys]
version = "^0.3"
optional = true

[dependencies.log]
version = "^0.4"
default-features = false

[dependencies.postcard]
version = "^1.0"
optional = true

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

[dependencies.serde_json]
version = "^1.0"
optional = true

[dependencies.serde_with]
version = "^3.6"
features = ["macros"]
optional = true
default-features = false

[dependencies.smol_str]
version = "^0.3"
features = ["serde"]

[dependencies.ufmt]
version = "^0.2"
features = ["std"]
default-features = false

[dependencies.wasm-bindgen]
version = "^0.2"
optional = true
default-features = false

[dependencies.wasm-bindgen-futures]
version = "^0.4"
optional = true

[dependencies.web-sys]
version = "^0.3"
features = [
    "AbortController",
    "AbortSignal",
    "DomRect",
    "Element",
    "Headers",
    "File",
    "FileList",
    "ScreenOrientation",
    "RequestInit",
    "Response",
    "ResponseType",
    "Screen",
    "Storage",
    "Window",
]
optional = true
default-features = false
