# 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.85"
name = "radion-sdk"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Official, async-first, fully-typed Rust SDK for the Radion platform"
homepage = "https://radion.app"
documentation = "https://docs.rs/radion-sdk"
readme = "README.md"
keywords = [
    "radion",
    "websocket",
    "realtime",
    "prediction-markets",
    "polymarket",
]
categories = [
    "api-bindings",
    "asynchronous",
    "web-programming::websocket",
]
license = "MIT"
repository = "https://github.com/radion-app/radion-rust"

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

[features]
default = [
    "realtime",
    "rustls",
]
native-tls = ["tokio-tungstenite?/native-tls"]
realtime = [
    "dep:tokio",
    "dep:tokio-tungstenite",
    "dep:tokio-stream",
    "dep:futures-util",
]
rustls = ["tokio-tungstenite?/rustls-tls-webpki-roots"]
tracing = ["dep:tracing"]

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

[[example]]
name = "filters"
path = "examples/filters.rs"
required-features = ["realtime"]

[[example]]
name = "lifecycle"
path = "examples/lifecycle.rs"
required-features = ["realtime"]

[[example]]
name = "quickstart"
path = "examples/quickstart.rs"
required-features = ["realtime"]

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

[dependencies.anyhow]
version = "1"

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "sync",
    "time",
]
optional = true
default-features = false

[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
optional = true

[dependencies.tokio-tungstenite]
version = "0.29"
features = [
    "connect",
    "handshake",
]
optional = true
default-features = false

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

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

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