Download next.js/crates/next-build/src/build_options.rs from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-build/src/build_options.rs
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-build/src/build_options.rs
-
curl -L -o build_options.rs https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-build/src/build_options.rs
1.22 kB
| use std::path::PathBuf; | |
| use next_core::next_config::Rewrites; | |
| use turbo_rcstr::RcStr; | |
| use turbopack_core::issue::IssueSeverity; | |
| pub struct BuildOptions { | |
| /// The root directory of the workspace. | |
| pub root: Option<PathBuf>, | |
| /// The project's directory. | |
| pub dir: Option<PathBuf>, | |
| /// next.config.js's distDir. | |
| pub dist_dir: Option<String>, | |
| /// The maximum memory to use for the build. | |
| pub memory_limit: Option<usize>, | |
| /// The log level to use for the build. | |
| pub log_level: Option<IssueSeverity>, | |
| /// Whether to show all logs. | |
| pub show_all: bool, | |
| /// Whether to show detailed logs. | |
| pub log_detail: bool, | |
| /// Whether to compute full stats. | |
| pub full_stats: bool, | |
| /// The Next.js build context. | |
| pub build_context: Option<BuildContext>, | |
| pub define_env: DefineEnv, | |
| } | |
| pub struct BuildContext { | |
| /// The build id. | |
| pub build_id: String, | |
| /// Next.js config rewrites. | |
| pub rewrites: Rewrites, | |
| } | |
| pub struct DefineEnv { | |
| pub client: Vec<(RcStr, Option<RcStr>)>, | |
| pub edge: Vec<(RcStr, Option<RcStr>)>, | |
| pub nodejs: Vec<(RcStr, Option<RcStr>)>, | |
| } | |