@powerlines/plugin-napi-rs 0.2.274 → 0.2.276

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
@@ -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/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_types_targets = require("./types/targets.cjs");
3
- require("./types/index.cjs");
4
2
  const require_helpers_format_path = require("./helpers/format-path.cjs");
3
+ require("./types/index.cjs");
4
+ const require_types_targets = require("./types/targets.cjs");
5
5
  let _stryke_path_append = require("@stryke/path/append");
6
6
  let powerlines_plugin_utils = require("powerlines/plugin-utils");
7
7
  let _napi_rs_cli = require("@napi-rs/cli");
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { DEFAULT_TARGETS } from "./types/targets.mjs";
2
- import "./types/index.mjs";
3
1
  import { formatPath } from "./helpers/format-path.mjs";
2
+ import "./types/index.mjs";
3
+ import { DEFAULT_TARGETS } from "./types/targets.mjs";
4
4
  import { appendPath } from "@stryke/path/append";
5
5
  import { isVerbose } from "powerlines/plugin-utils";
6
6
  import { NapiCli, parseTriple } from "@napi-rs/cli";
@@ -1,4 +1,4 @@
1
+ import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-B0S0ZSGJ.cjs";
1
2
  import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "../targets-CcccBpB3.cjs";
2
3
  import { n as WasmOptions, t as WasmBrowserOptions } from "../wasm-DDGo7VaA.cjs";
3
- import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-B0S0ZSGJ.cjs";
4
4
  export { AVAILABLE_TARGETS, DEFAULT_TARGETS, NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions, Platform, Target, TargetTriple, WasmBrowserOptions, WasmOptions };
@@ -1,4 +1,4 @@
1
+ import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-CswWz__e.mjs";
1
2
  import { a as TargetTriple, i as Target, n as DEFAULT_TARGETS, r as Platform, t as AVAILABLE_TARGETS } from "../targets-CcccBpB3.mjs";
2
3
  import { n as WasmOptions, t as WasmBrowserOptions } from "../wasm-DDGo7VaA.mjs";
3
- import { a as NapiResolvedPluginOptions, i as NapiPluginUserConfig, n as NapiPluginOptions, r as NapiPluginResolvedConfig, t as NapiPluginContext } from "../plugin-CswWz__e.mjs";
4
4
  export { AVAILABLE_TARGETS, DEFAULT_TARGETS, NapiPluginContext, NapiPluginOptions, NapiPluginResolvedConfig, NapiPluginUserConfig, NapiResolvedPluginOptions, Platform, Target, TargetTriple, WasmBrowserOptions, WasmOptions };
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.276",
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,26 +137,26 @@
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",
143
- "@stryke/convert": "^0.7.47",
144
- "@stryke/fs": "^0.33.118",
145
- "@stryke/path": "^0.29.43",
146
- "@stryke/string-format": "^0.17.58",
147
- "@stryke/type-checks": "^0.6.49",
148
- "@stryke/types": "^0.12.44",
140
+ "@powerlines/plugin-alloy": "^0.26.316",
141
+ "@powerlines/plugin-babel": "^0.13.215",
142
+ "@powerlines/plugin-automd": "^0.1.680",
143
+ "@stryke/convert": "^0.7.48",
144
+ "@stryke/fs": "^0.33.119",
145
+ "@stryke/path": "^0.29.44",
146
+ "@stryke/string-format": "^0.17.59",
147
+ "@stryke/type-checks": "^0.6.50",
148
+ "@stryke/types": "^0.12.45",
149
149
  "automd": "^0.4.3",
150
150
  "defu": "^6.1.7",
151
- "powerlines": "^0.47.216"
151
+ "powerlines": "^0.47.218"
152
152
  },
153
153
  "devDependencies": {
154
- "@napi-rs/wasm-runtime": "^1.2.5",
155
- "@powerlines/plugin-plugin": "^0.12.629",
154
+ "@napi-rs/wasm-runtime": "^1.2.6",
155
+ "@powerlines/plugin-plugin": "^0.12.631",
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": "c71daefe09bbd0d26190c3096e0a30120d3a244b"
162
162
  }