@thi.ng/wasm-api-bindgen
Advanced tools
Comparing version 0.4.69 to 0.5.0
@@ -232,2 +232,8 @@ import type { BigType, FloatType, Fn, Fn2, IObjectOf, NumOrString } from "@thi.ng/api"; | ||
} | ||
/** | ||
* @remarks | ||
* For Zig v0.12.0 compatibility, the Zig codegen emits all function pointers | ||
* with the `callconv(.C)` attribute. Any function assigned to such a pointer | ||
* will also have to specify the same calling convention. | ||
*/ | ||
export interface FuncPointer extends TopLevelType { | ||
@@ -234,0 +240,0 @@ type: "funcptr"; |
# Change Log | ||
- **Last updated**: 2024-04-20T14:42:45Z | ||
- **Last updated**: 2024-04-22T09:56:21Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -12,2 +12,11 @@ | ||
## [0.5.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-bindgen@0.5.0) (2024-04-22) | ||
#### 🚀 Features | ||
- update Zig funcptr codegen to include `callconv(.C)` ([ac3da9e](https://github.com/thi-ng/umbrella/commit/ac3da9e)) | ||
- `callconv` explicitly required for function pointers in `extern struct`s in Zig v0.12 | ||
- update docs | ||
- update test snapshots | ||
### [0.4.69](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-bindgen@0.4.69) (2024-04-20) | ||
@@ -14,0 +23,0 @@ |
{ | ||
"name": "@thi.ng/wasm-api-bindgen", | ||
"version": "0.4.69", | ||
"version": "0.5.0", | ||
"description": "Polyglot bindings code generators for hybrid JS & WebAssembly projects", | ||
@@ -53,3 +53,3 @@ "type": "module", | ||
"@thi.ng/strings": "^3.7.31", | ||
"@thi.ng/wasm-api": "^1.4.69" | ||
"@thi.ng/wasm-api": "^1.5.0" | ||
}, | ||
@@ -125,3 +125,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "8339d05ecc857e529c7325a9839c0063b89e728d\n" | ||
"gitHead": "4e2bf6b12e35192e678b525fa699429370e357d3\n" | ||
} |
@@ -748,3 +748,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
Package sizes (brotli'd, pre-treeshake): ESM: 5.96 KB | ||
Package sizes (brotli'd, pre-treeshake): ESM: 5.97 KB | ||
@@ -751,0 +751,0 @@ ## Dependencies |
@@ -103,3 +103,3 @@ import { isNumber } from "@thi.ng/checks"; | ||
acc.push( | ||
`pub const ${ptr.name} = *const fn (${args}) ${rtype};`, | ||
`pub const ${ptr.name} = *const fn (${args}) callconv(.C) ${rtype};`, | ||
"" | ||
@@ -106,0 +106,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
127484
2452
Updated@thi.ng/wasm-api@^1.5.0