# 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" rust-version = "1.64" name = "gloo-net" version = "0.6.0" authors = [ "Rust and WebAssembly Working Group", "Elina ", ] description = "HTTP requests library for WASM Apps" readme = "README.md" keywords = [ "requests", "http", "wasm", "websockets", ] categories = [ "wasm", "web-programming::http-client", "api-bindings", ] license = "MIT OR Apache-2.0" repository = "https://github.com/rustwasm/gloo" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [dependencies.futures-channel] version = "0.3" optional = true [dependencies.futures-core] version = "0.3" optional = true [dependencies.futures-io] version = "0.3" optional = true [dependencies.futures-sink] version = "0.3" optional = true [dependencies.gloo-utils] version = "0.2" default-features = false [dependencies.http] version = "1.0" [dependencies.js-sys] version = "0.3" [dependencies.pin-project] version = "1.0" optional = true [dependencies.serde] version = "1.0" optional = true [dependencies.serde_json] version = "1.0" optional = true [dependencies.thiserror] version = "1.0" [dependencies.wasm-bindgen] version = "0.2" [dependencies.wasm-bindgen-futures] version = "0.4" [dependencies.web-sys] version = "0.3" [dev-dependencies.futures] version = "0.3" [dev-dependencies.once_cell] version = "1" [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.wasm-bindgen-test] version = "0.3" [features] default = [ "json", "websocket", "http", "eventsource", ] eventsource = [ "futures-channel", "futures-core", "pin-project", "web-sys/Event", "web-sys/EventTarget", "web-sys/EventSource", "web-sys/MessageEvent", ] http = [ "web-sys/Headers", "web-sys/UrlSearchParams", "web-sys/Url", "web-sys/Request", "web-sys/RequestInit", "web-sys/RequestMode", "web-sys/Response", "web-sys/ResponseInit", "web-sys/ResponseType", "web-sys/RequestCache", "web-sys/RequestCredentials", "web-sys/ObserverCallback", "web-sys/RequestRedirect", "web-sys/ReferrerPolicy", "web-sys/AbortSignal", "web-sys/ReadableStream", "web-sys/Blob", "web-sys/FormData", ] io-util = ["futures-io"] json = [ "serde", "serde_json", "gloo-utils/serde", ] websocket = [ "web-sys/WebSocket", "web-sys/AddEventListenerOptions", "web-sys/ErrorEvent", "web-sys/FileReader", "web-sys/MessageEvent", "web-sys/ProgressEvent", "web-sys/CloseEvent", "web-sys/CloseEventInit", "web-sys/BinaryType", "web-sys/Blob", "futures-channel", "futures-core", "futures-sink", "pin-project", ]