feat(web): show Patreon supporters on the web build too
The browser can't call the Patreon API directly (CORS, and the token would be exposed in the bundle), so the web build fetches a pre-generated supporters.json served on the same origin. The Pages workflow generates it server-side with the token (CI secret) after the trunk build. Native keeps its live API fetch. serde_json moves to the shared dependencies so the wasm build can parse the list. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
572e9aca01
commit
0e74a11724
4 changed files with 72 additions and 3 deletions
|
|
@ -22,6 +22,8 @@ default = ["solid3d"]
|
|||
solid3d = ["dep:truck-meshalgo", "dep:truck-shapeops", "dep:lzma-sys"]
|
||||
|
||||
[dependencies]
|
||||
# JSON: plugin marketplace / Patreon fetch (native) + web supporters.json parse.
|
||||
serde_json = "1"
|
||||
# Stable, dependency-free add-on contract (manifest + ribbon/CadModule types).
|
||||
# Plugin authors target this crate's semver, not OpenCADStudio internals.
|
||||
# The `host` feature (out-of-process plugin runtime: interprocess, libloading,
|
||||
|
|
@ -89,8 +91,6 @@ open = "5"
|
|||
# `memchr` (1.0.2) via lopdf → nom_locate, and the web build has no filesystem.
|
||||
printpdf = { version = "0.9.1", default-features = false }
|
||||
ureq = { version = "3", default-features = false, features = ["rustls"] }
|
||||
# Parse the GitHub Releases API response for the plugin marketplace.
|
||||
serde_json = "1"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
# Web gets the dependency-free manifest/ribbon contract only (no plugin host).
|
||||
|
|
|
|||
Loading…
Reference in a new issue