[package] name = "discord-rpc-client" version = "0.5.0" 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] async-trait = "0.1.52" jni = { version = "0.19", optional = true } lazy_static = { version = "1.4", optional = true } tokio = { version = "1.16", features = ["io-util", "net", "sync", "macros", "rt"] } serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" byteorder = "1.0" log = "0.4" bytes = "1.1.0" uuid = { version = "0.8", features = ["v4"] } [dev-dependencies] simplelog = "0.11" tokio = { version = "1.16", features = [ "time", "rt-multi-thread", "macros", "parking_lot", ] } # 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"]