[package] name = "harmony_rust_sdk" version = "0.8.0" authors = ["Yusuf Bera Ertan "] edition = "2021" license = "MIT" description = "Rust library to work with the Harmony chat protocol." repository = "https://github.com/harmony-development/harmony_rust_sdk" homepage = "https://github.com/harmony-development/harmony_rust_sdk" keywords = ["harmony", "protocol", "api", "chat", "client"] categories = ["api-bindings"] exclude = ["*.nix", "flake.lock", ".github/*"] [workspace] members = ["harmony_derive"] resolver = "2" [package.metadata.docs.rs] all-features = true [dependencies] prost = "0.9" derive-new = "0.5" derive_more = "0.99" hrpc = { version="0.33", default-features=false } harmony_derive = { version="0.1.3", path="harmony_derive", optional=true } reqwest = { version="0.11", default-features=false, features=[ "json", "multipart", ], optional=true } tracing = { version="0.1", optional=true } serde = { version="1.0", features=["derive"], optional = true } tokio = { version="1.14", features=["sync"], optional=true } urlencoding = { version="2.1", optional=true } http = { version = "0.2", optional = true } rkyv = { version="0.7", optional=true } [build-dependencies] hrpc-build = { version="0.33", default-features=false } prost-build = "0.9" regex = "1" walkdir = "2" [features] default = [ "gen_chat", "gen_auth", "gen_mediaproxy", "gen_voice", "gen_harmonytypes", "gen_sync", "gen_batch", "gen_profile", "gen_emote", "rest", ] client_web = [ "_client_common", "hrpc/http_wasm_client", ] client_native = [ "_client_common", "tokio", "hrpc/http_hyper_client", "reqwest/rustls-tls-native-roots", ] _client_common = [ "gen_chat", "gen_auth", "gen_mediaproxy", "gen_voice", "gen_harmonytypes", "gen_client", "rest", "reqwest", "tracing", "urlencoding", "harmony_derive/client", ] client_backoff = [] gen_client = ["hrpc/client", "hrpc-build/client"] gen_server = ["hrpc/server", "hrpc-build/server"] gen_chat = ["gen_harmonytypes", "gen_profile", "gen_emote", "harmony_derive"] gen_auth = [] gen_mediaproxy = ["gen_harmonytypes"] gen_voice = [] gen_harmonytypes = [] gen_sync = [] gen_batch = [] gen_profile = [] gen_emote = [] rest = ["serde", "http"] [dev-dependencies] tokio = { version="1.14", features=["rt", "macros", "fs"] } tracing-subscriber = { version = "0.3", features = ["env-filter"] } ctrlc = "3.1.8" [[example]] name = "echo_bot" required-features = ["client_native"] [[example]] name = "message_log" required-features = ["client_native"] [[example]] name = "cmd_bot" required-features = ["client_native"] [package.metadata.nix] build = true library = true [workspace.metadata.nix] systems = ["x86_64-linux"]