Skip to content

Commit c55e6e3

Browse files
committed
build: fix build with latest nightly toolchain
1 parent 27d003b commit c55e6e3

File tree

12 files changed

+13
-41
lines changed

12 files changed

+13
-41
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"postinstall": "husky install"
2323
},
2424
"devDependencies": {
25-
"@napi-rs/cli": "^2.4.2",
25+
"@napi-rs/cli": "^2.4.4",
2626
"@swc-node/core": "^1.8.2",
2727
"@swc-node/register": "^1.4.2",
2828
"@types/node": "^17.0.8",

packages/argon2/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["cdylib"]
1010
argon2 = {version = "0.3", features = ["parallel"]}
1111
napi = {version = "2", default-features = false, features = ["napi3"]}
1212
napi-derive = {version = "2", default-features = false, features = ["type-def"]}
13-
rand = {version = "0.8", features = ["nightly", "simd_support"]}
13+
rand = {git = "https://github.com/rust-random/rand", version = "0.8", rev = "a407bdf", features = ["nightly", "simd_support"]}
1414

1515
[build-dependencies]
1616
napi-build = "1"

packages/argon2/index.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
/* auto-generated by NAPI-RS */
55

6-
export class ExternalObject<T> {
7-
readonly '': {
8-
readonly '': unique symbol
9-
[K: symbol]: T
10-
}
11-
}
126
export const enum Algorithm {
137
/**
148
* Optimizes against GPU cracking attacks but vulnerable to side-channels.

packages/bcrypt/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ crate-type = ["cdylib"]
99

1010
[dependencies]
1111
bcrypt = "0.10"
12-
blowfish = {version = "0.8", features = ["bcrypt"]}
12+
blowfish = {version = "0.9", features = ["bcrypt"]}
1313
byteorder = "1"
1414
global_alloc = {path = "../../crates/alloc"}
1515
napi = {version = "2", default-features = false, features = ["napi3"]}
1616
napi-derive = {version = "2"}
1717
phf = {version = "0.10", features = ["macros"]}
1818
radix64 = "0.6"
19-
rand = "0.8"
19+
rand = {git = "https://github.com/rust-random/rand", rev = "a407bdf"}
2020

2121
[dev-dependencies]
2222
quickcheck = "1.0"

packages/bcrypt/binding.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
/* auto-generated by NAPI-RS */
55

6-
export class ExternalObject<T> {
7-
readonly '': {
8-
readonly '': unique symbol
9-
[K: symbol]: T
10-
}
11-
}
126
export const DEFAULT_COST: number
137
export function genSaltSync(round: number, version: string): string
148
export function genSalt(round: number, version: string, signal?: AbortSignal | undefined | null): Promise<string>

packages/bcrypt/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"files": [
2222
"index.js",
2323
"index.d.ts",
24+
"binding.js",
25+
"binding.d.ts",
2426
"LICENSE",
2527
"LICENSE.rust-bcrypt"
2628
],

packages/crc32/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.1.0"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
crc32c = {version = "0.6"}
11+
crc32c = {git = "https://github.com/Brooooooklyn/crc32c", branch = "master"}
1212
crc32fast = {version = "1.3", features = ["nightly"]}
1313
global_alloc = {path = "../../crates/alloc"}
1414
napi = {version = "2", default-features = false, features = ["napi3"]}

packages/crc32/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"scripts": {
5353
"artifacts": "napi artifacts -d ../../artifacts",
5454
"bench": "cross-env NODE_ENV=production node benchmark/crc32.js",
55-
"build": "napi build --platform --release --pipe \"prettier -w\" --js false",
56-
"build:debug": "napi build --platform --pipe \"prettier -w\" --js false",
55+
"build": "napi build --platform --release --pipe \"prettier -w\"",
56+
"build:debug": "napi build --platform --pipe \"prettier -w\"",
5757
"prepublishOnly": "napi prepublish",
5858
"version": "napi version"
5959
},

packages/deno-lint/index.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
/* auto-generated by NAPI-RS */
55

6-
export class ExternalObject<T> {
7-
readonly '': {
8-
readonly '': unique symbol
9-
[K: symbol]: T
10-
}
11-
}
126
export function lint(
137
fileName: string,
148
sourceCode: string | Buffer,

packages/jieba/index.d.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33

44
/* auto-generated by NAPI-RS */
55

6-
export class ExternalObject<T> {
7-
readonly '': {
8-
readonly '': unique symbol
9-
[K: symbol]: T
10-
}
11-
}
126
export function load(): void
137
export function loadDict(dict: Buffer): void
148
export function cut(sentence: string | Buffer, hmm?: boolean | undefined | null): string[]

0 commit comments

Comments
 (0)