next_core/next_telemetry.rs
1use turbo_rcstr::RcStr;
2
3/// Summary of Next.js feature usage for a project, reported as telemetry.
4///
5/// Produced by `next_api::project::Project::project_feature_usage`. Entries cover:
6/// - Boolean build/config flags (`1` if enabled, `0` if disabled), mirroring webpack's
7/// `TelemetryPlugin`.
8/// - Module imports (e.g. `next/image`, `next/font/google`): one count per unique importing module,
9/// computed by walking the whole-app module graph.
10///
11/// The vector is sorted by `feature_name` for determinism.
12#[turbo_tasks::value(shared)]
13pub struct ProjectFeatureUsageSummary {
14 pub features: Vec<(RcStr, u32)>,
15}