# 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_bootstrap"
version = "0.21.0-pre.8"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bootstrap and admin composition boundary crate 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"

[features]
admin-http = []
artifact-download = ["artifact-publish"]
artifact-fs = [
    "artifact-publish",
    "burn_p2p_publish/fs",
]
artifact-publish = ["dep:burn_p2p_publish"]
artifact-s3 = [
    "artifact-publish",
    "burn_p2p_publish/s3",
    "dep:reqwest",
]
auth-external = ["dep:burn_p2p_auth_external"]
auth-github = ["dep:burn_p2p_auth_github"]
auth-oauth = ["dep:burn_p2p_auth_oauth"]
auth-oidc = ["dep:burn_p2p_auth_oidc"]
auth-static = []
browser-edge = [
    "dep:burn_p2p_app",
    "burn_p2p_app/interactive",
]
browser-join = [
    "browser-edge",
    "burn_p2p_app/browser-join",
]
default = []
metrics = []
metrics-indexer = [
    "metrics",
    "dep:burn_p2p_metrics",
]
rbac = []
social = ["dep:burn_p2p_social"]

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

[[bin]]
name = "burn-p2p-bootstrap"
path = "src/bootstrap/main.rs"

[[example]]
name = "embedded_runtime_daemon"
path = "examples/embedded_runtime_daemon.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.burn_p2p]
version = "=0.21.0-pre.8"

[dependencies.burn_p2p_app]
version = "=0.21.0-pre.8"
optional = true
default-features = false

[dependencies.burn_p2p_auth_external]
version = "=0.21.0-pre.8"
optional = true

[dependencies.burn_p2p_auth_github]
version = "=0.21.0-pre.8"
optional = true

[dependencies.burn_p2p_auth_oauth]
version = "=0.21.0-pre.8"
optional = true

[dependencies.burn_p2p_auth_oidc]
version = "=0.21.0-pre.8"
optional = true

[dependencies.burn_p2p_core]
version = "=0.21.0-pre.8"

[dependencies.burn_p2p_experiment]
version = "=0.21.0-pre.8"

[dependencies.burn_p2p_metrics]
version = "=0.21.0-pre.8"
optional = true

[dependencies.burn_p2p_publish]
version = "=0.21.0-pre.8"
optional = true
default-features = false

[dependencies.burn_p2p_security]
version = "=0.21.0-pre.8"

[dependencies.burn_p2p_social]
version = "=0.21.0-pre.8"
features = [
    "profiles",
    "leaderboards",
    "badges",
]
optional = true
default-features = false

[dependencies.burn_p2p_swarm]
version = "=0.21.0-pre.8"

[dependencies.burn_p2p_views]
version = "=0.21.0-pre.8"

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

[dependencies.fs2]
version = "0.4"

[dependencies.hex]
version = "0.4"

[dependencies.libp2p-identity]
version = "0.2.13"

[dependencies.redis]
version = "0.27"

[dependencies.reqwest]
version = "0.12"
features = ["blocking"]
optional = true
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.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2.0"

[dependencies.url]
version = "2"

[dev-dependencies.burn_p2p_browser]
version = "=0.21.0-pre.8"

[dev-dependencies.burn_p2p_checkpoint]
version = "=0.21.0-pre.8"

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

[dev-dependencies.tempfile]
version = "3.13"

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

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

[lints.rust]
unsafe_code = "forbid"
