Skip to content

Commit db9b988

Browse files
authored
feat(node-swc): Add libc field in Linux platform packages (#4046)
1 parent da1fd03 commit db9b988

File tree

83 files changed

+991
-626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+991
-626
lines changed

.cargo/config.toml

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,15 @@
11

22
[build]
33

4-
rustdocflags = [
5-
"--cfg",
6-
"docsrs",
7-
]
8-
rustflags = [
9-
"-C",
10-
"target-feature=+sse2",
11-
"-Z",
12-
"new-llvm-pass-manager=no",
13-
]
4+
rustdocflags = ["--cfg", "docsrs"]
5+
rustflags = ["-C", "target-feature=+sse2", "-Z", "new-llvm-pass-manager=no"]
146

157
[target.aarch64-apple-darwin]
16-
rustflags = [
17-
"-Z",
18-
"new-llvm-pass-manager=no",
19-
]
8+
rustflags = ["-Z", "new-llvm-pass-manager=no"]
209

2110
[target.aarch64-unknown-linux-gnu]
2211
linker = "aarch64-linux-gnu-gcc"
23-
rustflags = [
24-
"-Z",
25-
"new-llvm-pass-manager=no",
26-
]
12+
rustflags = ["-Z", "new-llvm-pass-manager=no"]
2713

2814
[target.aarch64-unknown-linux-musl]
2915
linker = "aarch64-linux-musl-gcc"
@@ -38,29 +24,17 @@ rustflags = [
3824

3925
[target.armv7-unknown-linux-gnueabihf]
4026
linker = "arm-linux-gnueabihf-gcc"
41-
rustflags = [
42-
"-Z",
43-
"new-llvm-pass-manager=no",
44-
]
27+
rustflags = ["-Z", "new-llvm-pass-manager=no"]
4528

4629
[target.aarch64-linux-android]
47-
rustflags = [
48-
"-Z",
49-
"new-llvm-pass-manager=no",
50-
]
30+
rustflags = ["-Z", "new-llvm-pass-manager=no"]
5131

5232
[target.x86_64-pc-windows-msvc]
5333
linker = "rust-lld"
5434

5535
[target.aarch64-pc-windows-msvc]
5636
linker = "rust-lld"
57-
rustflags = [
58-
"-Z",
59-
"new-llvm-pass-manager=no",
60-
]
37+
rustflags = ["-Z", "new-llvm-pass-manager=no"]
6138

6239
[target.wasm32-unknown-unknown]
63-
rustflags = [
64-
"-Z",
65-
"new-llvm-pass-manager=no",
66-
]
40+
rustflags = ["-Z", "new-llvm-pass-manager=no"]

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ opt-level = 3
6262
cranelift-codegen = { git = "https://github.com/kdy1/wasmtime", branch = "tls" }
6363
cranelift-entity = { git = "https://github.com/kdy1/wasmtime", branch = "tls" }
6464
# https://github.com/thoren-d/tracing-chrome/pull/6
65-
tracing-chrome = { git = "https://github.com/kwonoj/tracing-chrome", rev="a345d8e" }
65+
tracing-chrome = { git = "https://github.com/kwonoj/tracing-chrome", rev = "a345d8e" }

cliff.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ conventional_commits = true
5252
filter_unconventional = false
5353
# regex for parsing and grouping commits
5454
commit_parsers = [
55-
{message = "^feat", group = "Features"},
56-
{message = "^fix", group = "Bug Fixes"},
57-
{message = "^doc", group = "Documentation"},
58-
{message = "^perf", group = "Performance"},
59-
{message = "^refactor", group = "Refactor"},
60-
{message = "^style", group = "Styling"},
61-
{message = "^test", group = "Testing"},
62-
{message = "^chore: Publish", skip = true},
63-
{message = "^chore", group = "Miscellaneous Tasks"},
64-
{body = ".*security", group = "Security"},
55+
{ message = "^feat", group = "Features" },
56+
{ message = "^fix", group = "Bug Fixes" },
57+
{ message = "^doc", group = "Documentation" },
58+
{ message = "^perf", group = "Performance" },
59+
{ message = "^refactor", group = "Refactor" },
60+
{ message = "^style", group = "Styling" },
61+
{ message = "^test", group = "Testing" },
62+
{ message = "^chore: Publish", skip = true },
63+
{ message = "^chore", group = "Miscellaneous Tasks" },
64+
{ body = ".*security", group = "Security" },
6565
]
6666
# filter out the commits that are not matched by commit parsers
6767
filter_commits = false

clippy.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
blacklisted-names = ["bool", "char", "str", "f32", "f64", "i8", "i16", "i32", "i64", "u8", "u16", "u32", "u64", "isize", "usize"]
1+
blacklisted-names = [
2+
"bool",
3+
"char",
4+
"str",
5+
"f32",
6+
"f64",
7+
"i8",
8+
"i16",
9+
"i32",
10+
"i64",
11+
"u8",
12+
"u16",
13+
"u32",
14+
"u64",
15+
"isize",
16+
"usize",
17+
]
218
cognitive-complexity-threshold = 50
319
msrv = "1.58"
420
type-complexity-threshold = 25000

crates/ast_node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ darling = "0.13"
1616
pmutil = "0.5.1"
1717
proc-macro2 = "1"
1818
quote = "1"
19-
swc_macros_common = {version = "0.3.2", path = "../swc_macros_common"}
19+
swc_macros_common = { version = "0.3.2", path = "../swc_macros_common" }
2020

2121
[dependencies.syn]
2222
features = ["derive", "fold", "parsing", "printing", "visit-mut"]

crates/enum_kind/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ proc-macro = true
1414
[dependencies]
1515
pmutil = "0.5.1"
1616
proc-macro2 = "1"
17-
swc_macros_common = {version = "0.3.2", path = "../swc_macros_common"}
17+
swc_macros_common = { version = "0.3.2", path = "../swc_macros_common" }
1818

1919
[dependencies.syn]
2020
features = ["full", "parsing", "printing", "extra-traits"]

crates/fastmem/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ version = "0.1.0"
1111
enable = ["rayon"]
1212

1313
[dependencies]
14-
rayon = {version = "1", optional = true}
14+
rayon = { version = "1", optional = true }

crates/from_variant/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ proc-macro = true
1414
[dependencies]
1515
pmutil = "0.5.3"
1616
proc-macro2 = "1"
17-
swc_macros_common = {version = "0.3.2", path = "../swc_macros_common"}
17+
swc_macros_common = { version = "0.3.2", path = "../swc_macros_common" }
1818

1919
[dependencies.syn]
2020
features = ["derive", "fold", "parsing", "printing"]

crates/jsdoc/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ version = "0.63.0"
1111

1212
[dependencies]
1313
nom = "7.1.0"
14-
serde = {version = "1", features = ["derive"]}
15-
swc_atoms = {version = "0.2", path = "../swc_atoms"}
16-
swc_common = {version = "0.17.0", path = "../swc_common"}
14+
serde = { version = "1", features = ["derive"] }
15+
swc_atoms = { version = "0.2", path = "../swc_atoms" }
16+
swc_common = { version = "0.17.0", path = "../swc_common" }
1717

1818
[dev-dependencies]
1919
anyhow = "1"
2020
dashmap = "5.1.0"
21-
swc_ecma_ast = {version = "0.70.0", path = "../swc_ecma_ast"}
22-
swc_ecma_parser = {version = "0.94.0", path = "../swc_ecma_parser"}
23-
testing = {version = "0.19.0", path = "../testing"}
21+
swc_ecma_ast = { version = "0.70.0", path = "../swc_ecma_ast" }
22+
swc_ecma_parser = { version = "0.94.0", path = "../swc_ecma_parser" }
23+
testing = { version = "0.19.0", path = "../testing" }

0 commit comments

Comments
 (0)