Download next.js/turbopack/crates/turbopack-static/src/lib.rs from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 692 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-static/src/lib.rs
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/turbopack/crates/turbopack-static/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-static/src/lib.rs
692 Bytes
| //! Static asset support for turbopack. | |
| //! | |
| //! Static assets are copied directly to the output folder. | |
| //! | |
| //! When imported from ES modules, they produce a thin module that simply | |
| //! exports the asset's path. | |
| //! | |
| //! When referred to from CSS assets, the reference is replaced with the asset's | |
| //! path. | |
| pub mod css; | |
| pub mod ecma; | |
| pub mod fixed; | |
| pub mod output_asset; | |
| pub fn register() { | |
| turbo_tasks::register(); | |
| turbo_tasks_fs::register(); | |
| turbopack_core::register(); | |
| turbopack_ecmascript::register(); | |
| include!(concat!(env!("OUT_DIR"), "/register.rs")); | |
| } | |