2018-03-22 10:35:48 -04:00
|
|
|
[package]
|
2022-02-03 15:56:37 -05:00
|
|
|
name = "discord-rpc-client"
|
|
|
|
version = "0.5.0"
|
2018-03-22 10:35:48 -04:00
|
|
|
description = "A Rust client for Discord RPC."
|
2022-02-03 15:56:37 -05:00
|
|
|
authors = [
|
|
|
|
"Patrick Auernig <dev.patrick.auernig@gmail.com>",
|
|
|
|
"Michael Pfaff <michael@pfaff.dev>",
|
|
|
|
]
|
|
|
|
keywords = ["discord", "rpc", "ipc"]
|
|
|
|
license = "MIT"
|
|
|
|
readme = "README.md"
|
|
|
|
repository = "https://gitlab.com/valeth/discord-rpc-client.rs.git"
|
|
|
|
edition = "2021"
|
2018-04-09 13:34:08 -04:00
|
|
|
|
2018-03-22 10:35:48 -04:00
|
|
|
[features]
|
|
|
|
default = ["rich_presence"]
|
|
|
|
rich_presence = []
|
2022-02-03 15:56:37 -05:00
|
|
|
tokio-parking_lot = ["tokio/parking_lot"]
|
2022-02-03 16:56:26 -05:00
|
|
|
java-bindings = ["lazy_static", "jni", "tokio/rt-multi-thread"]
|
2022-02-03 15:56:37 -05:00
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
async-trait = "0.1.52"
|
2022-02-03 16:56:26 -05:00
|
|
|
jni = { version = "0.19", optional = true }
|
|
|
|
lazy_static = { version = "1.4", optional = true }
|
2022-02-03 15:56:37 -05:00
|
|
|
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",
|
|
|
|
] }
|
2022-02-03 16:56:26 -05:00
|
|
|
|
|
|
|
# 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"]
|