# 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"
rust-version = "1.70"
name = "aerosocket-wasm"
version = "0.1.5"
authors = ["AeroSocket Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "WebAssembly support for AeroSocket"
homepage = "https://aerosocket.rs"
documentation = "https://docs.rs/aerosocket"
readme = "README.md"
keywords = [
    "websocket",
    "async",
    "tokio",
    "server",
    "client",
]
categories = [
    "asynchronous",
    "network-programming",
    "web-programming::websocket",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/M1tsumi/AeroSocket"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["wasm-bindgen"]
wasm-bindgen = [
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
    "dep:js-sys",
    "dep:web-sys",
]

[lib]
name = "aerosocket_wasm"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[dependencies.aerosocket-core]
version = "0.1.0"
default-features = false

[dependencies.bytes]
version = "1.5"

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

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

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

[dependencies.web-sys]
version = "0.3"
features = [
    "MessageEvent",
    "ErrorEvent",
    "CloseEvent",
    "BinaryType",
    "Blob",
    "MessageEvent",
    "ErrorEvent",
    "CloseEvent",
    "BinaryType",
    "Blob",
    "WebSocket",
    "console",
]
optional = true

[dev-dependencies.wasm-bindgen-test]
version = "0.3"
