magefiles

package module
v0.0.0-...-abe7b54 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bench

func Bench() error

Bench runs benchmarks in the default configuration for a Go app, using wazero.

func BenchAll

func BenchAll() error

BenchAll runs all benchmark types and outputs with benchstat. A C++ toolchain and libinjection must be installed to run.

func BenchCGO

func BenchCGO() error

BenchCGO runs benchmarks with cgo instead of wasm. A C++ toolchain and the library must be installed to run.

func BenchDefault

func BenchDefault() error

BenchDefault runs benchmarks using the reference library for comparison.

func Check

func Check()

Check runs lint and tests.

func Format

func Format() error

Format autoformats the code.

func Lint

func Lint() error

Lint runs lint checks.

func SetLibraryName

func SetLibraryName(name string)

SetLibraryName sets the library name of the importing project. It is used to determine things like build tags.

func SetLibraryRepo

func SetLibraryRepo(repo string)

SetLibraryRepo sets the github repository of the upstream library being built.

func Test

func Test() error

Test runs unit tests - by default, it uses wazero; set WASI_TEST_MODE=cgo or WASI_TEST_MODE=tinygo to use either

func UpdateLibs

func UpdateLibs() error

UpdateLibs updates the precompiled wasm libraries.

func UpdateUpstream

func UpdateUpstream() error

UpdateUpstream sets the upstream version in buildtools/wasm/version.txt to the latest.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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