@napi-rs/cli 3.7.2 → 3.7.4
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/dist/cli.js +240 -64
- package/dist/index.cjs +239 -63
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +240 -64
- package/package.json +3 -3
- package/src/api/__tests__/__snapshots__/templates.spec.ts.md +353 -0
- package/src/api/__tests__/__snapshots__/templates.spec.ts.snap +0 -0
- package/src/api/__tests__/android-build.spec.ts +113 -0
- package/src/api/__tests__/artifacts.spec.ts +95 -0
- package/src/api/__tests__/build-regressions.spec.ts +128 -0
- package/src/api/__tests__/build.spec.ts +1020 -0
- package/src/api/__tests__/create-npm-dirs.spec.ts +561 -0
- package/src/api/__tests__/new-node-api-version.spec.ts +87 -0
- package/src/api/__tests__/new.spec.ts +527 -0
- package/src/api/__tests__/rename.spec.ts +181 -0
- package/src/api/__tests__/templates.spec.ts +164 -0
- package/src/api/__tests__/universalize.spec.ts +128 -0
- package/src/api/artifacts.ts +7 -16
- package/src/api/build.ts +354 -111
- package/src/api/new.ts +65 -1
- package/src/commands/__tests__/new.spec.ts +13 -0
- package/src/def/build.ts +6 -6
- package/src/utils/__tests__/__fixtures__/napi_type_def +202 -0
- package/src/utils/__tests__/__fixtures__/optional-napi-derive/Cargo.toml +3 -0
- package/src/utils/__tests__/__fixtures__/optional-napi-derive/main-crate/Cargo.toml +8 -0
- package/src/utils/__tests__/__fixtures__/optional-napi-derive/main-crate/src/lib.rs +1 -0
- package/src/utils/__tests__/__fixtures__/optional-napi-derive/napi-derive/Cargo.toml +5 -0
- package/src/utils/__tests__/__fixtures__/optional-napi-derive/napi-derive/src/lib.rs +1 -0
- package/src/utils/__tests__/__fixtures__/optional-napi-derive/with-optional-derive/Cargo.toml +11 -0
- package/src/utils/__tests__/__fixtures__/optional-napi-derive/with-optional-derive/src/lib.rs +1 -0
- package/src/utils/__tests__/__fixtures__/runtime_string_enum_flag +2 -0
- package/src/utils/__tests__/__snapshots__/config.spec.ts.md +97 -0
- package/src/utils/__tests__/__snapshots__/config.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/target.spec.ts.md +180 -0
- package/src/utils/__tests__/__snapshots__/target.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/typegen.spec.ts.md +1197 -0
- package/src/utils/__tests__/__snapshots__/typegen.spec.ts.snap +0 -0
- package/src/utils/__tests__/__snapshots__/version.spec.ts.md +22 -0
- package/src/utils/__tests__/__snapshots__/version.spec.ts.snap +0 -0
- package/src/utils/__tests__/config.spec.ts +81 -0
- package/src/utils/__tests__/metadata.spec.ts +69 -0
- package/src/utils/__tests__/misc.spec.ts +56 -0
- package/src/utils/__tests__/target.spec.ts +19 -0
- package/src/utils/__tests__/typegen.spec.ts +85 -0
- package/src/utils/__tests__/version.spec.ts +7 -0
- package/src/utils/metadata.ts +94 -3
- package/src/utils/version.ts +2 -0
package/src/def/build.ts
CHANGED
|
@@ -120,17 +120,17 @@ export abstract class BaseBuildCommand extends Command {
|
|
|
120
120
|
|
|
121
121
|
crossCompile?: boolean = Option.Boolean('--cross-compile,-x', {
|
|
122
122
|
description:
|
|
123
|
-
'[experimental] cross
|
|
123
|
+
'[experimental] cross compile by replacing the cargo subcommand: Windows MSVC targets from a non-Windows host build with `cargo-xwin` (`windows-gnu` targets are rejected, `cargo-xwin` cannot handle them), non-Windows targets build with `cargo-zigbuild` (requires `zig` on PATH). The selected subcommand is auto-installed on first use. Cannot be combined with `--use-cross`, `--use-napi-cross` or `--watch`',
|
|
124
124
|
})
|
|
125
125
|
|
|
126
126
|
useCross?: boolean = Option.Boolean('--use-cross', {
|
|
127
127
|
description:
|
|
128
|
-
'[experimental] use [cross](https://github.com/cross-rs/cross)
|
|
128
|
+
'[experimental] not recommended, prefer `--cross-compile` or `--use-napi-cross`: build in a Docker or Podman container with [cross](https://github.com/cross-rs/cross), which must be installed manually and needs a running container engine. Cannot be combined with `--cross-compile`, `--use-napi-cross` or `--watch`',
|
|
129
129
|
})
|
|
130
130
|
|
|
131
131
|
useNapiCross?: boolean = Option.Boolean('--use-napi-cross', {
|
|
132
132
|
description:
|
|
133
|
-
'[experimental]
|
|
133
|
+
'[experimental] download a prebuilt gcc cross toolchain from `@napi-rs/cross-toolchain` (glibc 2.17) and set linker and C compiler environment variables. Linux glibc targets only (x64, arm64, armv7, ppc64le, s390x) on a Linux x64 or arm64 host, any other target or host errors. Cannot be combined with `--cross-compile` or `--use-cross`',
|
|
134
134
|
})
|
|
135
135
|
|
|
136
136
|
watch?: boolean = Option.Boolean('--watch,-w', {
|
|
@@ -290,15 +290,15 @@ export interface BuildOptions {
|
|
|
290
290
|
*/
|
|
291
291
|
profile?: string
|
|
292
292
|
/**
|
|
293
|
-
* [experimental] cross
|
|
293
|
+
* [experimental] cross compile by replacing the cargo subcommand: Windows MSVC targets from a non-Windows host build with `cargo-xwin` (`windows-gnu` targets are rejected, `cargo-xwin` cannot handle them), non-Windows targets build with `cargo-zigbuild` (requires `zig` on PATH). The selected subcommand is auto-installed on first use. Cannot be combined with `--use-cross`, `--use-napi-cross` or `--watch`
|
|
294
294
|
*/
|
|
295
295
|
crossCompile?: boolean
|
|
296
296
|
/**
|
|
297
|
-
* [experimental] use [cross](https://github.com/cross-rs/cross)
|
|
297
|
+
* [experimental] not recommended, prefer `--cross-compile` or `--use-napi-cross`: build in a Docker or Podman container with [cross](https://github.com/cross-rs/cross), which must be installed manually and needs a running container engine. Cannot be combined with `--cross-compile`, `--use-napi-cross` or `--watch`
|
|
298
298
|
*/
|
|
299
299
|
useCross?: boolean
|
|
300
300
|
/**
|
|
301
|
-
* [experimental]
|
|
301
|
+
* [experimental] download a prebuilt gcc cross toolchain from `@napi-rs/cross-toolchain` (glibc 2.17) and set linker and C compiler environment variables. Linux glibc targets only (x64, arm64, armv7, ppc64le, s390x) on a Linux x64 or arm64 host, any other target or host errors. Cannot be combined with `--cross-compile` or `--use-cross`
|
|
302
302
|
*/
|
|
303
303
|
useNapiCross?: boolean
|
|
304
304
|
/**
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
{"kind": "const", "name": "DEFAULT_COST", "js_doc": "/** This is a const */\n", "def": "export const DEFAULT_COST: number", "original_name": "DEFAULT_COST"}
|
|
2
|
+
{"kind": "fn", "name": "getWords", "js_doc": "", "def": "function getWords(): Array<string>"}
|
|
3
|
+
{"kind": "fn", "name": "getNums", "js_doc": "/** Gets some numbers */\n", "def": "function getNums(): Array<number>"}
|
|
4
|
+
{"kind": "fn", "name": "sumNums", "js_doc": "", "def": "function sumNums(nums: Array<number>): number"}
|
|
5
|
+
{"kind": "fn", "name": "toJsObj", "js_doc": "", "def": "function toJsObj(): object"}
|
|
6
|
+
{"kind": "fn", "name": "getNumArr", "js_doc": "", "def": "function getNumArr(): number[]"}
|
|
7
|
+
{"kind": "fn", "name": "getNestedNumArr", "js_doc": "", "def": "function getNestedNumArr(): number[][][]"}
|
|
8
|
+
{"kind": "fn", "name": "readFileAsync", "js_doc": "", "def": "function readFileAsync(path: string): Promise<Buffer>"}
|
|
9
|
+
{"kind": "fn", "name": "asyncMultiTwo", "js_doc": "", "def": "function asyncMultiTwo(arg: number): Promise<number>"}
|
|
10
|
+
{"kind": "fn", "name": "bigintAdd", "js_doc": "", "def": "function bigintAdd(a: bigint, b: bigint): bigint"}
|
|
11
|
+
{"kind": "fn", "name": "createBigInt", "js_doc": "", "def": "function createBigInt(): bigint"}
|
|
12
|
+
{"kind": "fn", "name": "createBigIntI64", "js_doc": "", "def": "function createBigIntI64(): bigint"}
|
|
13
|
+
{"kind": "fn", "name": "bigintGetU64AsString", "js_doc": "", "def": "function bigintGetU64AsString(bi: bigint): string"}
|
|
14
|
+
{"kind": "fn", "name": "bigintFromI64", "js_doc": "", "def": "function bigintFromI64(): bigint"}
|
|
15
|
+
{"kind": "fn", "name": "bigintFromI128", "js_doc": "", "def": "function bigintFromI128(): bigint"}
|
|
16
|
+
{"kind": "fn", "name": "getCwd", "js_doc": "", "def": "function getCwd(callback: (arg0: string) => void): void"}
|
|
17
|
+
{"kind": "fn", "name": "optionEnd", "js_doc": "", "def": "function optionEnd(callback: (arg0: string, arg1?: string | undefined | null) => void): void"}
|
|
18
|
+
{"kind": "fn", "name": "optionStart", "js_doc": "", "def": "function optionStart(callback: (arg0: string | undefined | null, arg1: string) => void): void"}
|
|
19
|
+
{"kind": "fn", "name": "optionStartEnd", "js_doc": "", "def": "function optionStartEnd(callback: (arg0: string | undefined | null, arg1: string, arg2?: string | undefined | null) => void): void"}
|
|
20
|
+
{"kind": "fn", "name": "optionOnly", "js_doc": "", "def": "function optionOnly(callback: (arg0?: string | undefined | null) => void): void"}
|
|
21
|
+
{"kind": "fn", "name": "readFile", "js_doc": "/** napi = { version = 2, features = [\"serde-json\"] } */\n", "def": "function readFile(callback: (arg0: Error | undefined, arg1?: string | undefined | null) => void): void"}
|
|
22
|
+
{"kind": "fn", "name": "returnJsFunction", "js_doc": "", "def": "function returnJsFunction(): (...args: any[]) => any"}
|
|
23
|
+
{"kind": "fn", "name": "callbackReturnPromise", "js_doc": "", "def": "function callbackReturnPromise<T>(functionInput: () => T | Promise<T>, callback: (err: Error | null, result: T) => void): T | Promise<T>"}
|
|
24
|
+
{"kind": "fn", "name": "captureErrorInCallback", "js_doc": "", "def": "function captureErrorInCallback(cb1: () => void, cb2: (arg0: Error) => void): void"}
|
|
25
|
+
{"kind": "struct", "name": "Animal", "js_doc": "/**\n * `constructor` option for `struct` requires all fields to be public,\n * otherwise tag impl fn as constructor\n * #[napi(constructor)]\n */\n", "def": "/** Kind of animal */\nreadonly kind: Kind", "original_name": "Animal"}
|
|
26
|
+
{"kind": "impl", "name": "Animal", "js_doc": "", "def": "/** This is the constructor */\n constructor(kind: Kind, name: string)\n/** This is a factory method */\nstatic withKind(kind: Kind): Animal\nget name(): string\nset name(name: string)\nget type(): Kind\nset type(kind: Kind)\n/**\n * This is a\n * multi-line comment\n * with an emoji \uD83D\uDE80\n */\n whoami(): string\n/** This is static... */\nstatic getDogKind(): Kind\n/**\n * Here are some characters and character sequences\n * that should be escaped correctly:\n * \\[]{}/\\:\"\"{\n * }\n */\n returnOtherClass(): Dog\n returnOtherClassWithCustomConstructor(): Bird\n overrideIndividualArgOnMethod(normalTy: string, overriddenTy: {n: string}): Bird"}
|
|
27
|
+
{"kind": "struct", "name": "Dog", "js_doc": "", "def": "name: string\nconstructor(name: string)", "original_name": "Dog"}
|
|
28
|
+
{"kind": "struct", "name": "Bird", "js_doc": "", "def": "name: string", "original_name": "Bird"}
|
|
29
|
+
{"kind": "impl", "name": "Bird", "js_doc": "", "def": " constructor(name: string)\n getCount(): number\n getNameAsync(): Promise<string>"}
|
|
30
|
+
{"kind": "struct", "name": "Blake2BHasher", "js_doc": "/** Smoking test for type generation */\n", "def": "", "original_name": "Blake2bHasher"}
|
|
31
|
+
{"kind": "impl", "name": "Blake2BHasher", "js_doc": "", "def": "static withKey(key: Blake2bKey): Blake2BHasher"}
|
|
32
|
+
{"kind": "impl", "name": "Blake2BHasher", "js_doc": "", "def": " update(data: Buffer): void"}
|
|
33
|
+
{"kind": "struct", "name": "Blake2BKey", "js_doc": "", "def": "", "original_name": "Blake2bKey"}
|
|
34
|
+
{"kind": "struct", "name": "Context", "js_doc": "", "def": "maybeNeed?: boolean\nbuffer: Uint8Array", "original_name": "Context"}
|
|
35
|
+
{"kind": "impl", "name": "Context", "js_doc": "", "def": " constructor()\nstatic withData(data: string): Context\nstatic withBuffer(buf: Uint8Array): Context\n method(): string"}
|
|
36
|
+
{"kind": "struct", "name": "AnimalWithDefaultConstructor", "js_doc": "", "def": "name: string\nkind: number\nconstructor(name: string, kind: number)", "original_name": "AnimalWithDefaultConstructor"}
|
|
37
|
+
{"kind": "struct", "name": "NinjaTurtle", "js_doc": "", "def": "name: string", "original_name": "NinjaTurtle"}
|
|
38
|
+
{"kind": "impl", "name": "NinjaTurtle", "js_doc": "", "def": "static isInstanceOf(value: unknown): boolean\n/** Create your ninja turtle! \uD83D\uDC22 */\nstatic newRaph(): NinjaTurtle\n getMaskColor(): string\n getName(): string\n returnThis(this: this): this"}
|
|
39
|
+
{"kind": "struct", "name": "Assets", "js_doc": "", "def": "", "original_name": "JsAssets"}
|
|
40
|
+
{"kind": "impl", "name": "Assets", "js_doc": "", "def": " constructor()\n get(id: number): JsAsset | null"}
|
|
41
|
+
{"kind": "struct", "name": "Asset", "js_doc": "", "def": "", "original_name": "JsAsset"}
|
|
42
|
+
{"kind": "impl", "name": "Asset", "js_doc": "", "def": " constructor()\nget filePath(): number"}
|
|
43
|
+
{"kind": "struct", "name": "Optional", "js_doc": "", "def": "", "original_name": "Optional"}
|
|
44
|
+
{"kind": "impl", "name": "Optional", "js_doc": "", "def": "static optionEnd(required: string, optional?: string | undefined | null): string\nstatic optionStart(optional: string | undefined | null, required: string): string\nstatic optionStartEnd(optional1: string | undefined | null, required: string, optional2?: string | undefined | null): string\nstatic optionOnly(optional?: string | undefined | null): string"}
|
|
45
|
+
{"kind": "interface", "name": "ObjectFieldClassInstance", "js_doc": "", "def": "bird: Bird", "original_name": "ObjectFieldClassInstance"}
|
|
46
|
+
{"kind": "fn", "name": "createObjectWithClassField", "js_doc": "", "def": "function createObjectWithClassField(): ObjectFieldClassInstance"}
|
|
47
|
+
{"kind": "fn", "name": "receiveObjectWithClassField", "js_doc": "", "def": "function receiveObjectWithClassField(object: ObjectFieldClassInstance): Bird"}
|
|
48
|
+
{"kind": "struct", "name": "NotWritableClass", "js_doc": "", "def": "name: string\nconstructor(name: string)", "original_name": "NotWritableClass"}
|
|
49
|
+
{"kind": "impl", "name": "NotWritableClass", "js_doc": "", "def": " setName(name: string): void"}
|
|
50
|
+
{"kind": "struct", "name": "CustomFinalize", "js_doc": "", "def": "", "original_name": "CustomFinalize"}
|
|
51
|
+
{"kind": "impl", "name": "CustomFinalize", "js_doc": "", "def": " constructor(width: number, height: number)"}
|
|
52
|
+
{"kind": "struct", "name": "Width", "js_doc": "", "def": "value: number\nconstructor(value: number)", "original_name": "Width"}
|
|
53
|
+
{"kind": "fn", "name": "plusOne", "js_doc": "", "def": "function plusOne(this: Width): number"}
|
|
54
|
+
{"kind": "struct", "name": "ClassWithFactory", "js_doc": "", "def": "name: string", "original_name": "ClassWithFactory"}
|
|
55
|
+
{"kind": "impl", "name": "ClassWithFactory", "js_doc": "", "def": "static withName(name: string): ClassWithFactory\n setName(name: string): this"}
|
|
56
|
+
{"kind": "fn", "name": "dateToNumber", "js_doc": "", "def": "function dateToNumber(input: Date): number"}
|
|
57
|
+
{"kind": "fn", "name": "chronoDateToMillis", "js_doc": "", "def": "function chronoDateToMillis(input: Date): number"}
|
|
58
|
+
{"kind": "fn", "name": "chronoDateAdd1Minute", "js_doc": "", "def": "function chronoDateAdd1Minute(input: Date): Date"}
|
|
59
|
+
{"kind": "interface", "name": "Dates", "js_doc": "", "def": "start: Date\nend?: Date", "original_name": "Dates"}
|
|
60
|
+
{"kind": "fn", "name": "eitherStringOrNumber", "js_doc": "", "def": "function eitherStringOrNumber(input: string | number): number"}
|
|
61
|
+
{"kind": "fn", "name": "returnEither", "js_doc": "", "def": "function returnEither(input: number): string | number"}
|
|
62
|
+
{"kind": "fn", "name": "either3", "js_doc": "", "def": "function either3(input: string | number | boolean): number"}
|
|
63
|
+
{"kind": "interface", "name": "Obj", "js_doc": "", "def": "v: string | number", "original_name": "Obj"}
|
|
64
|
+
{"kind": "fn", "name": "either4", "js_doc": "", "def": "function either4(input: string | number | boolean | Obj): number"}
|
|
65
|
+
{"kind": "struct", "name": "JsClassForEither", "js_doc": "", "def": "", "original_name": "JsClassForEither"}
|
|
66
|
+
{"kind": "impl", "name": "JsClassForEither", "js_doc": "", "def": " constructor()"}
|
|
67
|
+
{"kind": "struct", "name": "AnotherClassForEither", "js_doc": "", "def": "", "original_name": "AnotherClassForEither"}
|
|
68
|
+
{"kind": "impl", "name": "AnotherClassForEither", "js_doc": "", "def": " constructor()"}
|
|
69
|
+
{"kind": "fn", "name": "receiveClassOrNumber", "js_doc": "", "def": "function receiveClassOrNumber(either: number | JsClassForEither): number"}
|
|
70
|
+
{"kind": "fn", "name": "receiveMutClassOrNumber", "js_doc": "", "def": "function receiveMutClassOrNumber(either: number | JsClassForEither): number"}
|
|
71
|
+
{"kind": "fn", "name": "receiveDifferentClass", "js_doc": "", "def": "function receiveDifferentClass(either: JsClassForEither | AnotherClassForEither): number"}
|
|
72
|
+
{"kind": "fn", "name": "returnEitherClass", "js_doc": "", "def": "function returnEitherClass(input: number): number | JsClassForEither"}
|
|
73
|
+
{"kind": "fn", "name": "eitherFromOption", "js_doc": "", "def": "function eitherFromOption(): JsClassForEither | undefined"}
|
|
74
|
+
{"kind": "interface", "name": "A", "js_doc": "", "def": "foo: number", "original_name": "A"}
|
|
75
|
+
{"kind": "interface", "name": "B", "js_doc": "", "def": "bar: number", "original_name": "B"}
|
|
76
|
+
{"kind": "interface", "name": "C", "js_doc": "", "def": "baz: number", "original_name": "C"}
|
|
77
|
+
{"kind": "fn", "name": "eitherFromObjects", "js_doc": "", "def": "function eitherFromObjects(input: A | B | C): string"}
|
|
78
|
+
{"kind": "fn", "name": "eitherBoolOrFunction", "js_doc": "", "def": "function eitherBoolOrFunction(input: boolean | ((...args: any[]) => any)): void"}
|
|
79
|
+
{"kind": "fn", "name": "promiseInEither", "js_doc": "", "def": "function promiseInEither(input: number | Promise<number>): Promise<boolean>"}
|
|
80
|
+
{"kind": "enum", "name": "Kind", "js_doc": "/** default enum values are continuos i32s start from 0 */\n", "def": "/** Barks */\nDog = 0,\n /** Kills birds */\nCat = 1,\n /** Tasty */\nDuck = 2", "original_name": "Kind"}
|
|
81
|
+
{"kind": "enum", "name": "Empty", "js_doc": "", "def": "", "original_name": "Empty"}
|
|
82
|
+
{"kind": "enum", "name": "CustomNumEnum", "js_doc": "/** You could break the step and for an new continuous value. */\n", "def": "One = 1,\n Two = 2,\n Three = 3,\n Four = 4,\n Six = 6,\n Eight = 8,\n Nine = 9,\n Ten = 10", "original_name": "CustomNumEnum"}
|
|
83
|
+
{"kind": "string_enum", "name": "Status", "js_doc": "", "def": "Pristine = 'Pristine',\n Loading = 'Loading',\n Ready = 'Ready'", "original_name": "Status"}
|
|
84
|
+
{"kind": "fn", "name": "enumToI32", "js_doc": "", "def": "function enumToI32(e: CustomNumEnum): number"}
|
|
85
|
+
{"kind": "fn", "name": "throwError", "js_doc": "", "def": "function throwError(): void"}
|
|
86
|
+
{"kind": "fn", "name": "panic", "js_doc": "", "def": "function panic(): void"}
|
|
87
|
+
{"kind": "fn", "name": "receiveString", "js_doc": "", "def": "function receiveString(s: string): string"}
|
|
88
|
+
{"kind": "fn", "name": "customStatusCode", "js_doc": "", "def": "function customStatusCode(): void"}
|
|
89
|
+
{"kind": "fn", "name": "createExternal", "js_doc": "", "def": "function createExternal(size: number): ExternalObject<number>"}
|
|
90
|
+
{"kind": "fn", "name": "createExternalString", "js_doc": "", "def": "function createExternalString(content: string): ExternalObject<string>"}
|
|
91
|
+
{"kind": "fn", "name": "getExternal", "js_doc": "", "def": "function getExternal(external: ExternalObject<number>): number"}
|
|
92
|
+
{"kind": "fn", "name": "mutateExternal", "js_doc": "", "def": "function mutateExternal(external: ExternalObject<number>, newVal: number): void"}
|
|
93
|
+
{"kind": "fn", "name": "validateArray", "js_doc": "", "def": "function validateArray(arr: Array<number>): number"}
|
|
94
|
+
{"kind": "fn", "name": "validateBuffer", "js_doc": "", "def": "function validateBuffer(b: Buffer): number"}
|
|
95
|
+
{"kind": "fn", "name": "validateTypedArray", "js_doc": "", "def": "function validateTypedArray(input: Uint8Array): number"}
|
|
96
|
+
{"kind": "fn", "name": "validateBigint", "js_doc": "", "def": "function validateBigint(input: bigint): bigint"}
|
|
97
|
+
{"kind": "fn", "name": "validateBoolean", "js_doc": "", "def": "function validateBoolean(i: boolean): boolean"}
|
|
98
|
+
{"kind": "fn", "name": "validateDate", "js_doc": "", "def": "function validateDate(d: Date): number"}
|
|
99
|
+
{"kind": "fn", "name": "validateDateTime", "js_doc": "", "def": "function validateDateTime(d: Date): number"}
|
|
100
|
+
{"kind": "fn", "name": "validateExternal", "js_doc": "", "def": "function validateExternal(e: ExternalObject<number>): number"}
|
|
101
|
+
{"kind": "fn", "name": "validateFunction", "js_doc": "", "def": "function validateFunction(cb: () => number): number"}
|
|
102
|
+
{"kind": "fn", "name": "validateHashMap", "js_doc": "", "def": "function validateHashMap(input: Record<string, number>): number"}
|
|
103
|
+
{"kind": "fn", "name": "validateNull", "js_doc": "", "def": "function validateNull(i: null): boolean"}
|
|
104
|
+
{"kind": "fn", "name": "validateUndefined", "js_doc": "", "def": "function validateUndefined(i: undefined): boolean"}
|
|
105
|
+
{"kind": "fn", "name": "validateNumber", "js_doc": "", "def": "function validateNumber(i: number): number"}
|
|
106
|
+
{"kind": "fn", "name": "validatePromise", "js_doc": "", "def": "function validatePromise(p: Promise<number>): Promise<number>"}
|
|
107
|
+
{"kind": "fn", "name": "validateString", "js_doc": "", "def": "function validateString(s: string): string"}
|
|
108
|
+
{"kind": "fn", "name": "validateSymbol", "js_doc": "", "def": "function validateSymbol(s: symbol): boolean"}
|
|
109
|
+
{"kind": "fn", "name": "validateOptional", "js_doc": "", "def": "function validateOptional(input1?: string | undefined | null, input2?: boolean | undefined | null): boolean"}
|
|
110
|
+
{"kind": "fn", "name": "returnUndefinedIfInvalid", "js_doc": "", "def": "function returnUndefinedIfInvalid(input: boolean): boolean"}
|
|
111
|
+
{"kind": "fn", "name": "returnUndefinedIfInvalidPromise", "js_doc": "", "def": "function returnUndefinedIfInvalidPromise(input: Promise<boolean>): Promise<boolean>"}
|
|
112
|
+
{"kind": "fn", "name": "tsRename", "js_doc": "", "def": "function tsRename(a: { foo: number }): string[]"}
|
|
113
|
+
{"kind": "fn", "name": "overrideIndividualArgOnFunction", "js_doc": "", "def": "function overrideIndividualArgOnFunction(notOverridden: string, f: () => string, notOverridden2: number): string"}
|
|
114
|
+
{"kind": "fn", "name": "overrideIndividualArgOnFunctionWithCbArg", "js_doc": "", "def": "function overrideIndividualArgOnFunctionWithCbArg(callback: (town: string, name?: string | undefined | null) => string, notOverridden: number): object"}
|
|
115
|
+
{"kind": "struct", "name": "Fib", "js_doc": "", "def": "", "original_name": "Fib"}
|
|
116
|
+
{"kind": "impl", "name": "Fib", "js_doc": "", "def": "[Symbol.iterator](): Iterator<number, void, number>"}
|
|
117
|
+
{"kind": "impl", "name": "Fib", "js_doc": "", "def": " constructor()"}
|
|
118
|
+
{"kind": "struct", "name": "Fib2", "js_doc": "", "def": "", "original_name": "Fib2"}
|
|
119
|
+
{"kind": "impl", "name": "Fib2", "js_doc": "", "def": "[Symbol.iterator](): Iterator<number, void, number>"}
|
|
120
|
+
{"kind": "impl", "name": "Fib2", "js_doc": "", "def": "static create(seed: number): Fib2"}
|
|
121
|
+
{"kind": "struct", "name": "Fib3", "js_doc": "", "def": "current: number\nnext: number\nconstructor(current: number, next: number)", "original_name": "Fib3"}
|
|
122
|
+
{"kind": "impl", "name": "Fib3", "js_doc": "", "def": "[Symbol.iterator](): Iterator<number, void, number>"}
|
|
123
|
+
{"kind": "const", "name": "ALIGNMENT", "js_doc": "", "def": "export const ALIGNMENT: number", "original_name": "ALIGNMENT", "js_mod": "xxh3"}
|
|
124
|
+
{"kind": "fn", "name": "xxh3_64", "js_doc": "", "def": "function xxh3_64(input: Buffer): bigint", "js_mod": "xxh3"}
|
|
125
|
+
{"kind": "fn", "name": "xxh128", "js_doc": "/** xxh128 function */\n", "def": "function xxh128(input: Buffer): bigint", "js_mod": "xxh3"}
|
|
126
|
+
{"kind": "struct", "name": "Xxh3", "js_doc": "/** Xxh3 class */\n", "def": "", "original_name": "Xxh3", "js_mod": "xxh3"}
|
|
127
|
+
{"kind": "impl", "name": "Xxh3", "js_doc": "", "def": " constructor()\n/** update */\n update(input: Buffer): void\n digest(): bigint", "js_mod": "xxh3"}
|
|
128
|
+
{"kind": "fn", "name": "xxh2Plus", "js_doc": "", "def": "function xxh2Plus(a: number, b: number): number", "js_mod": "xxh2"}
|
|
129
|
+
{"kind": "fn", "name": "xxh3Xxh64Alias", "js_doc": "", "def": "function xxh3Xxh64Alias(input: Buffer): bigint", "js_mod": "xxh2"}
|
|
130
|
+
{"kind": "fn", "name": "xxh64Alias", "js_doc": "", "def": "function xxh64Alias(input: Buffer): bigint"}
|
|
131
|
+
{"kind": "fn", "name": "getMapping", "js_doc": "", "def": "function getMapping(): Record<string, number>"}
|
|
132
|
+
{"kind": "fn", "name": "sumMapping", "js_doc": "", "def": "function sumMapping(nums: Record<string, number>): number"}
|
|
133
|
+
{"kind": "fn", "name": "mapOption", "js_doc": "", "def": "function mapOption(val?: number | undefined | null): number | null"}
|
|
134
|
+
{"kind": "fn", "name": "returnNull", "js_doc": "", "def": "function returnNull(): null"}
|
|
135
|
+
{"kind": "fn", "name": "returnUndefined", "js_doc": "", "def": "function returnUndefined(): void"}
|
|
136
|
+
{"kind": "fn", "name": "add", "js_doc": "", "def": "function add(a: number, b: number): number"}
|
|
137
|
+
{"kind": "fn", "name": "fibonacci", "js_doc": "", "def": "function fibonacci(n: number): number"}
|
|
138
|
+
{"kind": "fn", "name": "listObjKeys", "js_doc": "", "def": "function listObjKeys(obj: object): Array<string>"}
|
|
139
|
+
{"kind": "fn", "name": "createObj", "js_doc": "", "def": "function createObj(): object"}
|
|
140
|
+
{"kind": "fn", "name": "getGlobal", "js_doc": "", "def": "function getGlobal(): typeof global"}
|
|
141
|
+
{"kind": "fn", "name": "getUndefined", "js_doc": "", "def": "function getUndefined(): void"}
|
|
142
|
+
{"kind": "fn", "name": "getNull", "js_doc": "", "def": "function getNull(): null"}
|
|
143
|
+
{"kind": "interface", "name": "AllOptionalObject", "js_doc": "", "def": "name?: string\nage?: number", "original_name": "AllOptionalObject"}
|
|
144
|
+
{"kind": "fn", "name": "receiveAllOptionalObject", "js_doc": "", "def": "function receiveAllOptionalObject(obj?: AllOptionalObject | undefined | null): void"}
|
|
145
|
+
{"kind": "enum", "name": "ALIAS", "js_doc": "", "def": "A = 0,\n B = 1", "original_name": "AliasedEnum"}
|
|
146
|
+
{"kind": "interface", "name": "AliasedStruct", "js_doc": "", "def": "a: ALIAS\nb: number", "original_name": "StructContainsAliasedEnum"}
|
|
147
|
+
{"kind": "fn", "name": "fnReceivedAliased", "js_doc": "", "def": "function fnReceivedAliased(s: AliasedStruct, e: ALIAS): void"}
|
|
148
|
+
{"kind": "interface", "name": "StrictObject", "js_doc": "", "def": "name: string", "original_name": "StrictObject"}
|
|
149
|
+
{"kind": "fn", "name": "receiveStrictObject", "js_doc": "", "def": "function receiveStrictObject(strictObject: StrictObject): void"}
|
|
150
|
+
{"kind": "fn", "name": "getStrFromObject", "js_doc": "", "def": "function getStrFromObject(): void"}
|
|
151
|
+
{"kind": "interface", "name": "TsTypeChanged", "js_doc": "", "def": "typeOverride: object\ntypeOverrideOptional?: object", "original_name": "TsTypeChanged"}
|
|
152
|
+
{"kind": "fn", "name": "createObjWithProperty", "js_doc": "", "def": "function createObjWithProperty(): { value: ArrayBuffer, get getter(): number }"}
|
|
153
|
+
{"kind": "fn", "name": "getterFromObj", "js_doc": "", "def": "function getterFromObj(): number"}
|
|
154
|
+
{"kind": "interface", "name": "ObjectOnlyFromJs", "js_doc": "", "def": "count: number\ncallback: (err: Error | null, value: number) => any", "original_name": "ObjectOnlyFromJs"}
|
|
155
|
+
{"kind": "fn", "name": "receiveObjectOnlyFromJs", "js_doc": "", "def": "function receiveObjectOnlyFromJs(obj: { count: number, callback: (err: Error | null, count: number) => void }): void"}
|
|
156
|
+
{"kind": "fn", "name": "asyncPlus100", "js_doc": "", "def": "function asyncPlus100(p: Promise<number>): Promise<number>"}
|
|
157
|
+
{"kind": "struct", "name": "JsRepo", "js_doc": "", "def": "", "original_name": "JsRepo"}
|
|
158
|
+
{"kind": "impl", "name": "JsRepo", "js_doc": "", "def": " constructor(dir: string)\n remote(): JsRemote"}
|
|
159
|
+
{"kind": "struct", "name": "JsRemote", "js_doc": "", "def": "", "original_name": "JsRemote"}
|
|
160
|
+
{"kind": "impl", "name": "JsRemote", "js_doc": "", "def": " name(): string"}
|
|
161
|
+
{"kind": "struct", "name": "CssRuleList", "js_doc": "", "def": "", "original_name": "CSSRuleList"}
|
|
162
|
+
{"kind": "impl", "name": "CssRuleList", "js_doc": "", "def": " getRules(): Array<string>\nget parentStyleSheet(): CSSStyleSheet\nget name(): string | null"}
|
|
163
|
+
{"kind": "struct", "name": "CssStyleSheet", "js_doc": "", "def": "", "original_name": "CSSStyleSheet"}
|
|
164
|
+
{"kind": "struct", "name": "AnotherCssStyleSheet", "js_doc": "", "def": "", "original_name": "AnotherCSSStyleSheet"}
|
|
165
|
+
{"kind": "impl", "name": "AnotherCssStyleSheet", "js_doc": "", "def": "get rules(): CssRuleList"}
|
|
166
|
+
{"kind": "impl", "name": "CssStyleSheet", "js_doc": "", "def": " constructor(name: string, rules: Array<string>)\nget rules(): CssRuleList\n anotherCssStyleSheet(): AnotherCssStyleSheet"}
|
|
167
|
+
{"kind": "interface", "name": "PackageJson", "js_doc": "/** This is an interface for package.json */\n", "def": "name: string\n/** The version of the package */\nversion: string\ndependencies?: Record<string, any>\ndevDependencies?: Record<string, any>", "original_name": "PackageJson"}
|
|
168
|
+
{"kind": "fn", "name": "readPackageJson", "js_doc": "", "def": "function readPackageJson(): PackageJson"}
|
|
169
|
+
{"kind": "fn", "name": "getPackageJsonName", "js_doc": "", "def": "function getPackageJsonName(packageJson: PackageJson): string"}
|
|
170
|
+
{"kind": "fn", "name": "testSerdeRoundtrip", "js_doc": "", "def": "function testSerdeRoundtrip(data: any): any"}
|
|
171
|
+
{"kind": "fn", "name": "contains", "js_doc": "", "def": "function contains(source: string, target: string): boolean"}
|
|
172
|
+
{"kind": "fn", "name": "concatStr", "js_doc": "", "def": "function concatStr(s: string): string"}
|
|
173
|
+
{"kind": "fn", "name": "concatUtf16", "js_doc": "", "def": "function concatUtf16(s: string): string"}
|
|
174
|
+
{"kind": "fn", "name": "concatLatin1", "js_doc": "", "def": "function concatLatin1(s: string): string"}
|
|
175
|
+
{"kind": "fn", "name": "roundtripStr", "js_doc": "", "def": "function roundtripStr(s: string): string"}
|
|
176
|
+
{"kind": "fn", "name": "setSymbolInObj", "js_doc": "", "def": "function setSymbolInObj(symbol: symbol): object"}
|
|
177
|
+
{"kind": "fn", "name": "createSymbol", "js_doc": "", "def": "function createSymbol(): symbol"}
|
|
178
|
+
{"kind": "impl", "name": "DelaySum", "js_doc": "", "def": ""}
|
|
179
|
+
{"kind": "fn", "name": "withoutAbortController", "js_doc": "", "def": "function withoutAbortController(a: number, b: number): Promise<number>"}
|
|
180
|
+
{"kind": "fn", "name": "withAbortController", "js_doc": "", "def": "function withAbortController(a: number, b: number, signal: AbortSignal): Promise<number>"}
|
|
181
|
+
{"kind": "fn", "name": "callThreadsafeFunction", "js_doc": "", "def": "function callThreadsafeFunction(callback: (...args: any[]) => any): void"}
|
|
182
|
+
{"kind": "fn", "name": "threadsafeFunctionThrowError", "js_doc": "", "def": "function threadsafeFunctionThrowError(cb: (...args: any[]) => any): void"}
|
|
183
|
+
{"kind": "fn", "name": "threadsafeFunctionFatalMode", "js_doc": "", "def": "function threadsafeFunctionFatalMode(cb: (...args: any[]) => any): void"}
|
|
184
|
+
{"kind": "fn", "name": "threadsafeFunctionFatalModeError", "js_doc": "", "def": "function threadsafeFunctionFatalModeError(cb: (...args: any[]) => any): void"}
|
|
185
|
+
{"kind": "fn", "name": "threadsafeFunctionClosureCapture", "js_doc": "", "def": "function threadsafeFunctionClosureCapture(func: (...args: any[]) => any): void"}
|
|
186
|
+
{"kind": "fn", "name": "tsfnCallWithCallback", "js_doc": "", "def": "function tsfnCallWithCallback(func: (...args: any[]) => any): void"}
|
|
187
|
+
{"kind": "fn", "name": "tsfnAsyncCall", "js_doc": "", "def": "function tsfnAsyncCall(func: (...args: any[]) => any): Promise<void>"}
|
|
188
|
+
{"kind": "fn", "name": "acceptThreadsafeFunction", "js_doc": "", "def": "function acceptThreadsafeFunction(func: (err: Error | null, value: number) => any): void"}
|
|
189
|
+
{"kind": "fn", "name": "acceptThreadsafeFunctionFatal", "js_doc": "", "def": "function acceptThreadsafeFunctionFatal(func: (value: number) => any): void"}
|
|
190
|
+
{"kind": "fn", "name": "acceptThreadsafeFunctionTupleArgs", "js_doc": "", "def": "function acceptThreadsafeFunctionTupleArgs(func: (err: Error | null, arg0: number, arg1: boolean, arg2: string) => any): void"}
|
|
191
|
+
{"kind": "fn", "name": "getBuffer", "js_doc": "", "def": "function getBuffer(): Buffer"}
|
|
192
|
+
{"kind": "fn", "name": "appendBuffer", "js_doc": "", "def": "function appendBuffer(buf: Buffer): Buffer"}
|
|
193
|
+
{"kind": "fn", "name": "getEmptyBuffer", "js_doc": "", "def": "function getEmptyBuffer(): Buffer"}
|
|
194
|
+
{"kind": "fn", "name": "convertU32Array", "js_doc": "", "def": "function convertU32Array(input: Uint32Array): Array<number>"}
|
|
195
|
+
{"kind": "fn", "name": "createExternalTypedArray", "js_doc": "", "def": "function createExternalTypedArray(): Uint32Array"}
|
|
196
|
+
{"kind": "fn", "name": "mutateTypedArray", "js_doc": "", "def": "function mutateTypedArray(input: Float32Array): void"}
|
|
197
|
+
{"kind": "fn", "name": "derefUint8Array", "js_doc": "", "def": "function derefUint8Array(a: Uint8Array, b: Uint8ClampedArray): number"}
|
|
198
|
+
{"kind": "fn", "name": "bufferPassThrough", "js_doc": "", "def": "function bufferPassThrough(buf: Buffer): Promise<Buffer>"}
|
|
199
|
+
{"kind": "fn", "name": "arrayBufferPassThrough", "js_doc": "", "def": "function arrayBufferPassThrough(buf: Uint8Array): Promise<Uint8Array>"}
|
|
200
|
+
{"kind": "impl", "name": "AsyncBuffer", "js_doc": "", "def": ""}
|
|
201
|
+
{"kind": "fn", "name": "asyncReduceBuffer", "js_doc": "", "def": "function asyncReduceBuffer(buf: Buffer): Promise<number>"}
|
|
202
|
+
{"kind": "fn", "name": "runScript", "js_doc": "", "def": "function runScript(script: string): unknown"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
# Snapshot report for `src/utils/__tests__/config.spec.ts`
|
|
2
|
+
|
|
3
|
+
The actual snapshot is saved in `config.spec.ts.snap`.
|
|
4
|
+
|
|
5
|
+
Generated by [AVA](https://avajs.dev).
|
|
6
|
+
|
|
7
|
+
## should be able to read config from package.json
|
|
8
|
+
|
|
9
|
+
> Snapshot 1
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
binaryName: 'testing',
|
|
13
|
+
npmClient: 'npm',
|
|
14
|
+
packageJson: {
|
|
15
|
+
name: '@napi-rs/testing',
|
|
16
|
+
napi: {
|
|
17
|
+
binaryName: 'testing',
|
|
18
|
+
packageName: '@napi-rs/testing',
|
|
19
|
+
targets: [
|
|
20
|
+
'x86_64-unknown-linux-gnu',
|
|
21
|
+
'x86_64-pc-windows-msvc',
|
|
22
|
+
'x86_64-apple-darwin',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
version: '0.0.0',
|
|
26
|
+
},
|
|
27
|
+
packageName: '@napi-rs/testing',
|
|
28
|
+
targets: [
|
|
29
|
+
{
|
|
30
|
+
abi: 'gnu',
|
|
31
|
+
arch: 'x64',
|
|
32
|
+
platform: 'linux',
|
|
33
|
+
platformArchABI: 'linux-x64-gnu',
|
|
34
|
+
triple: 'x86_64-unknown-linux-gnu',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
abi: 'msvc',
|
|
38
|
+
arch: 'x64',
|
|
39
|
+
platform: 'win32',
|
|
40
|
+
platformArchABI: 'win32-x64-msvc',
|
|
41
|
+
triple: 'x86_64-pc-windows-msvc',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
abi: null,
|
|
45
|
+
arch: 'x64',
|
|
46
|
+
platform: 'darwin',
|
|
47
|
+
platformArchABI: 'darwin-x64',
|
|
48
|
+
triple: 'x86_64-apple-darwin',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
## should be able to read config from napi.json
|
|
54
|
+
|
|
55
|
+
> Snapshot 1
|
|
56
|
+
|
|
57
|
+
{
|
|
58
|
+
binaryName: 'testing',
|
|
59
|
+
npmClient: 'npm',
|
|
60
|
+
packageJson: {
|
|
61
|
+
name: '@napi-rs/testing',
|
|
62
|
+
napi: {
|
|
63
|
+
binaryName: 'testing',
|
|
64
|
+
packageName: '@node-rs/testing',
|
|
65
|
+
targets: [
|
|
66
|
+
'x86_64-unknown-linux-gnu',
|
|
67
|
+
'x86_64-apple-darwin',
|
|
68
|
+
'aarch64-apple-darwin',
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
version: '0.0.0',
|
|
72
|
+
},
|
|
73
|
+
packageName: '@node-rs/testing',
|
|
74
|
+
targets: [
|
|
75
|
+
{
|
|
76
|
+
abi: 'gnu',
|
|
77
|
+
arch: 'x64',
|
|
78
|
+
platform: 'linux',
|
|
79
|
+
platformArchABI: 'linux-x64-gnu',
|
|
80
|
+
triple: 'x86_64-unknown-linux-gnu',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
abi: null,
|
|
84
|
+
arch: 'x64',
|
|
85
|
+
platform: 'darwin',
|
|
86
|
+
platformArchABI: 'darwin-x64',
|
|
87
|
+
triple: 'x86_64-apple-darwin',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
abi: null,
|
|
91
|
+
arch: 'arm64',
|
|
92
|
+
platform: 'darwin',
|
|
93
|
+
platformArchABI: 'darwin-arm64',
|
|
94
|
+
triple: 'aarch64-apple-darwin',
|
|
95
|
+
},
|
|
96
|
+
],
|
|
97
|
+
}
|
|
Binary file
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Snapshot report for `src/utils/__tests__/target.spec.ts`
|
|
2
|
+
|
|
3
|
+
The actual snapshot is saved in `target.spec.ts.snap`.
|
|
4
|
+
|
|
5
|
+
Generated by [AVA](https://avajs.dev).
|
|
6
|
+
|
|
7
|
+
## should parse triple correctly
|
|
8
|
+
|
|
9
|
+
> Snapshot 1
|
|
10
|
+
|
|
11
|
+
[
|
|
12
|
+
{
|
|
13
|
+
abi: null,
|
|
14
|
+
arch: 'arm64',
|
|
15
|
+
platform: 'darwin',
|
|
16
|
+
platformArchABI: 'darwin-arm64',
|
|
17
|
+
triple: 'aarch64-apple-darwin',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
abi: null,
|
|
21
|
+
arch: 'arm64',
|
|
22
|
+
platform: 'android',
|
|
23
|
+
platformArchABI: 'android-arm64',
|
|
24
|
+
triple: 'aarch64-linux-android',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
abi: 'gnu',
|
|
28
|
+
arch: 'arm64',
|
|
29
|
+
platform: 'linux',
|
|
30
|
+
platformArchABI: 'linux-arm64-gnu',
|
|
31
|
+
triple: 'aarch64-unknown-linux-gnu',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
abi: 'musl',
|
|
35
|
+
arch: 'arm64',
|
|
36
|
+
platform: 'linux',
|
|
37
|
+
platformArchABI: 'linux-arm64-musl',
|
|
38
|
+
triple: 'aarch64-unknown-linux-musl',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
abi: null,
|
|
42
|
+
arch: 'arm64',
|
|
43
|
+
platform: 'openharmony',
|
|
44
|
+
platformArchABI: 'openharmony-arm64',
|
|
45
|
+
triple: 'aarch64-unknown-linux-ohos',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
abi: 'msvc',
|
|
49
|
+
arch: 'arm64',
|
|
50
|
+
platform: 'win32',
|
|
51
|
+
platformArchABI: 'win32-arm64-msvc',
|
|
52
|
+
triple: 'aarch64-pc-windows-msvc',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
abi: null,
|
|
56
|
+
arch: 'x64',
|
|
57
|
+
platform: 'darwin',
|
|
58
|
+
platformArchABI: 'darwin-x64',
|
|
59
|
+
triple: 'x86_64-apple-darwin',
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
abi: 'msvc',
|
|
63
|
+
arch: 'x64',
|
|
64
|
+
platform: 'win32',
|
|
65
|
+
platformArchABI: 'win32-x64-msvc',
|
|
66
|
+
triple: 'x86_64-pc-windows-msvc',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
abi: 'gnu',
|
|
70
|
+
arch: 'x64',
|
|
71
|
+
platform: 'win32',
|
|
72
|
+
platformArchABI: 'win32-x64-gnu',
|
|
73
|
+
triple: 'x86_64-pc-windows-gnu',
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
abi: 'gnu',
|
|
77
|
+
arch: 'x64',
|
|
78
|
+
platform: 'linux',
|
|
79
|
+
platformArchABI: 'linux-x64-gnu',
|
|
80
|
+
triple: 'x86_64-unknown-linux-gnu',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
abi: 'musl',
|
|
84
|
+
arch: 'x64',
|
|
85
|
+
platform: 'linux',
|
|
86
|
+
platformArchABI: 'linux-x64-musl',
|
|
87
|
+
triple: 'x86_64-unknown-linux-musl',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
abi: null,
|
|
91
|
+
arch: 'x64',
|
|
92
|
+
platform: 'openharmony',
|
|
93
|
+
platformArchABI: 'openharmony-x64',
|
|
94
|
+
triple: 'x86_64-unknown-linux-ohos',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
abi: null,
|
|
98
|
+
arch: 'x64',
|
|
99
|
+
platform: 'freebsd',
|
|
100
|
+
platformArchABI: 'freebsd-x64',
|
|
101
|
+
triple: 'x86_64-unknown-freebsd',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
abi: 'msvc',
|
|
105
|
+
arch: 'ia32',
|
|
106
|
+
platform: 'win32',
|
|
107
|
+
platformArchABI: 'win32-ia32-msvc',
|
|
108
|
+
triple: 'i686-pc-windows-msvc',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
abi: 'gnueabihf',
|
|
112
|
+
arch: 'arm',
|
|
113
|
+
platform: 'linux',
|
|
114
|
+
platformArchABI: 'linux-arm-gnueabihf',
|
|
115
|
+
triple: 'armv7-unknown-linux-gnueabihf',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
abi: 'musleabihf',
|
|
119
|
+
arch: 'arm',
|
|
120
|
+
platform: 'linux',
|
|
121
|
+
platformArchABI: 'linux-arm-musleabihf',
|
|
122
|
+
triple: 'armv7-unknown-linux-musleabihf',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
abi: 'eabi',
|
|
126
|
+
arch: 'arm',
|
|
127
|
+
platform: 'android',
|
|
128
|
+
platformArchABI: 'android-arm-eabi',
|
|
129
|
+
triple: 'armv7-linux-androideabi',
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
abi: null,
|
|
133
|
+
arch: 'universal',
|
|
134
|
+
platform: 'darwin',
|
|
135
|
+
platformArchABI: 'darwin-universal',
|
|
136
|
+
triple: 'universal-apple-darwin',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
abi: 'gnu',
|
|
140
|
+
arch: 'loong64',
|
|
141
|
+
platform: 'linux',
|
|
142
|
+
platformArchABI: 'linux-loong64-gnu',
|
|
143
|
+
triple: 'loongarch64-unknown-linux-gnu',
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
abi: 'gnu',
|
|
147
|
+
arch: 'riscv64',
|
|
148
|
+
platform: 'linux',
|
|
149
|
+
platformArchABI: 'linux-riscv64-gnu',
|
|
150
|
+
triple: 'riscv64gc-unknown-linux-gnu',
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
abi: 'gnu',
|
|
154
|
+
arch: 'ppc64',
|
|
155
|
+
platform: 'linux',
|
|
156
|
+
platformArchABI: 'linux-ppc64-gnu',
|
|
157
|
+
triple: 'powerpc64le-unknown-linux-gnu',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
abi: 'gnu',
|
|
161
|
+
arch: 's390x',
|
|
162
|
+
platform: 'linux',
|
|
163
|
+
platformArchABI: 'linux-s390x-gnu',
|
|
164
|
+
triple: 's390x-unknown-linux-gnu',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
abi: 'wasi',
|
|
168
|
+
arch: 'wasm32',
|
|
169
|
+
platform: 'wasi',
|
|
170
|
+
platformArchABI: 'wasm32-wasi',
|
|
171
|
+
triple: 'wasm32-wasi-preview1-threads',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
abi: 'wasi',
|
|
175
|
+
arch: 'wasm32',
|
|
176
|
+
platform: 'wasi',
|
|
177
|
+
platformArchABI: 'wasm32-wasi',
|
|
178
|
+
triple: 'wasm32-wasip1-threads',
|
|
179
|
+
},
|
|
180
|
+
]
|
|
Binary file
|