Documentation
¶
Overview ¶
Command fetch-libskia downloads the pinned rust-skia prebuilt libskia.a for the current platform into deps/<GOOS>_<GOARCH>/, checksum-verified against a pinned SHA-256. libskia.a is gitignored (a ~15 MB binary); this script is the only way a fresh clone obtains it — the same model v8go uses for libv8.a.
We deliberately DROP libskia-bindings.a and bindings.rs from the archive: those are Rust-specific (rust-skia's own C trampolines + bindgen output). goskia writes its own extern "C" trampolines over raw Skia C++, so only the standalone libskia.a (+ the Skia license for attribution) is needed.
Usage:
go run scripts/fetch-libskia.go
Currently linux/amd64 only (the rust-skia target x86_64-unknown-linux-gnu). Other platforms: pick the matching archive key from https://github.com/rust-skia/skia-binaries/releases and add a case below.