Skip to content

Commit

Permalink
perf: enable fast compile
Browse files Browse the repository at this point in the history
  • Loading branch information
hardfist committed Feb 7, 2025
1 parent 7c4ab28 commit 7150ea1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ rustflags = [
# "-Wclippy::same_name_method",

"-Aclippy::default_constructed_unit_structs",
"-Zshare-generics=y", # make the current crate share its generic instantiations
"-Zthreads=8" # parallel frontend https://blog.rust-lang.org/2023/11/09/parallel-rustc.html
]

# Fix napi breaking in test environment <https://github.com/napi-rs/napi-rs/issues/1005#issuecomment-1011034770>
Expand Down
1 change: 1 addition & 0 deletions crates/node_binding/binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1574,6 +1574,7 @@ export interface RawEnvironment {
module?: boolean
optionalChaining?: boolean
templateLiteral?: boolean
dynamicImportInWorker?: boolean
}

export interface RawEvalDevToolModulePluginOptions {
Expand Down

0 comments on commit 7150ea1

Please sign in to comment.