2021-03-31 17:31:55 +02:00
|
|
|
use indexmap::IndexMap;
|
2022-03-26 10:42:19 +01:00
|
|
|
use serde::{self, Deserialize, Serialize};
|
2021-03-31 17:31:55 +02:00
|
|
|
|
2019-10-04 20:42:33 +08:00
|
|
|
pub mod aws;
|
2021-12-06 23:01:33 +01:00
|
|
|
pub mod azure;
|
2019-09-30 20:10:35 +08:00
|
|
|
pub mod battery;
|
2022-03-12 03:10:23 -08:00
|
|
|
pub mod buf;
|
2022-08-01 12:59:36 +02:00
|
|
|
pub mod bun;
|
2022-03-25 04:10:19 +00:00
|
|
|
pub mod c;
|
2025-04-27 01:42:35 +05:30
|
|
|
pub mod cc;
|
2019-10-04 20:42:33 +08:00
|
|
|
pub mod character;
|
2026-04-03 18:02:39 +02:00
|
|
|
pub mod claude_context;
|
|
|
|
|
pub mod claude_cost;
|
|
|
|
|
pub mod claude_model;
|
2020-07-09 21:40:33 +02:00
|
|
|
pub mod cmake;
|
2019-10-15 19:34:48 +08:00
|
|
|
pub mod cmd_duration;
|
2021-09-07 07:59:14 -07:00
|
|
|
pub mod cobol;
|
2019-10-05 20:25:25 +02:00
|
|
|
pub mod conda;
|
2022-01-21 16:44:46 +01:00
|
|
|
pub mod container;
|
2025-04-27 01:42:35 +05:30
|
|
|
pub mod cpp;
|
2020-02-05 00:27:06 +01:00
|
|
|
pub mod crystal;
|
2020-04-11 18:37:24 +02:00
|
|
|
pub mod custom;
|
2022-05-26 16:42:31 +02:00
|
|
|
pub mod daml;
|
2020-07-29 17:38:23 +02:00
|
|
|
pub mod dart;
|
2021-04-15 06:22:12 -07:00
|
|
|
pub mod deno;
|
2019-10-15 19:34:48 +08:00
|
|
|
pub mod directory;
|
2023-12-17 02:22:29 -05:00
|
|
|
pub mod direnv;
|
2020-04-05 20:42:55 +01:00
|
|
|
pub mod docker_context;
|
2019-10-02 16:56:49 +10:00
|
|
|
pub mod dotnet;
|
2020-03-02 04:29:27 +01:00
|
|
|
pub mod elixir;
|
2020-02-05 21:57:04 -06:00
|
|
|
pub mod elm;
|
2019-10-15 19:34:48 +08:00
|
|
|
pub mod env_var;
|
2020-04-27 12:09:42 +02:00
|
|
|
pub mod erlang;
|
2022-12-21 18:53:53 +02:00
|
|
|
pub mod fennel;
|
2021-09-12 16:59:15 -07:00
|
|
|
pub mod fill;
|
2025-10-21 20:17:08 +02:00
|
|
|
pub mod fortran;
|
2023-01-31 09:06:46 +01:00
|
|
|
pub mod fossil_branch;
|
2023-09-02 09:19:04 +02:00
|
|
|
pub mod fossil_metrics;
|
2020-08-04 06:30:20 +09:00
|
|
|
pub mod gcloud;
|
2019-10-15 06:48:53 -05:00
|
|
|
pub mod git_branch;
|
2019-12-06 08:57:42 -08:00
|
|
|
pub mod git_commit;
|
2021-07-10 16:54:34 -04:00
|
|
|
pub mod git_metrics;
|
2019-11-06 21:00:31 +08:00
|
|
|
pub mod git_state;
|
2019-10-26 00:20:20 -06:00
|
|
|
pub mod git_status;
|
2024-04-05 23:56:15 +02:00
|
|
|
pub mod gleam;
|
2019-10-13 06:16:56 +02:00
|
|
|
pub mod go;
|
2022-12-17 13:32:40 +01:00
|
|
|
pub mod gradle;
|
2022-10-25 07:44:04 +02:00
|
|
|
pub mod guix_shell;
|
2022-03-18 14:45:51 +08:00
|
|
|
pub mod haskell;
|
2022-12-04 18:28:49 +01:00
|
|
|
pub mod haxe;
|
2020-07-17 10:51:25 +03:00
|
|
|
pub mod helm;
|
2019-12-02 23:37:18 +01:00
|
|
|
pub mod hg_branch;
|
2025-06-06 23:24:16 +02:00
|
|
|
pub mod hg_state;
|
2019-10-10 16:21:52 +08:00
|
|
|
pub mod hostname;
|
2019-11-06 20:59:12 +08:00
|
|
|
pub mod java;
|
2019-10-10 16:21:52 +08:00
|
|
|
pub mod jobs;
|
2020-04-04 03:16:34 +09:00
|
|
|
pub mod julia;
|
2020-12-26 15:26:50 +01:00
|
|
|
pub mod kotlin;
|
2019-10-05 11:31:23 +02:00
|
|
|
pub mod kubernetes;
|
2021-07-30 19:33:59 +02:00
|
|
|
pub mod line_break;
|
2022-01-30 21:31:26 +01:00
|
|
|
pub mod localip;
|
2020-10-28 03:05:20 +09:00
|
|
|
pub mod lua;
|
2026-01-25 12:36:09 -08:00
|
|
|
pub mod maven;
|
2019-10-20 10:26:04 -05:00
|
|
|
pub mod memory_usage;
|
2022-10-11 09:02:46 -07:00
|
|
|
pub mod meson;
|
2025-04-26 16:15:30 -04:00
|
|
|
pub mod mise;
|
2024-08-18 18:12:39 +02:00
|
|
|
pub mod mojo;
|
2024-05-15 12:46:14 -04:00
|
|
|
pub mod nats;
|
2025-03-09 08:45:58 -07:00
|
|
|
pub mod netns;
|
2020-06-09 10:14:47 -07:00
|
|
|
pub mod nim;
|
2019-11-06 20:59:12 +08:00
|
|
|
pub mod nix_shell;
|
2019-10-19 09:51:38 +08:00
|
|
|
pub mod nodejs;
|
2020-05-22 01:43:13 +09:00
|
|
|
pub mod ocaml;
|
2024-04-05 17:56:49 -04:00
|
|
|
pub mod odin;
|
2022-10-15 18:15:33 +02:00
|
|
|
pub mod opa;
|
2020-10-24 05:46:43 -04:00
|
|
|
pub mod openstack;
|
2022-11-06 14:37:58 -07:00
|
|
|
pub mod os;
|
2019-10-19 09:51:38 +08:00
|
|
|
pub mod package;
|
2020-08-04 18:22:44 +02:00
|
|
|
pub mod perl;
|
2019-12-05 18:04:27 +00:00
|
|
|
pub mod php;
|
2022-12-31 09:55:23 -05:00
|
|
|
pub mod pijul_channel;
|
2025-04-26 22:13:57 +02:00
|
|
|
pub mod pixi;
|
2021-10-05 16:27:25 -07:00
|
|
|
pub mod pulumi;
|
2020-05-23 01:26:58 +09:00
|
|
|
pub mod purescript;
|
2019-10-19 09:51:38 +08:00
|
|
|
pub mod python;
|
2024-03-20 17:50:12 -04:00
|
|
|
pub mod quarto;
|
2022-06-26 12:00:55 +02:00
|
|
|
pub mod raku;
|
2021-04-20 17:31:47 +01:00
|
|
|
pub mod red;
|
2021-05-25 14:13:30 -04:00
|
|
|
pub mod rlang;
|
2019-10-19 09:51:38 +08:00
|
|
|
pub mod ruby;
|
2019-09-30 20:10:35 +08:00
|
|
|
pub mod rust;
|
2021-03-14 21:37:00 +02:00
|
|
|
pub mod scala;
|
2021-02-20 14:40:49 +00:00
|
|
|
pub mod shell;
|
2020-08-05 12:30:01 -04:00
|
|
|
pub mod shlvl;
|
2020-02-26 17:18:19 +01:00
|
|
|
pub mod singularity;
|
2023-04-14 00:35:12 +05:30
|
|
|
pub mod solidity;
|
2022-04-03 15:33:14 +02:00
|
|
|
pub mod spack;
|
2019-10-25 09:08:09 +08:00
|
|
|
mod starship_root;
|
2020-09-26 00:04:51 +02:00
|
|
|
pub mod status;
|
2021-11-15 02:46:13 -03:00
|
|
|
pub mod sudo;
|
2020-07-29 17:36:49 +02:00
|
|
|
pub mod swift;
|
2019-12-09 08:42:51 +07:00
|
|
|
pub mod terraform;
|
2019-10-06 00:07:00 +09:00
|
|
|
pub mod time;
|
2023-10-26 15:31:16 +02:00
|
|
|
pub mod typst;
|
2019-10-19 09:51:38 +08:00
|
|
|
pub mod username;
|
2021-05-03 20:50:29 +01:00
|
|
|
pub mod v;
|
2021-01-30 14:05:16 +03:00
|
|
|
pub mod vagrant;
|
2026-01-04 17:44:03 +01:00
|
|
|
pub mod vcs;
|
2021-03-28 18:48:15 +03:00
|
|
|
pub mod vcsh;
|
2025-07-14 01:56:18 +08:00
|
|
|
pub mod xmake;
|
2020-05-21 18:49:49 +02:00
|
|
|
pub mod zig;
|
2019-09-30 20:10:35 +08:00
|
|
|
|
2019-10-25 09:08:09 +08:00
|
|
|
pub use starship_root::*;
|
2021-03-31 17:31:55 +02:00
|
|
|
|
2022-03-26 10:42:19 +01:00
|
|
|
#[derive(Serialize, Deserialize, Clone, Default)]
|
2022-09-09 14:59:38 +02:00
|
|
|
#[cfg_attr(
|
|
|
|
|
feature = "config-schema",
|
|
|
|
|
derive(schemars::JsonSchema),
|
|
|
|
|
schemars(deny_unknown_fields)
|
|
|
|
|
)]
|
2021-03-31 17:31:55 +02:00
|
|
|
#[serde(default)]
|
|
|
|
|
pub struct FullConfig<'a> {
|
2022-04-01 17:14:05 +02:00
|
|
|
// Meta
|
|
|
|
|
#[serde(rename = "$schema")]
|
|
|
|
|
schema: String,
|
2021-04-05 16:47:49 +02:00
|
|
|
// Root config
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(flatten)]
|
|
|
|
|
root: StarshipRootConfig,
|
2021-04-05 16:47:49 +02:00
|
|
|
// modules
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
aws: aws::AwsConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-12-06 23:01:33 +01:00
|
|
|
azure: azure::AzureConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-07-30 19:33:59 +02:00
|
|
|
battery: battery::BatteryConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-03-12 03:10:23 -08:00
|
|
|
buf: buf::BufConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-08-01 12:59:36 +02:00
|
|
|
bun: bun::BunConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2022-03-25 04:10:19 +00:00
|
|
|
c: c::CConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
character: character::CharacterConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2026-04-03 18:02:39 +02:00
|
|
|
claude_context: claude_context::ClaudeContextConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
|
|
|
|
claude_cost: claude_cost::ClaudeCostConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
|
|
|
|
claude_model: claude_model::ClaudeModelConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
cmake: cmake::CMakeConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
cmd_duration: cmd_duration::CmdDurationConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-09-07 07:59:14 -07:00
|
|
|
cobol: cobol::CobolConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
conda: conda::CondaConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-01-21 16:44:46 +01:00
|
|
|
container: container::ContainerConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2025-04-27 01:42:35 +05:30
|
|
|
cpp: cpp::CppConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
crystal: crystal::CrystalConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-05-26 16:42:31 +02:00
|
|
|
daml: daml::DamlConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
dart: dart::DartConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-04-15 06:22:12 -07:00
|
|
|
deno: deno::DenoConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
directory: directory::DirectoryConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2023-12-17 02:22:29 -05:00
|
|
|
direnv: direnv::DirenvConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
docker_context: docker_context::DockerContextConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
dotnet: dotnet::DotnetConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
elixir: elixir::ElixirConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
elm: elm::ElmConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-07-14 00:06:08 +03:00
|
|
|
env_var: IndexMap<String, env_var::EnvVarConfig<'a>>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
erlang: erlang::ErlangConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-12-21 18:53:53 +02:00
|
|
|
fennel: fennel::FennelConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-09-12 16:59:15 -07:00
|
|
|
fill: fill::FillConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2025-10-21 20:17:08 +02:00
|
|
|
fortran: fortran::FortranConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2023-01-31 09:06:46 +01:00
|
|
|
fossil_branch: fossil_branch::FossilBranchConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2023-09-02 09:19:04 +02:00
|
|
|
fossil_metrics: fossil_metrics::FossilMetricsConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
gcloud: gcloud::GcloudConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
git_branch: git_branch::GitBranchConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
git_commit: git_commit::GitCommitConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-07-10 16:54:34 -04:00
|
|
|
git_metrics: git_metrics::GitMetricsConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
git_state: git_state::GitStateConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
git_status: git_status::GitStatusConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2024-04-05 23:56:15 +02:00
|
|
|
gleam: gleam::GleamConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-04-05 16:47:49 +02:00
|
|
|
golang: go::GoConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-12-17 13:32:40 +01:00
|
|
|
gradle: gradle::GradleConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2022-10-25 07:44:04 +02:00
|
|
|
guix_shell: guix_shell::GuixShellConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2022-03-18 14:45:51 +08:00
|
|
|
haskell: haskell::HaskellConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-12-04 18:28:49 +01:00
|
|
|
haxe: haxe::HaxeConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
helm: helm::HelmConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
hg_branch: hg_branch::HgBranchConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2025-06-06 23:24:16 +02:00
|
|
|
hg_state: hg_state::HgStateConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
hostname: hostname::HostnameConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
java: java::JavaConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
jobs: jobs::JobsConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
julia: julia::JuliaConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
kotlin: kotlin::KotlinConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
kubernetes: kubernetes::KubernetesConfig<'a>,
|
2021-07-30 19:33:59 +02:00
|
|
|
line_break: line_break::LineBreakConfig,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-01-30 21:31:26 +01:00
|
|
|
localip: localip::LocalipConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
lua: lua::LuaConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2026-01-25 12:36:09 -08:00
|
|
|
maven: maven::MavenConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
memory_usage: memory_usage::MemoryConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-10-11 09:02:46 -07:00
|
|
|
meson: meson::MesonConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2025-04-26 16:15:30 -04:00
|
|
|
mise: mise::MiseConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2024-08-18 18:12:39 +02:00
|
|
|
mojo: mojo::MojoConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2024-05-15 12:46:14 -04:00
|
|
|
nats: nats::NatsConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2025-03-09 08:45:58 -07:00
|
|
|
netns: netns::NetnsConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
nim: nim::NimConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
nix_shell: nix_shell::NixShellConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
nodejs: nodejs::NodejsConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
ocaml: ocaml::OCamlConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2024-04-05 17:56:49 -04:00
|
|
|
odin: odin::OdinConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2022-10-15 18:15:33 +02:00
|
|
|
opa: opa::OpaConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
openstack: openstack::OspConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-11-06 14:37:58 -07:00
|
|
|
os: os::OSConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
package: package::PackageConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
perl: perl::PerlConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
php: php::PhpConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2022-12-31 09:55:23 -05:00
|
|
|
pijul_channel: pijul_channel::PijulConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2025-04-26 22:13:57 +02:00
|
|
|
pixi: pixi::PixiConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-10-05 16:27:25 -07:00
|
|
|
pulumi: pulumi::PulumiConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
purescript: purescript::PureScriptConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
python: python::PythonConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2024-03-20 17:50:12 -04:00
|
|
|
quarto: quarto::QuartoConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2022-06-26 12:00:55 +02:00
|
|
|
raku: raku::RakuConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-04-20 17:31:47 +01:00
|
|
|
red: red::RedConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-07-30 19:33:59 +02:00
|
|
|
rlang: rlang::RLangConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
ruby: ruby::RubyConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
rust: rust::RustConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
scala: scala::ScalaConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
shell: shell::ShellConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
shlvl: shlvl::ShLvlConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
singularity: singularity::SingularityConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2023-04-14 00:35:12 +05:30
|
|
|
solidity: solidity::SolidityConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2022-04-03 15:33:14 +02:00
|
|
|
spack: spack::SpackConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
status: status::StatusConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-11-15 02:46:13 -03:00
|
|
|
sudo: sudo::SudoConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
swift: swift::SwiftConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
terraform: terraform::TerraformConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
time: time::TimeConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2023-10-26 15:31:16 +02:00
|
|
|
typst: typst::TypstConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
username: username::UsernameConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
vagrant: vagrant::VagrantConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2026-01-04 17:44:03 +01:00
|
|
|
vcs: vcs::VcsConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-07-30 19:33:59 +02:00
|
|
|
vcsh: vcsh::VcshConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-07-30 19:33:59 +02:00
|
|
|
vlang: v::VConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2025-07-14 01:56:18 +08:00
|
|
|
xmake: xmake::XMakeConfig<'a>,
|
|
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
zig: zig::ZigConfig<'a>,
|
2022-03-26 10:42:19 +01:00
|
|
|
#[serde(borrow)]
|
2021-03-31 17:31:55 +02:00
|
|
|
custom: IndexMap<String, custom::CustomConfig<'a>>,
|
|
|
|
|
}
|
2021-04-26 19:55:22 +02:00
|
|
|
|
2021-07-30 19:33:59 +02:00
|
|
|
#[cfg(test)]
|
|
|
|
|
mod test {
|
|
|
|
|
use super::*;
|
|
|
|
|
use crate::module::ALL_MODULES;
|
|
|
|
|
use toml::value::Value;
|
|
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn test_all_modules_in_full_config() {
|
|
|
|
|
let full_cfg = Value::try_from(FullConfig::default()).unwrap();
|
|
|
|
|
let cfg_table = full_cfg.as_table().unwrap();
|
|
|
|
|
for module in ALL_MODULES {
|
|
|
|
|
assert!(cfg_table.contains_key(*module));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|