web-api-cat 0.7.1

Bindings between boa-cat (JS engine) and the DOM (html-cat tree) plus fetch (net-cat). v0.7.1 upgrades `fetch(url)` to return a `Promise<Response>` matching the DOM Fetch API shape: success becomes a resolved Promise carrying the response Object; bad URL / argument errors become a rejected Promise with a `TypeError:`-prefixed string reason; `response.text()` returns a resolved `Promise<string>` of the body; `response.json()` is a rejected-stub deferring to `JSON.parse(await r.text())` (ecma-runtime-cat already exposes JSON.parse). Scripts now use `await fetch(url)` and `fetch(url).then(r => r.text())` end-to-end through the engine's microtask driver. Seventh sub-crate of a Servo-replacement webview runtime targeting Tauri.
# 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 = "web-api-cat"
version = "0.7.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bindings between boa-cat (JS engine) and the DOM (html-cat tree) plus fetch (net-cat).  v0.7.1 upgrades `fetch(url)` to return a `Promise<Response>` matching the DOM Fetch API shape: success becomes a resolved Promise carrying the response Object; bad URL / argument errors become a rejected Promise with a `TypeError:`-prefixed string reason; `response.text()` returns a resolved `Promise<string>` of the body; `response.json()` is a rejected-stub deferring to `JSON.parse(await r.text())` (ecma-runtime-cat already exposes JSON.parse).  Scripts now use `await fetch(url)` and `fetch(url).then(r => r.text())` end-to-end through the engine's microtask driver.  Seventh sub-crate of a Servo-replacement webview runtime targeting Tauri."
readme = "README.md"
keywords = [
    "dom",
    "fetch",
    "javascript",
    "boa",
    "type-driven",
]
categories = ["web-programming"]
license = "MIT OR Apache-2.0"

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

[[test]]
name = "class_list"
path = "tests/class_list.rs"

[[test]]
name = "clone_node"
path = "tests/clone_node.rs"

[[test]]
name = "cookie"
path = "tests/cookie.rs"

[[test]]
name = "dom"
path = "tests/dom.rs"

[[test]]
name = "dom_mutation"
path = "tests/dom_mutation.rs"

[[test]]
name = "extract"
path = "tests/extract.rs"

[[test]]
name = "fetch_promise"
path = "tests/fetch_promise.rs"

[[test]]
name = "inner_html"
path = "tests/inner_html.rs"

[[test]]
name = "outer_html"
path = "tests/outer_html.rs"

[[test]]
name = "parent"
path = "tests/parent.rs"

[[test]]
name = "replace_child"
path = "tests/replace_child.rs"

[[test]]
name = "sibling"
path = "tests/sibling.rs"

[[test]]
name = "storage"
path = "tests/storage.rs"

[[test]]
name = "style"
path = "tests/style.rs"

[dependencies.boa-cat]
version = "0.7"

[dependencies.dom-cat]
version = "0.1"

[dependencies.html-cat]
version = "0.1"

[dependencies.net-cat]
version = "0.1"

[dev-dependencies.ecma-lex-cat]
version = "0.1"

[dev-dependencies.ecma-parse-cat]
version = "0.3"

[dev-dependencies.proptest]
version = "1"

[lints.clippy]
manual_map = "warn"
needless_pass_by_value = "warn"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1