Download next.js/turbopack/crates/turbopack-css/src/code_gen.rs from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-css/src/code_gen.rs
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/turbopack/crates/turbopack-css/src/code_gen.rs
-
curl -L -o code_gen.rs https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/turbopack/crates/turbopack-css/src/code_gen.rs
676 Bytes
| use turbo_tasks::Vc; | |
| use turbopack_core::chunk::ChunkingContext; | |
| use crate::chunk::CssImport; | |
| /// impl of code generation inferred from a ModuleReference. | |
| /// This is rust only and can't be implemented by non-rust plugins. | |
| pub struct CodeGeneration { | |
| pub imports: Vec<CssImport>, | |
| } | |
| pub trait CodeGenerateable { | |
| fn code_generation( | |
| self: Vc<Self>, | |
| chunking_context: Vc<Box<dyn ChunkingContext>>, | |
| ) -> Vc<CodeGeneration>; | |
| } | |