rikka 0.2.0

Async HTTP client for native & WASM.
Documentation
# 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 = "2024"
name = "rikka"
version = "0.2.0"
authors = ["Mikkel ALMONTE--RINGAUD <contact@vexcited.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Async HTTP client for native & WASM."
readme = "README.md"
keywords = [
    "http",
    "fetch",
    "wasm",
    "redirect",
    "cookies",
]
categories = [
    "web-programming::http-client",
    "wasm",
]
license = "MIT"
repository = "https://code.vexcited.com/rikka/rikka"

[features]
default = ["json"]
json = [
    "dep:serde",
    "dep:serde_json",
]

[lib]
name = "rikka"
path = "src/lib.rs"

[dependencies.serde]
version = "1"
optional = true

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.thiserror]
version = "2"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.12"
features = [
    "native-tls",
    "http2",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.form_urlencoded]
version = "1"

[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
    "Headers",
    "Request",
    "RequestInit",
    "RequestRedirect",
    "Response",
]

[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
version = "0.3"