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