Skip to content

Commit 94da494

Browse files
docs: Clean README file.
1 parent 3419396 commit 94da494

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

README.md

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -76,30 +76,9 @@ edge -h # List all commands
7676

7777
The runtime spawns a Web Worker that pre-fetches imports, dispatches native calls, and streams `print()` output back.
7878

79-
### Consume the release from a Rust host
79+
### Rust host / server / edge runtimes
8080

81-
Declare `edge-python` as a dependency and `compiler.wasm` from the matching GitHub Release is fetched into `OUT_DIR` automatically, no manual download.
82-
83-
```toml
84-
# Cargo.toml
85-
[dependencies]
86-
edge-python = { git = "https://github.com/dylan-sutton-chavez/edge-python", tag = "v0.1.0" }
87-
```
88-
89-
```rust
90-
// build.rs
91-
fn main() {
92-
println!("cargo::rerun-if-changed=build.rs");
93-
let wasm = std::env::var("DEP_COMPILER_LIB_WASM").expect("`DEP_COMPILER_LIB_WASM` unset, upstream must declare `links = \"compiler\"`");
94-
std::fs::copy(&wasm, "runtime/compiler.wasm").expect("copy failed");
95-
}
96-
```
97-
98-
Pin to a tag for reproducible builds; use `branch = "main"` for unreleased changes. Requires `curl` on PATH. Gated by the default-on `prebuilt` feature.
99-
100-
### Server / edge runtimes (Wasmtime, Wasmer, Cloudflare Workers, Fastly Compute, Spin)
101-
102-
Edge Python is a `cdylib`, your host instantiates `compiler.wasm` and calls its exports. The same `.wasm` you serve to browsers is the server-side artifact; the host owns I/O, fetching, and output (WASI / runtime APIs instead of `fetch` / `postMessage`). No server-side CLI ships here (the `cli/` tool targets the browser runtime), so embed `compiler.wasm` in around 50 LOC wasmtime shell for local dev.
81+
Edge Python is a `cdylib`: your host instantiates `compiler.wasm` and calls its exports (Wasmtime, Wasmer, Cloudflare Workers, Fastly Compute, Spin). The same `.wasm` served to browsers is the server-side artifact; the host owns I/O. Declaring `edge-python` as a Cargo dependency fetches the matching release `.wasm` automatically, see [`compiler/README.md`](compiler/README.md).
10382

10483
## What it is
10584

0 commit comments

Comments
 (0)