# 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.92"
name = "burn_p2p_browser"
version = "0.21.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Browser runtime glue, worker bridge, and portal bindings for burn_p2p."
readme = "README.md"
keywords = [
    "burn",
    "distributed",
    "p2p",
    "federated",
    "training",
]
categories = [
    "network-programming",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/aberration-technology/burn_p2p"

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

[dependencies.base64]
version = "0.22"

[dependencies.burn_p2p]
version = "=0.21.3"

[dependencies.burn_p2p_core]
version = "=0.21.3"

[dependencies.burn_p2p_metrics]
version = "=0.21.3"

[dependencies.burn_p2p_publish]
version = "=0.21.3"
default-features = false

[dependencies.burn_p2p_swarm]
version = "=0.21.3"

[dependencies.burn_p2p_views]
version = "=0.21.3"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]

[dependencies.reqwest]
version = "0.12"
features = ["json"]
default-features = false

[dependencies.semver]
version = "1.0.27"
features = ["serde"]

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.tokio]
version = "1"
features = [
    "net",
    "rt",
    "time",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-timers]
version = "0.3"
features = ["futures"]

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.serde-wasm-bindgen]
version = "0.6"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "DomException",
    "Event",
    "EventTarget",
    "Headers",
    "IdbDatabase",
    "IdbFactory",
    "IdbObjectStore",
    "IdbOpenDbRequest",
    "IdbRequest",
    "IdbTransaction",
    "IdbTransactionMode",
    "IdbVersionChangeEvent",
    "ReadableStream",
    "ReadableStreamDefaultReader",
    "Request",
    "RequestInit",
    "Response",
    "Storage",
    "Window",
]

[lints.clippy]
dbg_macro = "warn"
todo = "warn"
unwrap_used = "warn"

[lints.rust]
unsafe_code = "forbid"
