@rsvelte/compiler 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/package.json +1 -1
- package/svelte_compiler_rust_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -172,6 +172,15 @@ The Rust API is the same surface OXC will eventually wire `oxlint` / `oxfmt` int
|
|
|
172
172
|
|
|
173
173
|
A `cdylib` exposing a stable C ABI ships in [`crates/rsvelte_capi`](crates/rsvelte_capi). One shared library + one cbindgen-generated header (`rsvelte.h`) lets any language with a C FFI drive the same compiler — UTF-8 JSON in, UTF-8 JSON out, no per-language schema generation.
|
|
174
174
|
|
|
175
|
+
**Download prebuilt binaries** from [GitHub Releases](https://github.com/baseballyama/rsvelte/releases) under the `capi-vX.Y.Z` tag scheme (`darwin-{arm64,x64}`, `linux-{x64,arm64}-gnu`, `win32-x64-msvc`; each archive ships the dylib + static archive + `rsvelte.h` + checksums):
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
VERSION=0.1.1 TRIPLE=darwin-arm64
|
|
179
|
+
curl -L "https://github.com/baseballyama/rsvelte/releases/download/capi-v${VERSION}/rsvelte_capi-${VERSION}-${TRIPLE}.tar.gz" | tar -xz
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
Or build from source:
|
|
183
|
+
|
|
175
184
|
```bash
|
|
176
185
|
cargo build -p rsvelte_capi --release
|
|
177
186
|
# → target/release/librsvelte_capi.{dylib,so,a}, rsvelte_capi.dll
|
|
@@ -213,7 +222,7 @@ A single-threaded **100× speedup** over the JS compiler is one of this project'
|
|
|
213
222
|
## Compatibility
|
|
214
223
|
|
|
215
224
|
<!-- svelte-target-version -->
|
|
216
|
-
**Targeting Svelte `v5.
|
|
225
|
+
**Targeting Svelte `v5.55.9`** ([`b65a3f3fc5e1`](https://github.com/sveltejs/svelte/commit/b65a3f3fc5e1)) — automatically maintained by `pnpm run update-docs`.
|
|
217
226
|
<!-- /svelte-target-version -->
|
|
218
227
|
|
|
219
228
|
Current compatibility with the official Svelte compiler test suite:
|
package/package.json
CHANGED
|
Binary file
|