[package]
edition = "2024"
rust-version = "1.100.0"
name = "fetchlet"
version = "0.1.0"
build = "build.rs"
links = "fetchlet"
exclude = [
"package.json",
"vite.config.ts",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust-hosted JavaScript functions and Fetch handlers with explicit host services"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/SegaraRai/fetchlet"
[package.metadata.docs.rs]
features = [
"quickjs",
"boa",
"process",
"web-apis",
]
[features]
boa = [
"dep:boa_engine",
"dep:boa_gc",
"dep:fetchlet-web",
]
compression = ["fetchlet-web?/compression"]
default = [
"quickjs",
"web-apis",
]
fuzzing = ["dep:fetchlet-web"]
node-crypto = ["fetchlet-web?/node-crypto"]
operation-counts = []
process = ["dep:libc"]
quickjs = [
"dep:rquickjs",
"dep:fetchlet-web",
]
url = ["fetchlet-web?/url"]
url-pattern = ["fetchlet-web?/url-pattern"]
v8 = [
"dep:deno_core",
"dep:deno_error",
"dep:fetchlet-web",
]
web-apis = [
"url",
"url-pattern",
"compression",
"web-crypto",
"node-crypto",
]
web-crypto = ["fetchlet-web?/web-crypto"]
[lib]
name = "fetchlet"
path = "src/lib.rs"
[[example]]
name = "embed"
path = "examples/embed.rs"
required-features = ["quickjs"]
[[test]]
name = "app"
path = "tests/app.rs"
[[test]]
name = "async_context"
path = "tests/async_context.rs"
[[test]]
name = "background"
path = "tests/background.rs"
[[test]]
name = "boa_options"
path = "tests/boa_options.rs"
[[test]]
name = "call_channels"
path = "tests/call_channels.rs"
[[test]]
name = "call_values"
path = "tests/call_values.rs"
[[test]]
name = "channels"
path = "tests/channels.rs"
[[test]]
name = "compression"
path = "tests/compression.rs"
[[test]]
name = "functions"
path = "tests/functions.rs"
[[test]]
name = "guest_isolation"
path = "tests/guest_isolation.rs"
[[test]]
name = "handle"
path = "tests/handle.rs"
[[test]]
name = "heap"
path = "tests/heap.rs"
[[test]]
name = "host_runtime"
path = "tests/host_runtime.rs"
[[test]]
name = "in_process"
path = "tests/in_process.rs"
[[test]]
name = "instances"
path = "tests/instances.rs"
[[test]]
name = "interrupts"
path = "tests/interrupts.rs"
[[test]]
name = "isolation"
path = "tests/isolation.rs"
harness = false
required-features = [
"process",
"quickjs",
]
[[test]]
name = "pool"
path = "tests/pool.rs"
[[test]]
name = "rejections"
path = "tests/rejections.rs"
[[test]]
name = "requirements"
path = "tests/requirements.rs"
[[test]]
name = "sockets"
path = "tests/sockets.rs"
[[test]]
name = "stack_trace"
path = "tests/stack_trace.rs"
[[test]]
name = "streaming"
path = "tests/streaming.rs"
[[test]]
name = "uploads"
path = "tests/uploads.rs"
[[test]]
name = "v8_termination"
path = "tests/v8_termination.rs"
[[test]]
name = "websocket"
path = "tests/websocket.rs"
[[test]]
name = "websocket_client"
path = "tests/websocket_client.rs"
[dependencies.anyhow]
version = "1"
[dependencies.boa_engine]
version = "0.22"
features = ["annex-b"]
optional = true
[dependencies.boa_gc]
version = "0.22"
optional = true
[dependencies.bytes]
version = "1"
[dependencies.deno_core]
version = "=0.413.0"
optional = true
[dependencies.deno_error]
version = "=0.7.1"
optional = true
[dependencies.fetchlet-web]
version = "=0.1.0"
optional = true
default-features = false
[dependencies.futures-core]
version = "0.3"
[dependencies.futures-sink]
version = "0.3"
[dependencies.http]
version = "1"
[dependencies.http-body]
version = "1"
[dependencies.rquickjs]
version = "0.14"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt",
"macros",
"time",
"sync",
]
[dependencies.url]
version = "2"
[dev-dependencies.bytes]
version = "1"
features = ["serde"]
[dev-dependencies.flate2]
version = "1"
[dev-dependencies.futures-util]
version = "0.3"
features = ["sink"]
default-features = false
[target.'cfg(any(target_os = "linux", target_os = "macos"))'.dependencies.libc]
version = "0.2"
optional = true