# 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 = "lemmy-client" version = "1.0.3" authors = ["SleeplessOne1917"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A Rust HTTP client for Lemmy." homepage = "https://join-lemmy.org" readme = "README.md" keywords = [ "Lemmy", "HTTP-client", "API-wrapper", "fediverse", ] categories = [ "api-bindings", "wasm", ] license = "AGPL-3.0" repository = "https://github.com/LemmyNet/lemmy-client-rs" [lib] name = "lemmy_client" path = "src/lib.rs" [dependencies.cfg-if] version = "1" [dependencies.http] version = "1.1" [dependencies.lemmy_api_common] version = "=0.19.6" [dependencies.leptos] version = "0.6" optional = true [dependencies.serde] version = "1.0" [dependencies.serde_json] version = "1.0" [features] default = ["default-tls"] default-tls = ["reqwest/default-tls"] leptos = [ "web-sys/AbortController", "dep:leptos", ] native-tls = ["reqwest/native-tls"] rustls-tls = ["reqwest/rustls-tls"] [target.'cfg(not(target_family = "wasm"))'.dependencies.reqwest] version = "0.12" features = ["json"] default-features = false [target.'cfg(target_family = "wasm")'.dependencies.gloo-net] version = "0.6" features = ["http"] [target.'cfg(target_family = "wasm")'.dependencies.serde_urlencoded] version = "0.7" [target.'cfg(target_family = "wasm")'.dependencies.web-sys] version = "0.3"