[package] name = "chorus" description = "A library for interacting with multiple Spacebar-compatible Instances at once." version = "0.13.0" license = "AGPL-3.0" edition = "2021" repository = "https://github.com/polyphony-chat/chorus" readme = "README.md" keywords = ["spacebar", "discord", "polyphony"] website = ["https://discord.com/invite/m3FpcapGDD"] [features] default = ["client", "rt-multi-thread"] backend = ["dep:poem", "dep:sqlx"] rt-multi-thread = ["tokio/rt-multi-thread"] rt = ["tokio/rt"] client = [] voice = ["voice_udp", "voice_gateway"] voice_udp = ["dep:discortp", "dep:crypto_secretbox"] voice_gateway = [] [dependencies] tokio = { version = "1.35.1", features = ["macros", "sync"] } serde = { version = "1.0.195", features = ["derive", "rc"] } serde_json = { version = "1.0.111", features = ["raw_value"] } serde-aux = "4.3.1" serde_with = "3.4.0" serde_repr = "0.1.18" reqwest = { features = [ "multipart", "json", ], version = "0.11.23" } url = "2.5.0" chrono = { version = "0.4.31", features = ["serde"] } regex = "1.10.2" custom_error = "1.9.2" futures-util = "0.3.30" http = "0.2.11" base64 = "0.21.7" bitflags = { version = "2.4.1", features = ["serde"] } lazy_static = "1.4.0" poem = { version = "1.3.59", optional = true } thiserror = "1.0.56" jsonwebtoken = "8.3.0" log = "0.4.20" async-trait = "0.1.77" chorus-macros = "0.2.0" sqlx = { version = "0.7.3", features = [ "mysql", "sqlite", "json", "chrono", "ipnetwork", "runtime-tokio-native-tls", "any", ], optional = true } discortp = { version = "0.5.0", optional = true, features = ["rtp", "discord", "demux"] } crypto_secretbox = {version = "0.1.1", optional = true} safina-timer = "0.1.11" rand = "0.8.5" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] rustls = "0.21.10" rustls-native-certs = "0.6.3" tokio-tungstenite = { version = "0.20.1", features = [ "rustls-tls-native-roots", "rustls-native-certs", ] } native-tls = "0.2.11" hostname = "0.3.1" getrandom = { version = "0.2.11" } [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2.12", features = ["js"] } ws_stream_wasm = "0.7.4" wasm-bindgen-futures = "0.4.39" [dev-dependencies] lazy_static = "1.4.0" wasm-bindgen-test = "0.3.39" wasm-bindgen = "0.2.89"