Skip to content
This repository has been archived by the owner on Jun 6, 2020. It is now read-only.
/ Wasm-Hook Public archive

Automatically load WebAssembly modules without a Perl wrapper

Notifications You must be signed in to change notification settings

perlwasm/Wasm-Hook

Repository files navigation

Wasm::Hook Build Status windows macos

Automatically load WebAssembly modules without a Perl wrapper

SYNOPSIS

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

DESCRIPTION

NOTE: This distribution has been merged into Wasm. The repository remains on GitHub out of historical interest. Please find the latest version of this module either on metacpan or GitHub at:

This module installs an @INC hook that automatically loads WebAssembly (Wasm) files so that they can be used like a Perl module, without:

The functions inside the WebAssembly module are exportable via the Exporter module. @EXPORT_OK is used, so you will need to explicitly export functions.

  • Having to write a boilerplate .pm file 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 now Perl Module (.pm file) with the appropriate name.

SEE ALSO

AUTHOR

Graham Ollis [email protected]

COPYRIGHT AND LICENSE

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.

About

Automatically load WebAssembly modules without a Perl wrapper

Resources

Stars

Watchers

Forks

Packages

No packages published