wasm

package
v0.10.8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: BSD-3-Clause Imports: 7 Imported by: 5

Documentation

Index

Constants

View Source
const (
	Utils         = "utils"
	ConfigVersion = "0.1.0"
	BuildFile     = "build.sh"

	WasmFileName       = "main"
	WasmExt            = ".wasm"
	WasmCompressedExt  = ".zwasm"
	ZipFile            = "artifact.zip"
	WasmFile           = "main.wasm"
	DeprecatedWasmFile = "artifact.wasm"

	BufferSize = 1024
)

Variables

This section is empty.

Functions

func LanguageAliases added in v0.9.2

func LanguageAliases() map[SupportedLanguage][]string

func SupportedLanguages added in v0.9.1

func SupportedLanguages() map[SupportedLanguage]string

func WasmDeprecatedOutput added in v0.10.6

func WasmDeprecatedOutput(outDir string) string

func WasmOutput added in v0.9.5

func WasmOutput(outDir string) string

Types

type Dir

type Dir struct{ builders.Dir }

func (Dir) WasmCompressed

func (d Dir) WasmCompressed() string

func (Dir) Zip added in v0.10.6

func (d Dir) Zip() string

type SupportedLanguage added in v0.9.1

type SupportedLanguage string
const (
	Rust           SupportedLanguage = "Rust"
	Go             SupportedLanguage = "Go"
	AssemblyScript SupportedLanguage = "Assembly_Script"
)

Supported Languages

func LangFromExt added in v0.9.1

func LangFromExt(ext string) *SupportedLanguage

func (SupportedLanguage) CopyFunctionTemplateConfig added in v0.9.1

func (s SupportedLanguage) CopyFunctionTemplateConfig(templateRepo *git.Repository, wd, destination string) error

func (SupportedLanguage) Extension added in v0.9.1

func (s SupportedLanguage) Extension() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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