mirror of
https://github.com/denoland/deno.git
synced 2024-11-14 16:33:45 -05:00
d43b43ca78
Instead of using core/snapshot_creator.rs, instead two crates are introduced which allow building the snapshot during build.rs. Rollup is removed and replaced with our own bundler. This removes the Node build dependency. Modules in //js now use Deno-style imports with file extensions, rather than Node style extensionless imports. This improves incremental build time when changes are made to //js files by about 40 seconds.
22 lines
410 B
Text
22 lines
410 B
Text
import("//build_extra/rust/rust.gni")
|
|
|
|
rust_rlib("deno_typescript") {
|
|
source_root = "lib.rs"
|
|
generated_source_dir = "."
|
|
extern = [
|
|
{
|
|
label = "../core:deno"
|
|
crate_name = "deno"
|
|
crate_type = "rlib"
|
|
},
|
|
{
|
|
label = "$rust_build:serde_derive"
|
|
crate_name = "serde_derive"
|
|
crate_type = "proc_macro"
|
|
},
|
|
]
|
|
extern_rlib = [
|
|
"serde_json",
|
|
"serde",
|
|
]
|
|
}
|