@thi.ng/wasm-api
Advanced tools
Comparing version 1.2.1 to 1.2.2
# Change Log | ||
- **Last updated**: 2022-12-02T14:13:34Z | ||
- **Last updated**: 2022-12-06T17:16:38Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
{ | ||
"name": "@thi.ng/wasm-api", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects", | ||
@@ -118,3 +118,3 @@ "type": "module", | ||
}, | ||
"gitHead": "7d1e314f207299ff3c1a782d287ad99120b40b85\n" | ||
"gitHead": "54c5f22520162bac0d58426a3f86ca636e797f71\n" | ||
} |
@@ -59,4 +59,4 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
by this package | ||
7. [Zig build files]() to simplify using hybrid TS/Zig packages with the | ||
built-in build system | ||
7. [Zig build files](#using-the-zig-build-system) to simplify using hybrid | ||
TS/Zig packages with the built-in build system | ||
8. Extensible shared [datatype code generator | ||
@@ -309,3 +309,5 @@ infrastructure](https://github.com/thi-ng/umbrella/tree/develop/packages/wasm-api-bindgen/) | ||
This package provides utilities to simplify using hybrid TS/Zig WASM API modules which are distributed as NPM packages. Using these utils, a build file for Zig's built-in build system is as simple as: | ||
This package provides utilities to simplify using hybrid TS/Zig WASM API modules | ||
which are distributed as NPM packages. Using these utils, a build file for Zig's | ||
built-in build system is as simple as: | ||
@@ -316,3 +318,5 @@ ```zig | ||
pub fn build(b: *std.build.Builder) void { | ||
@import("node_modules/@thi.ng/wasm-api/zig/build.zig").wasmLib(b, .{ | ||
// obtain a standard std.build.LibExeObjStep, pre-configured w/ given options | ||
// see source comments in imported build.zig for further details... | ||
var lib = @import("node_modules/@thi.ng/wasm-api/zig/build.zig").wasmLib(b, .{ | ||
// Declare extra WASM API packages to use | ||
@@ -328,3 +332,8 @@ // Each package can also declare dependencies to other such packages | ||
.mode = .ReleaseSmall, | ||
}).install(); | ||
}); | ||
// optionally, add further custom configuration | ||
// ... | ||
// finally trigger build | ||
lib.install(); | ||
} | ||
@@ -331,0 +340,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
131996
540