06 Nov 2020 10:58:50 UTC
- Distribution: Wasm
- Module version: 0.21
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Testers (51 / 0 / 0)
- KwaliteeBus factor: 1
- 93.86% Coverage
- License: perl_5
- Perl: v5.8.4
- Activity24 month
- Download (70.09KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Wasm::Hook - Automatically load WebAssembly modules without a Perl wrapper
use Wasm::Hook; use Foo::Bar; # will load Foo/Bar.wasm or Foo/Bar.wat if no Foo/Bar.pm is found no Wasm::Hook; # turns off automatic wasm / wat loading
WARNING: WebAssembly and Wasmtime are a moving target and the interface for these modules is under active development. Use with caution.
This module installs an
@INChook that automatically loads WebAssembly (Wasm) files so that they can be used like a Perl module, without:
Having to write a boilerplate
.pmfile that loads the WebAssembly
The caller needing to even know or care that the module is implemented in something other than Perl.
This module will only load a WebAssembly module if there is no Perl Module (
.pmfile) with the appropriate name.
The functions inside the WebAssembly module are exportable via the Exporter module.
@EXPORT_OKis used, so you will need to explicitly export functions.
Graham Ollis <firstname.lastname@example.org>
This software is copyright (c) 2020 by Graham Ollis.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.