scripts

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL