# 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 = "musli-web"
version = "0.1.6"
authors = ["John-John Tedro <udoprog@tedro.se>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
Types for integrating Müsli with websocket frameworks.
"""
homepage = "https://github.com/udoprog/musli"
documentation = "https://docs.rs/musli"
readme = "README.md"
keywords = [
    "framework",
    "http",
    "web",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming::http-server",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/udoprog/musli"
resolver = "2"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "doc_cfg",
    "--generate-link-to-definition",
]

[features]
alloc = ["musli?/alloc"]
api = [
    "alloc",
    "dep:musli",
]
axum08 = [
    "dep:axum08",
    "axum-core05",
    "dep:bytes",
    "dep:futures-core03",
    "dep:futures-sink03",
    "ws",
    "dep:tracing",
]
default = [
    "alloc",
    "std",
]
json = [
    "musli/json",
    "std",
    "alloc",
    "dep:bytes",
    "dep:mime",
    "axum-core05",
    "dep:http",
]
std = ["musli?/std"]
test = [
    "api",
    "json",
    "ws",
    "yew021",
    "yew022",
]
wasm_bindgen02 = ["dep:wasm-bindgen02"]
web03 = [
    "std",
    "alloc",
    "api",
    "slab",
    "musli/storage",
    "dep:web-sys03",
    "dep:tracing",
    "wasm_bindgen02",
]
ws = [
    "musli/storage",
    "std",
    "api",
    "dep:bytes",
    "dep:rand",
    "tokio/time",
    "axum-core05",
    "axum08/ws",
    "dep:tracing",
]
yew021 = [
    "web03",
    "dep:yew021",
]
yew022 = [
    "web03",
    "dep:yew022",
]

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

[dependencies.axum-core05]
version = "0.5.0"
optional = true
default-features = false
package = "axum-core"

[dependencies.axum08]
version = "0.8.0"
optional = true
default-features = false
package = "axum"

[dependencies.bytes]
version = "1.10.0"
optional = true
default-features = false

[dependencies.futures-core03]
version = "0.3.0"
optional = true
default-features = false
package = "futures-core"

[dependencies.futures-sink03]
version = "0.3.0"
optional = true
default-features = false
package = "futures-sink"

[dependencies.http]
version = "1.3.1"
optional = true
default-features = false

[dependencies.mime]
version = "0.3.17"
optional = true
default-features = false

[dependencies.musli]
version = "0.0.149"
optional = true
default-features = false

[dependencies.musli-web-macros]
version = "0.1.6"

[dependencies.rand]
version = "0.9.1"
features = ["small_rng"]
optional = true
default-features = false

[dependencies.slab]
version = "0.4.9"
optional = true
default-features = false

[dependencies.tokio]
version = "1.37.0"
optional = true
default-features = false

[dependencies.tracing]
version = "0.1.40"
features = ["attributes"]
optional = true
default-features = false

[dependencies.wasm-bindgen02]
version = "0.2.0"
optional = true
default-features = false
package = "wasm-bindgen"

[dependencies.web-sys03]
version = "0.3.0"
features = [
    "WebSocket",
    "MessageEvent",
    "Performance",
    "BinaryType",
    "CloseEvent",
    "ErrorEvent",
    "Window",
    "Location",
]
optional = true
default-features = false
package = "web-sys"

[dependencies.yew021]
version = "0.21.0"
optional = true
default-features = false
package = "yew"

[dependencies.yew022]
version = "0.22.0"
optional = true
default-features = false
package = "yew"

[target."cfg(any())".dependencies.musli-web-macros]
version = "=0.1.6"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(doc_cfg, loom)"]
