# 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" rust-version = "1.70.0" name = "chorus" version = "0.18.0" build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A library for interacting with multiple Spacebar-compatible Instances at once." readme = "README.md" keywords = [ "spacebar", "discord", "polyphony", ] license = "MPL-2.0" repository = "https://github.com/polyphony-chat/chorus" [package.metadata.wasm-pack.profile.dev.wasm-bindgen] debug-js-glue = false [lib] name = "chorus" path = "src/lib.rs" [[example]] name = "gateway_observers" path = "examples/gateway_observers.rs" [[example]] name = "gateway_simple" path = "examples/gateway_simple.rs" [[example]] name = "instance" path = "examples/instance.rs" [[example]] name = "login" path = "examples/login.rs" [[test]] name = "auth" path = "tests/auth.rs" [[test]] name = "channels" path = "tests/channels.rs" [[test]] name = "gateway" path = "tests/gateway.rs" [[test]] name = "guilds" path = "tests/guilds.rs" [[test]] name = "instance" path = "tests/instance.rs" [[test]] name = "invites" path = "tests/invites.rs" [[test]] name = "members" path = "tests/members.rs" [[test]] name = "messages" path = "tests/messages.rs" [[test]] name = "ratelimit" path = "tests/ratelimit.rs" [[test]] name = "relationships" path = "tests/relationships.rs" [[test]] name = "roles" path = "tests/roles.rs" [[test]] name = "types" path = "tests/types.rs" [[test]] name = "urlbundle" path = "tests/urlbundle.rs" [[test]] name = "user" path = "tests/user.rs" [[test]] name = "wasm" path = "tests/wasm.rs" [dependencies.async-trait] version = "0.1.81" [dependencies.base64] version = "0.21.7" [dependencies.bitflags] version = "2.6.0" features = ["serde"] [dependencies.chorus-macros] version = "0" [dependencies.chrono] version = "0.4.38" features = ["serde"] [dependencies.crypto_secretbox] version = "0.1.1" optional = true [dependencies.custom_error] version = "1.9.2" [dependencies.discortp] version = "0.5.0" features = [ "rtp", "discord", "demux", ] optional = true [dependencies.flate2] version = "1.0.33" optional = true [dependencies.futures-util] version = "0.3.30" [dependencies.http] version = "0.2.12" [dependencies.jsonwebtoken] version = "8.3.0" [dependencies.lazy_static] version = "1.5.0" [dependencies.log] version = "0.4.22" [dependencies.poem] version = "3.0.1" features = ["multipart"] optional = true [dependencies.pubserve] version = "1.1.0" features = [ "async", "send", ] [dependencies.rand] version = "0.8.5" [dependencies.regex] version = "1.10.6" [dependencies.reqwest] version = "=0.11.26" features = [ "multipart", "json", "rustls-tls-webpki-roots", ] default-features = false [dependencies.serde] version = "1.0.209" features = [ "derive", "rc", ] [dependencies.serde-aux] version = "4.5.0" [dependencies.serde_json] version = "1.0.127" features = ["raw_value"] [dependencies.serde_repr] version = "0.1.19" [dependencies.serde_with] version = "3.9.0" [dependencies.sqlx] version = "0.8.2" features = [ "json", "chrono", "ipnetwork", "runtime-tokio-rustls", "postgres", "bigdecimal", ] optional = true [dependencies.sqlx-pg-uint] version = "0.8.0" features = ["serde"] optional = true [dependencies.thiserror] version = "1.0.63" [dependencies.tokio] version = "1.39.3" features = [ "macros", "sync", ] [dependencies.url] version = "2.5.2" [dependencies.webpki-roots] version = "0.26.3" [dev-dependencies.lazy_static] version = "1.5.0" [dev-dependencies.simple_logger] version = "5.0.0" default-features = false [dev-dependencies.wasm-bindgen] version = "0.2.95" [dev-dependencies.wasm-bindgen-test] version = "0.3.43" [features] backend = [ "poem", "sqlx", "sqlx-pg-uint", ] client = ["flate2"] default = [ "client", "rt-multi-thread", ] rt = ["tokio/rt"] rt-multi-thread = ["tokio/rt-multi-thread"] sqlx-pg-uint = [ "dep:sqlx-pg-uint", "sqlx-pg-uint/serde", ] voice = [ "voice_udp", "voice_gateway", ] voice_gateway = [] voice_udp = [ "dep:discortp", "dep:crypto_secretbox", ] [target.'cfg(not(target_arch = "wasm32"))'.dependencies.getrandom] version = "0.2.15" [target.'cfg(not(target_arch = "wasm32"))'.dependencies.hostname] version = "0.3.1" [target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls] version = "0.21.12" [target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio-tungstenite] version = "0.20.1" features = ["rustls-tls-webpki-roots"] [target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.httptest] version = "0.16.1" [target.'cfg(target_arch = "wasm32")'.dependencies.getrandom] version = "0.2.15" features = ["js"] [target.'cfg(target_arch = "wasm32")'.dependencies.pharos] version = "0.5.3" [target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures] version = "0.4.43" [target.'cfg(target_arch = "wasm32")'.dependencies.wasmtimer] version = "0.4.0" [target.'cfg(target_arch = "wasm32")'.dependencies.ws_stream_wasm] version = "0.7.4" [lints.rust.unexpected_cfgs] level = "allow" priority = 0 check-cfg = ["cfg(tarpaulin_include)"]