@jdxcode/aube-ffi-win32-arm64 0.0.1-placeholder → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,25 @@
1
- # @jdxcode/aube-ffi-win32-arm64
2
-
3
- Placeholder release reserving this name for [aube](https://github.com/jdx/aube)'s embedding packages. The real packages are published by aube's release automation.
1
+ # aube C ABI
2
+
3
+ `@jdxcode/aube-ffi` distributes aube's C ABI for Bun FFI, Deno FFI,
4
+ Node.js FFI loaders, Python `ctypes`, and native applications. The root npm
5
+ package selects one of eight platform packages and exports `libraryPath`,
6
+ `headerPath`, and `target`.
7
+
8
+ ```sh
9
+ npm install @jdxcode/aube-ffi
10
+ ```
11
+
12
+ The same libraries and `aube.h` are attached to GitHub releases for hosts that
13
+ do not consume npm packages.
14
+
15
+ The ABI uses asynchronous operation handles. `aube_install` and `aube_add`
16
+ return immediately; `aube_cancel` requests cooperative cancellation and
17
+ `aube_wait` blocks until the result is available. Event callbacks run on
18
+ aube-managed threads and must be thread-safe. Strings returned by the library
19
+ must be released with `aube_string_free`.
20
+ A callback-driven host should call `aube_wait` after its terminal event to
21
+ release the completed operation handle without blocking.
22
+
23
+ See the [C ABI embedding guide](https://aube.jdx.dev/embedding/ffi) for schemas,
24
+ ownership rules, and examples. For support, use
25
+ [GitHub Discussions](https://github.com/jdx/aube/discussions).
package/aube.dll ADDED
Binary file
package/index.js CHANGED
@@ -1 +1,3 @@
1
- throw new Error("@jdxcode/aube-ffi-win32-arm64 0.0.1-placeholder is a placeholder published to reserve the package name; install a real release instead: https://github.com/jdx/aube")
1
+ const path = require("node:path")
2
+ exports.libraryPath = path.join(__dirname, "aube.dll")
3
+ exports.target = "aarch64-pc-windows-msvc"
package/package.json CHANGED
@@ -1,8 +1,20 @@
1
1
  {
2
2
  "name": "@jdxcode/aube-ffi-win32-arm64",
3
- "version": "0.0.1-placeholder",
4
- "description": "Placeholder reserving the name for aube's first embedding release. Do not install; see https://github.com/jdx/aube",
3
+ "version": "1.29.0",
4
+ "description": "Platform library for @jdxcode/aube-ffi; install the root package instead",
5
5
  "license": "MIT",
6
6
  "repository": "https://github.com/jdx/aube",
7
- "main": "index.js"
7
+ "main": "index.js",
8
+ "files": [
9
+ "index.js",
10
+ "aube.dll",
11
+ "README.md"
12
+ ],
13
+ "preferUnplugged": true,
14
+ "os": [
15
+ "win32"
16
+ ],
17
+ "cpu": [
18
+ "arm64"
19
+ ]
8
20
  }