bootstrap/core/config/toml/install.rs
1//! This module defines the `Install` struct, which represents the `[install]` table
2//! in the `bootstrap.toml` configuration file.
3//!
4//! The `[install]` table contains options that specify the installation paths
5//! for various components of the Rust toolchain. These paths determine where
6//! executables, libraries, documentation, and other files will be placed
7//! during the `install` stage of the build.
8
9use crate::core::config::macros::define_config;
10
11define_config! {
12 /// TOML representation of various global install decisions.
13 #[derive(Default)]
14 struct Install {
15 prefix: Option<String> = "prefix",
16 sysconfdir: Option<String> = "sysconfdir",
17 docdir: Option<String> = "docdir",
18 bindir: Option<String> = "bindir",
19 libdir: Option<String> = "libdir",
20 mandir: Option<String> = "mandir",
21 datadir: Option<String> = "datadir",
22 }
23}