| Crates.io | wasmasc |
| lib.rs | wasmasc |
| version | 0.1.1 |
| created_at | 2025-10-25 05:37:55.943857+00 |
| updated_at | 2025-10-25 10:51:28.141338+00 |
| description | AssemblyScript WebAssembly plugin for Wasmrun - compile AssemblyScript projects to WebAssembly |
| homepage | https://github.com/anistark/wasmasc |
| repository | https://github.com/anistark/wasmasc |
| max_upload_size | |
| id | 1899748 |
| size | 52,035 |
AssemblyScript WebAssembly plugin for Wasmrun - compile AssemblyScript projects to WebAssembly with support for both direct asc compilation and npm/pnpm/yarn/bun build workflows.
wasmrun plugin install wasmasc
Wasmrun will automatically detect AssemblyScript projects and prompt you to install this plugin if needed.
cargo install --path . --features cli
cargo install wasmasc --features cli
wasmrun run ./my-asc-project
wasmrun compile ./my-asc-project --optimization size
wasmasc compile -p ./my-project -o ./dist
wasmasc compile -p ./my-project --optimization release
wasmasc check-deps
wasmasc can-handle ./my-project
Use just commands for common development tasks:
just dev # Quick development cycle (format, lint, test, build-cli)
just format # Format code
just lint # Lint code
just test # Run tests
just build # Build library
just build-cli # Build with CLI feature
just clean # Clean build artifacts
just install-cli # Install locally
Run just --list to see all available commands.
Supports standard AssemblyScript project layouts:
my-asc-project/
├── assembly/
│ ├── index.ts
│ └── main.ts
├── package.json
└── index.ts
asc - AssemblyScript compiler (npm install -g asc)node - Node.js runtimeThe plugin intelligently detects and uses your preferred package manager:
npm - Default Node.js package manageryarn - Fast, reliable package manager (detected via yarn.lock)pnpm - Efficient, disk space saving package manager (detected via pnpm-lock.yaml)bun - Fast JavaScript runtime with bundled npm alternative (detected via bun.lockb)If none are explicitly locked, the plugin falls back to npm.
.ts files to WebAssembly using ascwasmrun compile ./my-asc-project --optimization release
wasmrun ./my-asc-project
wasmrun compile ./my-asc-project -o ./custom-dist --optimization size
Install the AssemblyScript compiler globally:
npm install -g asc
Install at least one of: npm, yarn, pnpm, or bun
Ensure your project has one of:
"asc" or "@asc" in package.jsonassembly/index.ts or assembly/main.ts.ts files in the projectThis plugin is part of the Wasmrun plugin ecosystem. All plugins follow the same FFI-based architecture for dynamic loading and can be updated independently.
This plugin implements the Wasm plugin interface and reads its configuration from Cargo.toml. The configuration includes: