turbopack_static/lib.rs
1//! Static asset support for turbopack.
2//!
3//! Static assets are copied directly to the output folder.
4//!
5//! When imported from ES modules, they produce a thin module that simply
6//! exports the asset's path.
7//!
8//! When referred to from CSS assets, the reference is replaced with the asset's
9//! path.
10
11#![feature(min_specialization)]
12#![feature(arbitrary_self_types)]
13#![feature(arbitrary_self_types_pointers)]
14
15pub mod css;
16pub mod ecma;
17pub mod fixed;
18pub mod output_asset;
19
20pub fn register() {
21 turbo_tasks::register();
22 turbo_tasks_fs::register();
23 turbopack_core::register();
24 turbopack_ecmascript::register();
25 include!(concat!(env!("OUT_DIR"), "/register.rs"));
26}