@powerlines/plugin-napi-rs 0.2.274 → 0.2.275

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.
Files changed (2) hide show
  1. package/README.md +29 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -76,6 +76,35 @@ A package containing a Powerlines plugin for integrating with [N-API Rust](https
76
76
 
77
77
  <!-- END doctoc -->
78
78
 
79
+ ## Features
80
+
81
+ - Builds the project's Rust crate through the N-API CLI.
82
+ - Writes the generated bindings to the configured output directory.
83
+ - Supports options such as `binaryName` and `release`.
84
+ - Ships helper utilities (e.g. path formatting) for native modules.
85
+
86
+ ## Usage
87
+
88
+ Install the package:
89
+
90
+ ```bash
91
+ pnpm add @powerlines/plugin-napi-rs
92
+ ```
93
+
94
+ Register the plugin in `powerlines.config.ts`:
95
+
96
+ ```ts
97
+ import { defineConfig } from "powerlines/config";
98
+ import { plugin as napi } from "@powerlines/plugin-napi-rs";
99
+
100
+ export default defineConfig({
101
+ plugins: [napi({ binaryName: "my-addon", release: true })],
102
+ napi: { binaryName: "my-addon", release: true }
103
+ });
104
+ ```
105
+
106
+ Then run the Powerlines build for your project.
107
+
79
108
  ## Installing
80
109
 
81
110
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-napi-rs",
3
- "version": "0.2.274",
3
+ "version": "0.2.275",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for integrating with N-API Rust modules.",
6
6
  "keywords": ["napi-rs", "powerlines", "storm-software", "powerlines-plugin"],
@@ -137,9 +137,9 @@
137
137
  "@alloy-js/markdown": "^0.24.0",
138
138
  "@alloy-js/typescript": "^0.24.0",
139
139
  "@napi-rs/cli": "^3.10.9",
140
- "@powerlines/plugin-alloy": "^0.26.314",
141
- "@powerlines/plugin-babel": "^0.13.213",
142
- "@powerlines/plugin-automd": "^0.1.678",
140
+ "@powerlines/plugin-alloy": "^0.26.315",
141
+ "@powerlines/plugin-babel": "^0.13.214",
142
+ "@powerlines/plugin-automd": "^0.1.679",
143
143
  "@stryke/convert": "^0.7.47",
144
144
  "@stryke/fs": "^0.33.118",
145
145
  "@stryke/path": "^0.29.43",
@@ -148,15 +148,15 @@
148
148
  "@stryke/types": "^0.12.44",
149
149
  "automd": "^0.4.3",
150
150
  "defu": "^6.1.7",
151
- "powerlines": "^0.47.216"
151
+ "powerlines": "^0.47.217"
152
152
  },
153
153
  "devDependencies": {
154
154
  "@napi-rs/wasm-runtime": "^1.2.5",
155
- "@powerlines/plugin-plugin": "^0.12.629",
155
+ "@powerlines/plugin-plugin": "^0.12.630",
156
156
  "@types/node": "^25.9.9"
157
157
  },
158
158
  "peerDependencies": { "@napi-rs/wasm-runtime": ">=1.1.4" },
159
159
  "peerDependenciesMeta": { "@napi-rs/wasm-runtime": { "optional": true } },
160
160
  "publishConfig": { "access": "public" },
161
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
161
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
162
162
  }