# 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 = "asupersync-browser-core"
version = "0.3.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Canonical wasm-bindgen export boundary and JS/WASM package producer for the Asupersync Browser Edition."
readme = false
keywords = [
    "async",
    "wasm",
    "browser",
    "bindings",
    "structured",
]
categories = [
    "asynchronous",
    "wasm",
    "web-programming",
]
license = "LicenseRef-MIT-OpenAI-Anthropic-Rider"
repository = "https://github.com/Dicklesworthstone/asupersync"

[package.metadata.asupersync_wasm_policy]
policy_version = "1.0.0"
abi_version = "1.0"
owner_track = "asupersync-v2ofj7.2"

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-Oz",
    "--enable-bulk-memory",
    "--strip-dwarf",
    "--strip-producers",
    "--vacuum",
]

[features]
default = ["prod"]
deterministic = ["asupersync/wasm-browser-deterministic"]
dev = ["asupersync/wasm-browser-dev"]
minimal = ["asupersync/wasm-browser-minimal"]
prod = ["asupersync/wasm-browser-prod"]

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

[[test]]
name = "abi_exports"
path = "tests/abi_exports.rs"

[[test]]
name = "artifact_layout"
path = "tests/artifact_layout.rs"

[dependencies.asupersync]
version = "0.3.4"
default-features = false

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

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

[dependencies.serde-wasm-bindgen]
version = "0.6"

[dependencies.serde_json]
version = "1.0"

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

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

[dependencies.web-sys]
version = "0.3"
features = [
    "Window",
    "WorkerGlobalScope",
    "Performance",
    "AbortController",
    "AbortSignal",
    "RequestInit",
    "Response",
    "BinaryType",
    "CloseEvent",
    "Event",
    "MessageEvent",
    "WebSocket",
    "console",
]

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

[lints.clippy]
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "deny"
