@neon-rs/cli 0.0.139 → 0.0.141
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/index.js +57 -2
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -15535,6 +15535,13 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process
|
|
|
15535
15535
|
|
|
15536
15536
|
/***/ }),
|
|
15537
15537
|
|
|
15538
|
+
/***/ 1747:
|
|
15539
|
+
/***/ ((module) => {
|
|
15540
|
+
|
|
15541
|
+
module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:readline");
|
|
15542
|
+
|
|
15543
|
+
/***/ }),
|
|
15544
|
+
|
|
15538
15545
|
/***/ 2037:
|
|
15539
15546
|
/***/ ((module) => {
|
|
15540
15547
|
|
|
@@ -15574,6 +15581,7 @@ module.exports = __WEBPACK_EXTERNAL_createRequire(import.meta.url)("util");
|
|
|
15574
15581
|
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
15575
15582
|
|
|
15576
15583
|
const addon = __nccwpck_require__(8428);
|
|
15584
|
+
const readline = __nccwpck_require__(1747);
|
|
15577
15585
|
|
|
15578
15586
|
const PRIVATE = {};
|
|
15579
15587
|
|
|
@@ -15613,8 +15621,52 @@ class CargoMessages {
|
|
|
15613
15621
|
}
|
|
15614
15622
|
}
|
|
15615
15623
|
|
|
15624
|
+
class CargoReader {
|
|
15625
|
+
constructor(input, options) {
|
|
15626
|
+
options = options || {};
|
|
15627
|
+
this._mount = options.mount || null;
|
|
15628
|
+
this._manifestPath = options.manifestPath || null;
|
|
15629
|
+
this._verbose = options.verbose || false;
|
|
15630
|
+
this._input = input;
|
|
15631
|
+
this._kernel = addon.createReader(this._mount, this._manifestPath, this._verbose);
|
|
15632
|
+
}
|
|
15633
|
+
|
|
15634
|
+
async *[Symbol.asyncIterator]() {
|
|
15635
|
+
const rl = readline.createInterface({
|
|
15636
|
+
input: this._input
|
|
15637
|
+
});
|
|
15638
|
+
for await (const line of rl) {
|
|
15639
|
+
const { kernel, kind } = addon.readline(line);
|
|
15640
|
+
switch (kind) {
|
|
15641
|
+
case 0:
|
|
15642
|
+
yield new CompilerArtifact(PRIVATE, kernel);
|
|
15643
|
+
break;
|
|
15644
|
+
|
|
15645
|
+
case 1:
|
|
15646
|
+
case 2:
|
|
15647
|
+
case 3:
|
|
15648
|
+
case 4:
|
|
15649
|
+
throw new Error(`message type not yet implemented (code: ${kind})`);
|
|
15650
|
+
break;
|
|
15651
|
+
}
|
|
15652
|
+
}
|
|
15653
|
+
}
|
|
15654
|
+
}
|
|
15655
|
+
|
|
15656
|
+
class CompilerArtifact {
|
|
15657
|
+
constructor(nonce, kernel) {
|
|
15658
|
+
enforcePrivate(nonce, 'CompilerArtifact');
|
|
15659
|
+
this._kernel = kernel;
|
|
15660
|
+
}
|
|
15661
|
+
|
|
15662
|
+
crateName() {
|
|
15663
|
+
return addon.compilerArtifactCrateName(this._kernel);
|
|
15664
|
+
}
|
|
15665
|
+
}
|
|
15666
|
+
|
|
15616
15667
|
module.exports = {
|
|
15617
|
-
CargoMessages
|
|
15668
|
+
CargoMessages,
|
|
15669
|
+
CargoReader
|
|
15618
15670
|
};
|
|
15619
15671
|
|
|
15620
15672
|
|
|
@@ -15636,7 +15688,10 @@ module.exports = (__nccwpck_require__(4371)/* .lazy */ .Vo)({
|
|
|
15636
15688
|
'findArtifact',
|
|
15637
15689
|
'findFileByCrateType',
|
|
15638
15690
|
'fromStdin',
|
|
15639
|
-
'fromFile'
|
|
15691
|
+
'fromFile',
|
|
15692
|
+
'createReader',
|
|
15693
|
+
'compilerArtifactCrateName',
|
|
15694
|
+
'readline'
|
|
15640
15695
|
]);
|
|
15641
15696
|
|
|
15642
15697
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neon-rs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.141",
|
|
4
4
|
"description": "Command-line build tool for Neon modules.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": "./index.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/dherman/neon-rs#readme",
|
|
29
29
|
"optionalDependencies": {
|
|
30
|
-
"@cargo-messages/android-arm-eabi": "0.0.
|
|
31
|
-
"@cargo-messages/darwin-arm64": "0.0.
|
|
32
|
-
"@cargo-messages/darwin-x64": "0.0.
|
|
33
|
-
"@cargo-messages/linux-arm-gnueabihf": "0.0.
|
|
34
|
-
"@cargo-messages/linux-x64-gnu": "0.0.
|
|
35
|
-
"@cargo-messages/win32-arm64-msvc": "0.0.
|
|
36
|
-
"@cargo-messages/win32-x64-msvc": "0.0.
|
|
30
|
+
"@cargo-messages/android-arm-eabi": "0.0.140",
|
|
31
|
+
"@cargo-messages/darwin-arm64": "0.0.140",
|
|
32
|
+
"@cargo-messages/darwin-x64": "0.0.140",
|
|
33
|
+
"@cargo-messages/linux-arm-gnueabihf": "0.0.140",
|
|
34
|
+
"@cargo-messages/linux-x64-gnu": "0.0.140",
|
|
35
|
+
"@cargo-messages/win32-arm64-msvc": "0.0.140",
|
|
36
|
+
"@cargo-messages/win32-x64-msvc": "0.0.140"
|
|
37
37
|
}
|
|
38
38
|
}
|