# 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.80" name = "ianaio-net" version = "0.1.0" authors = [ "IanaIO Rust and WebAssembly Working Group", "Jaroslaw Cichon ", ] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "HTTP requests library for WASM Apps" homepage = "https://rustwasm.iana.io/net" documentation = "https://docs.iana.io/rustwasm/net" readme = "README.md" keywords = [ "requests", "http", "wasm", "websockets", ] categories = [ "wasm", "web-programming::http-client", "api-bindings", ] license-file = "LICENSE.txt" repository = "https://github.com/rustwasm/ianaio" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "ianaio_net" path = "src/lib.rs" [[test]] name = "query" path = "tests/query.rs" [[test]] name = "http" path = "tests/http.rs" [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.http] version = "1.0" [dependencies.ianaio-utils] version = "0.1.0" default-features = false [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/Window", "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", "web-sys/WorkerGlobalScope", ] io-util = ["futures-io"] json = [ "serde", "serde_json", "ianaio-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", ]