Skip to content

Commit 4a19512

Browse files
committed
Merge remote-tracking branch 'origin/canary' into sokra/analyse-data
2 parents 0a5b18f + 67aa5f3 commit 4a19512

File tree

48 files changed

+102
-253
lines changed

Some content is hidden

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

48 files changed

+102
-253
lines changed

crates/napi/build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ use std::{env, fs, path::Path, process::Command, str};
22

33
use serde_json::Value;
44

5-
extern crate napi_build;
6-
75
fn main() -> anyhow::Result<()> {
86
println!("cargo:rerun-if-env-changed=CI");
97
let is_ci = env::var("CI").is_ok_and(|value| !value.is_empty());

crates/napi/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ DEALINGS IN THE SOFTWARE.
3232
#![feature(arbitrary_self_types_pointers)]
3333
#![feature(iter_intersperse)]
3434

35-
#[macro_use]
36-
extern crate napi_derive;
37-
3835
use std::sync::Arc;
3936

4037
use napi::bindgen_prelude::*;

crates/napi/src/lockfile.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use std::{
66

77
use anyhow::Context;
88
use napi::bindgen_prelude::External;
9+
use napi_derive::napi;
910

1011
/// A wrapper around [`File`] that is passed to JS, and is set to `None` when [`lockfile_unlock`] is
1112
/// called.

crates/napi/src/mdx.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use mdxjs::{Options, compile};
22
use napi::bindgen_prelude::*;
3+
use napi_derive::napi;
34

45
pub struct MdxCompileTask {
56
pub input: String,

crates/napi/src/minify.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ DEALINGS IN THE SOFTWARE.
2828

2929
use anyhow::Context;
3030
use napi::bindgen_prelude::*;
31+
use napi_derive::napi;
3132
use serde::Serialize;
3233
use swc_core::{
3334
base::{config::JsMinifyOptions, try_with_handler},

crates/napi/src/next_api/endpoint.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use std::{ops::Deref, sync::Arc};
33
use anyhow::Result;
44
use futures_util::TryFutureExt;
55
use napi::{JsFunction, bindgen_prelude::External};
6+
use napi_derive::napi;
67
use next_api::{
78
operation::OptionEndpoint,
89
paths::ServerPath,
@@ -15,7 +16,7 @@ use tracing::Instrument;
1516
use turbo_tasks::{Completion, Effects, OperationVc, ReadRef, Vc};
1617
use turbopack_core::{diagnostics::PlainDiagnostic, issue::PlainIssue};
1718

18-
use super::utils::{
19+
use crate::next_api::utils::{
1920
DetachedVc, NapiDiagnostic, NapiIssue, RootTask, TurbopackResult,
2021
strongly_consistent_catch_collectables, subscribe,
2122
};

crates/napi/src/next_api/project.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use napi::{
88
bindgen_prelude::{External, within_runtime_if_available},
99
threadsafe_function::{ThreadsafeFunction, ThreadsafeFunctionCallMode},
1010
};
11+
use napi_derive::napi;
1112
use next_api::{
1213
entrypoints::Entrypoints,
1314
next_server_nft::next_server_nft_assets,

crates/napi/src/next_api/turbopack_ctx.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ use std::{
1212
use anyhow::Result;
1313
use either::Either;
1414
use napi::{JsFunction, threadsafe_function::ThreadsafeFunction};
15+
use napi_derive::napi;
1516
use once_cell::sync::Lazy;
1617
use owo_colors::OwoColorize;
1718
use serde::Serialize;

crates/napi/src/next_api/utils.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use napi::{
77
bindgen_prelude::{Buffer, External, ToNapiValue},
88
threadsafe_function::{ThreadSafeCallContext, ThreadsafeFunction, ThreadsafeFunctionCallMode},
99
};
10+
use napi_derive::napi;
1011
use rustc_hash::FxHashMap;
1112
use serde::Serialize;
1213
use turbo_tasks::{

crates/napi/src/parse.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::sync::Arc;
22

33
use anyhow::Context as _;
44
use napi::bindgen_prelude::*;
5+
use napi_derive::napi;
56
use swc_core::{
67
base::{config::ParseOptions, try_with_handler},
78
common::{

0 commit comments

Comments
 (0)