# 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"
name = "datachannel"
version = "0.14.0"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust wrappers for libdatachannel."
readme = "README.md"
keywords = [
    "datachannel",
    "webrtc",
    "p2p",
]
categories = ["network-programming"]
license = "MPL-2.0"
repository = "https://github.com/lerouxrgd/datachannel-rs"

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

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

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

[dependencies.datachannel-sys]
version = "0.22.2"

[dependencies.derivative]
version = "2"

[dependencies.log]
version = "0.4"
optional = true

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.webrtc-sdp]
version = "0.3"

[dev-dependencies.async-channel]
version = "2"

[dev-dependencies.async-tungstenite]
version = "0.25"
features = ["tokio-runtime"]

[dev-dependencies.crossbeam-channel]
version = "0.5"

[dev-dependencies.env_logger]
version = "0.11"

[dev-dependencies.futures-util]
version = "0.3"

[dev-dependencies.serde_json]
version = "1"

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

[dev-dependencies.tracing-subscriber]
version = "0.3"

[dev-dependencies.uuid]
version = "1"
features = [
    "serde",
    "v4",
]

[features]
default = ["log"]
log = ["dep:log"]
media = ["datachannel-sys/media"]
tracing = ["dep:tracing"]
vendored = ["datachannel-sys/vendored"]
