Skip to content

Commit c0c474f

Browse files
committed
Remove build scripts and register functions/calls
1 parent bcacc8a commit c0c474f

File tree

138 files changed

+12
-1213
lines changed

Some content is hidden

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

138 files changed

+12
-1213
lines changed

Cargo.lock

Lines changed: 0 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ turbo-unix-path = { path = "turbopack/crates/turbo-unix-path" }
269269
turbo-tasks-malloc = { path = "turbopack/crates/turbo-tasks-malloc", default-features = false }
270270
turbo-tasks = { path = "turbopack/crates/turbo-tasks" }
271271
turbo-tasks-backend = { path = "turbopack/crates/turbo-tasks-backend" }
272-
turbo-tasks-build = { path = "turbopack/crates/turbo-tasks-build" }
273272
turbo-tasks-bytes = { path = "turbopack/crates/turbo-tasks-bytes" }
274273
turbo-tasks-env = { path = "turbopack/crates/turbo-tasks-env" }
275274
turbo-tasks-fetch = { path = "turbopack/crates/turbo-tasks-fetch" }

crates/napi/Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,3 @@ serde = { workspace = true }
145145
serde_json = { workspace = true }
146146
vergen-gitcl = { workspace = true }
147147

148-
# build-dependencies for the native, non-wasm32 build
149-
[target.'cfg(not(target_arch = "wasm32"))'.build-dependencies]
150-
turbo-tasks-build = { workspace = true }

crates/napi/build.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,5 @@ fn main() -> anyhow::Result<()> {
8989
#[cfg(all(target_os = "linux", not(target_arch = "wasm32")))]
9090
println!("cargo:rustc-link-arg=-Wl,--warn-unresolved-symbols");
9191

92-
#[cfg(not(target_arch = "wasm32"))]
93-
turbo_tasks_build::generate_register();
94-
9592
Ok(())
9693
}

crates/napi/src/lib.rs

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ DEALINGS IN THE SOFTWARE.
3434
#[macro_use]
3535
extern crate napi_derive;
3636

37-
use std::sync::{Arc, Once};
37+
use std::sync::Arc;
3838

3939
use napi::bindgen_prelude::*;
4040
use rustc_hash::{FxHashMap, FxHashSet};
@@ -154,19 +154,3 @@ pub fn complete_output(
154154

155155
Ok(js_output)
156156
}
157-
158-
static REGISTER_ONCE: Once = Once::new();
159-
160-
#[cfg(not(target_arch = "wasm32"))]
161-
fn register() {
162-
REGISTER_ONCE.call_once(|| {
163-
::next_api::register();
164-
next_core::register();
165-
include!(concat!(env!("OUT_DIR"), "/register.rs"));
166-
});
167-
}
168-
169-
#[cfg(target_arch = "wasm32")]
170-
fn register() {
171-
//noop
172-
}

crates/napi/src/next_api/project.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ use crate::{
7272
get_issues, subscribe,
7373
},
7474
},
75-
register,
7675
util::DhatProfilerGuard,
7776
};
7877

@@ -351,7 +350,6 @@ pub fn project_new(
351350
) -> napi::Result<JsObject> {
352351
let napi_callbacks = NapiNextTurbopackCallbacks::from_js(napi_callbacks)?;
353352
env.spawn_future(async move {
354-
register();
355353
let (exit, exit_receiver) = ExitHandler::new_receiver();
356354

357355
if let Some(dhat_profiler) = DhatProfilerGuard::try_init() {

crates/next-api/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,4 @@ turbo-tasks-backend = { workspace = true }
5252

5353
[build-dependencies]
5454
anyhow = { workspace = true }
55-
turbo-tasks-build = { workspace = true }
5655
vergen = { workspace = true }

0 commit comments

Comments
 (0)