[package] name = "discord-rpc-client" version = "0.5.3" description = "A Rust client for Discord RPC." authors = [ "Patrick Auernig ", "Michael Pfaff ", ] keywords = ["discord", "rpc", "ipc"] license = "MIT" readme = "README.md" repository = "https://gitlab.com/valeth/discord-rpc-client.rs.git" edition = "2021" [features] default = ["rich_presence"] rich_presence = [] tokio-parking_lot = ["tokio/parking_lot"] java-bindings = ["lazy_static", "jni", "tokio/rt-multi-thread"] [dependencies] anyhow = "1" async-trait = "0.1.52" byteorder = "1.0" bytes = "1.1.0" const_format = "0.2.22" jni = { version = "0.19", optional = true } lazy_static = { version = "1.4", optional = true } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tokio = { version = "1.16", features = ["io-util", "net", "sync", "macros", "rt"] } tracing = "0.1.32" uuid = { version = "0.8", features = ["v4"] } [dev-dependencies] tokio = { version = "1.16", features = [ "time", "rt-multi-thread", "macros", "parking_lot", ] } tracing-subscriber = "0.3.9" # this is a workaround to not being able to specify either multiple libs or conditional compilation based on crate-type. [[example]] name = "discord_rpc_java" path = "examples/java.rs" crate-type = ["cdylib"] required-features = ["java-bindings"]