Phase 4 — Permission-gated HTTP fetch op: - op_fetch with net permission check on every request - globalThis.fetch() wrapper with .json()/.text() methods - Supports GET/POST/PUT/DELETE with headers and body Phase 5 — Module loader: - WfeModuleLoader resolving npm: → esm.sh, https://, file://, relative paths - All resolution paths permission-checked - Bare path resolution (/) for esm.sh sub-module redirects - Dynamic import rejection unless permissions.dynamic_import: true - esm.sh auto-added to net allowlist when modules declared Mandatory npm integration test (is-number via esm.sh). 25 new tests. 133 total deno tests, 326 total workspace tests.
61 lines
1.5 KiB
TOML
61 lines
1.5 KiB
TOML
[workspace]
|
|
members = ["wfe-core", "wfe-sqlite", "wfe-postgres", "wfe-opensearch", "wfe-valkey", "wfe", "wfe-yaml"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
|
|
[workspace.dependencies]
|
|
# Core
|
|
tokio = { version = "1", features = ["full"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
async-trait = "0.1"
|
|
uuid = { version = "1", features = ["v4", "serde"] }
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
thiserror = "2"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
tracing-opentelemetry = "0.28"
|
|
opentelemetry = "0.27"
|
|
opentelemetry_sdk = { version = "0.27", features = ["rt-tokio"] }
|
|
opentelemetry-otlp = { version = "0.27", features = ["tonic"] }
|
|
|
|
# HTTP
|
|
reqwest = { version = "0.12", features = ["json"] }
|
|
|
|
# Persistence
|
|
sqlx = { version = "0.8", features = ["runtime-tokio", "tls-rustls", "sqlite", "postgres", "chrono", "uuid", "json"] }
|
|
|
|
# Redis/Valkey
|
|
redis = { version = "0.27", features = ["tokio-comp", "connection-manager"] }
|
|
|
|
# Search
|
|
opensearch = "2"
|
|
|
|
# Internal crates
|
|
wfe-core = { path = "wfe-core" }
|
|
wfe-sqlite = { path = "wfe-sqlite" }
|
|
wfe-postgres = { path = "wfe-postgres" }
|
|
wfe-opensearch = { path = "wfe-opensearch" }
|
|
wfe-valkey = { path = "wfe-valkey" }
|
|
wfe-yaml = { path = "wfe-yaml" }
|
|
|
|
# YAML
|
|
serde_yaml = "0.9"
|
|
regex = "1"
|
|
|
|
# Deno runtime
|
|
deno_core = "0.394"
|
|
deno_error = "0.7"
|
|
url = "2"
|
|
|
|
# Dev/Test
|
|
pretty_assertions = "1"
|
|
rstest = "0.23"
|
|
wiremock = "0.6"
|
|
tokio-stream = "0.1"
|
|
tempfile = "3"
|