repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/red.rs | src/configs/red.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct RedConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/os.rs | src/configs/os.rs | use indexmap::{IndexMap, indexmap};
use os_info::Type;
use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct OSConfig<'a> {
pub format: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/c.rs | src/configs/c.rs | use crate::configs::cc::CcConfig;
use serde::{Deserialize, Serialize};
#[derive(Default, Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
pub struct CConfigMarker;
pub type CConfig<'a> = CcConfig<'a, CConfigMarker>;
impl... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/container.rs | src/configs/container.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct ContainerConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/azure.rs | src/configs/azure.rs | use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct AzureConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/status.rs | src/configs/status.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct StatusConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub success_symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/hostname.rs | src/configs/hostname.rs | use indexmap::IndexMap;
use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct HostnameConfig<'a> {
pub ssh_only: bool,
pub ssh_symbol: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/hg_state.rs | src/configs/hg_state.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct HgStateConfig<'a> {
pub merge: &'a str,
pub rebase: &'a str,
pub update: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/time.rs | src/configs/time.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct TimeConfig<'a> {
pub format: &'a str,
pub style: &'a str,
pub use_12hr: bool,
#[se... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/deno.rs | src/configs/deno.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct DenoConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/git_commit.rs | src/configs/git_commit.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct GitCommitConfig<'a> {
pub commit_hash_length: usize,
pub format: &'a str,
pub style: &... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/shell.rs | src/configs/shell.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct ShellConfig<'a> {
pub format: &'a str,
pub bash_indicator: &'a str,
pub fish_indicator... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/python.rs | src/configs/python.rs | use crate::config::VecOr;
use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct PythonConfig<'a> {
pub pyenv_version_name: bool,
pub pyenv_pref... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/pijul_channel.rs | src/configs/pijul_channel.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct PijulConfig<'a> {
pub symbol: &'a str,
pub style: &'a str,
pub format: &'a str,
pu... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/spack.rs | src/configs/spack.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct SpackConfig<'a> {
pub truncation_length: usize,
pub format: &'a str,
pub symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/ocaml.rs | src/configs/ocaml.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct OCamlConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub global_switch_... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/mise.rs | src/configs/mise.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct MiseConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/singularity.rs | src/configs/singularity.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct SingularityConfig<'a> {
pub symbol: &'a str,
pub format: &'a str,
pub style: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/raku.rs | src/configs/raku.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct RakuConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/nix_shell.rs | src/configs/nix_shell.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct NixShellConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/conda.rs | src/configs/conda.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct CondaConfig<'a> {
pub truncation_length: usize,
pub format: &'a str,
pub symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/helm.rs | src/configs/helm.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct HelmConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/rlang.rs | src/configs/rlang.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct RLangConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub style: &'a str... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/pulumi.rs | src/configs/pulumi.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct PulumiConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/solidity.rs | src/configs/solidity.rs | use serde::{Deserialize, Serialize};
use crate::config::VecOr;
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct SolidityConfig<'a> {
pub format: &'a str,
pub version_format: &... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/terraform.rs | src/configs/terraform.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct TerraformConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/git_branch.rs | src/configs/git_branch.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct GitBranchConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/fossil_metrics.rs | src/configs/fossil_metrics.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct FossilMetricsConfig<'a> {
pub format: &'a str,
pub added_style: &'a str,
pub deleted_s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/xmake.rs | src/configs/xmake.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct XMakeConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a st... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/gcloud.rs | src/configs/gcloud.rs | use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct GcloudConfig<'a> {
pub format: &'a str,
pub symbol: &'a str... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/mod.rs | src/configs/mod.rs | use indexmap::IndexMap;
use serde::{self, Deserialize, Serialize};
pub mod aws;
pub mod azure;
pub mod battery;
pub mod buf;
pub mod bun;
pub mod c;
pub mod cc;
pub mod character;
pub mod cmake;
pub mod cmd_duration;
pub mod cobol;
pub mod conda;
pub mod container;
pub mod cpp;
pub mod crystal;
pub mod custom;
pub mod... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/pixi.rs | src/configs/pixi.rs | use serde::{Deserialize, Serialize};
use crate::config::VecOr;
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct PixiConfig<'a> {
pub pixi_binary: VecOr<&'a str>,
pub show_defa... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/java.rs | src/configs/java.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct JavaConfig<'a> {
pub disabled: bool,
pub format: &'a str,
pub version_format: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/hg_branch.rs | src/configs/hg_branch.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct HgBranchConfig<'a> {
pub symbol: &'a str,
pub style: &'a str,
pub format: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/character.rs | src/configs/character.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct CharacterConfig<'a> {
pub format: &'a str,
pub success_symbol: &'a str,
pub error_symb... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/zig.rs | src/configs/zig.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct ZigConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/bun.rs | src/configs/bun.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct BunConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/nats.rs | src/configs/nats.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct NatsConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pub... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/cmake.rs | src/configs/cmake.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct CMakeConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a st... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/fossil_branch.rs | src/configs/fossil_branch.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct FossilBranchConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/opa.rs | src/configs/opa.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct OpaConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/docker_context.rs | src/configs/docker_context.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct DockerContextConfig<'a> {
pub symbol: &'a str,
pub style: &'a str,
pub format: &'a str... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/lua.rs | src/configs/lua.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct LuaConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/netns.rs | src/configs/netns.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct NetnsConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
pu... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/git_metrics.rs | src/configs/git_metrics.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct GitMetricsConfig<'a> {
pub added_style: &'a str,
pub deleted_style: &'a str,
pub only_... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/fortran.rs | src/configs/fortran.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct FortranConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a ... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/odin.rs | src/configs/odin.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct OdinConfig<'a> {
pub format: &'a str,
pub show_commit: bool,
pub symbol: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/crystal.rs | src/configs/crystal.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct CrystalConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a ... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/haxe.rs | src/configs/haxe.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct HaxeConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/kubernetes.rs | src/configs/kubernetes.rs | use serde::{Deserialize, Serialize};
use std::collections::HashMap;
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct KubernetesConfig<'a> {
pub symbol: &'a str,
pub format: &'a... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/cpp.rs | src/configs/cpp.rs | use crate::configs::cc::CcConfig;
use serde::{Deserialize, Serialize};
#[derive(Default, Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
pub struct CppConfigMarker;
pub type CppConfig<'a> = CcConfig<'a, CppConfigMarker>;... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/git_state.rs | src/configs/git_state.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct GitStateConfig<'a> {
pub rebase: &'a str,
pub merge: &'a str,
pub revert: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/package.rs | src/configs/package.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct PackageConfig<'a> {
pub format: &'a str,
pub symbol: &'a str,
pub style: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/quarto.rs | src/configs/quarto.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct QuartoConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/swift.rs | src/configs/swift.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct SwiftConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a st... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/memory_usage.rs | src/configs/memory_usage.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct MemoryConfig<'a> {
pub threshold: i64,
pub format: &'a str,
pub style: &'a str,
pu... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/elixir.rs | src/configs/elixir.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct ElixirConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/erlang.rs | src/configs/erlang.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct ErlangConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/v.rs | src/configs/v.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct VConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,
... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/dotnet.rs | src/configs/dotnet.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct DotnetConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a s... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/buf.rs | src/configs/buf.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct BufConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/haskell.rs | src/configs/haskell.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct HaskellConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a ... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/directory.rs | src/configs/directory.rs | use indexmap::IndexMap;
use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct DirectoryConfig<'a> {
pub truncation_length: i64,
pub truncate_to... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/battery.rs | src/configs/battery.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct BatteryConfig<'a> {
pub full_symbol: &'a str,
pub charging_symbol: &'a str,
pub discha... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/php.rs | src/configs/php.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct PhpConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a str,... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/cobol.rs | src/configs/cobol.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct CobolConfig<'a> {
pub format: &'a str,
pub version_format: &'a str,
pub symbol: &'a st... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/meson.rs | src/configs/meson.rs | use serde::{Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct MesonConfig<'a> {
pub truncation_length: u32,
pub truncation_symbol: &'a str,
pub form... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/configs/custom.rs | src/configs/custom.rs | use crate::config::{Either, VecOr};
use serde::{self, Deserialize, Serialize};
#[derive(Clone, Deserialize, Serialize)]
#[cfg_attr(
feature = "config-schema",
derive(schemars::JsonSchema),
schemars(deny_unknown_fields)
)]
#[serde(default)]
pub struct CustomConfig<'a> {
pub format: &'a str,
pub sym... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
starship/starship | https://github.com/starship/starship/blob/8a69666084d248b8fd76b6c54f38aea12abce6e3/src/init/mod.rs | src/init/mod.rs | use crate::utils::create_command;
use std::ffi::OsStr;
use std::path::{Path, PathBuf};
use std::{env, io};
use which::which;
/* We use a two-phase init here: the first phase gives a simple command to the
shell. This command evaluates a more complicated script using `source` and
process substitution.
Directly using `... | rust | ISC | 8a69666084d248b8fd76b6c54f38aea12abce6e3 | 2026-01-04T15:31:59.388295Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/build.rs | alacritty/build.rs | use std::env;
use std::fs::File;
use std::path::Path;
use std::process::Command;
use gl_generator::{Api, Fallbacks, GlobalGenerator, Profile, Registry};
fn main() {
let mut version = String::from(env!("CARGO_PKG_VERSION"));
if let Some(commit_hash) = commit_hash() {
version = format!("{version} ({comm... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/window_context.rs | alacritty/src/window_context.rs | //! Terminal window context.
use std::error::Error;
use std::fs::File;
use std::io::Write;
use std::mem;
#[cfg(not(windows))]
use std::os::unix::io::{AsRawFd, RawFd};
use std::rc::Rc;
use std::sync::Arc;
use std::time::Instant;
use glutin::config::Config as GlutinConfig;
use glutin::display::GetGlDisplay;
#[cfg(all(f... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/event.rs | alacritty/src/event.rs | //! Process window events.
use crate::ConfigMonitor;
use glutin::config::GetGlConfig;
use std::borrow::Cow;
use std::cmp::min;
use std::collections::hash_map::Entry;
use std::collections::{HashMap, HashSet, VecDeque};
use std::error::Error;
use std::ffi::OsStr;
use std::fmt::Debug;
#[cfg(not(windows))]
use std::os::un... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | true |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/string.rs | alacritty/src/string.rs | use std::cmp::Ordering;
use std::iter::Skip;
use std::str::Chars;
use unicode_width::UnicodeWidthChar;
/// The action performed by [`StrShortener`].
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum TextAction {
/// Yield a spacer.
Spacer,
/// Terminate state reached.
Terminate,
/// Yield a sh... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/message_bar.rs | alacritty/src/message_bar.rs | use std::collections::VecDeque;
use unicode_width::UnicodeWidthChar;
use alacritty_terminal::grid::Dimensions;
use crate::display::SizeInfo;
pub const CLOSE_BUTTON_TEXT: &str = "[X]";
const CLOSE_BUTTON_PADDING: usize = 1;
const MIN_FREE_LINES: usize = 3;
const TRUNCATED_MESSAGE: &str = "[MESSAGE TRUNCATED]";
/// ... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/clipboard.rs | alacritty/src/clipboard.rs | use log::{debug, warn};
use winit::raw_window_handle::RawDisplayHandle;
use alacritty_terminal::term::ClipboardType;
#[cfg(any(feature = "x11", target_os = "macos", windows))]
use copypasta::ClipboardContext;
use copypasta::ClipboardProvider;
use copypasta::nop_clipboard::NopClipboardContext;
#[cfg(all(feature = "way... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/cli.rs | alacritty/src/cli.rs | use std::cmp::max;
use std::collections::HashMap;
use std::ops::{Deref, DerefMut};
use std::path::PathBuf;
use std::rc::Rc;
use alacritty_config::SerdeReplace;
use clap::{ArgAction, Args, Parser, Subcommand, ValueHint};
use log::{LevelFilter, error};
use serde::{Deserialize, Serialize};
use toml::Value;
use alacritty... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/panic.rs | alacritty/src/panic.rs | use std::io::Write;
use std::{io, panic, ptr};
use windows_sys::Win32::UI::WindowsAndMessaging::{
MB_ICONERROR, MB_OK, MB_SETFOREGROUND, MB_TASKMODAL, MessageBoxW,
};
use alacritty_terminal::tty::windows::win32_string;
// Install a panic handler that renders the panic in a classical Windows error
// dialog box a... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/main.rs | alacritty/src/main.rs | //! Alacritty - The GPU Enhanced Terminal.
#![warn(rust_2018_idioms, future_incompatible)]
#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use)]
#![cfg_attr(clippy, deny(warnings))]
// With the default subsystem, 'console', windows creates an additional console
// window for the program.
// This is silentl... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/logging.rs | alacritty/src/logging.rs | //! Logging for Alacritty.
//!
//! The main executable is supposed to call `initialize()` exactly once during
//! startup. All logging messages are written to stdout, given that their
//! log-level is sufficient for the level configured in `cli::Options`.
use std::fs::{File, OpenOptions};
use std::io::{self, LineWrite... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/daemon.rs | alacritty/src/daemon.rs | #[cfg(target_os = "openbsd")]
use std::ffi::CStr;
#[cfg(not(windows))]
use std::ffi::CString;
use std::ffi::OsStr;
#[cfg(not(any(target_os = "macos", target_os = "openbsd", windows)))]
use std::fs;
use std::io;
#[cfg(not(windows))]
use std::os::unix::ffi::OsStringExt;
#[cfg(windows)]
use std::os::windows::process::Comm... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/scheduler.rs | alacritty/src/scheduler.rs | //! Scheduler for emitting events at a specific time in the future.
use std::collections::VecDeque;
use std::time::{Duration, Instant};
use winit::event_loop::EventLoopProxy;
use winit::window::WindowId;
use crate::event::Event;
/// ID uniquely identifying a timer.
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub s... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/ipc.rs | alacritty/src/ipc.rs | //! Alacritty socket IPC.
use serde::{Deserialize, Serialize};
use std::ffi::OsStr;
use std::io::{BufRead, BufReader, Error as IoError, ErrorKind, Result as IoResult, Write};
use std::net::Shutdown;
use std::os::unix::net::{UnixListener, UnixStream};
use std::path::PathBuf;
use std::sync::Arc;
use std::{env, fs, proce... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/rects.rs | alacritty/src/renderer/rects.rs | use std::collections::HashMap;
use std::mem;
use ahash::RandomState;
use crossfont::Metrics;
use log::info;
use alacritty_terminal::grid::Dimensions;
use alacritty_terminal::index::{Column, Point};
use alacritty_terminal::term::cell::Flags;
use crate::display::SizeInfo;
use crate::display::color::Rgb;
use crate::dis... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/platform.rs | alacritty/src/renderer/platform.rs | //! The graphics platform that is used by the renderer.
use std::num::NonZeroU32;
use glutin::config::{ColorBufferType, Config, ConfigTemplateBuilder, GetGlConfig};
use glutin::context::{
ContextApi, ContextAttributesBuilder, GlProfile, NotCurrentContext, Robustness, Version,
};
use glutin::display::{Display, Dis... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/mod.rs | alacritty/src/renderer/mod.rs | use std::borrow::Cow;
use std::collections::HashSet;
use std::ffi::{CStr, CString};
use std::sync::OnceLock;
use std::sync::atomic::{AtomicBool, Ordering};
use std::{fmt, ptr};
use ahash::RandomState;
use crossfont::Metrics;
use glutin::context::{ContextApi, GlContext, PossiblyCurrentContext};
use glutin::display::{Ge... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/shader.rs | alacritty/src/renderer/shader.rs | use std::ffi::CStr;
use std::fmt;
use crate::gl;
use crate::gl::types::*;
/// A wrapper for a shader program id, with automatic lifetime management.
#[derive(Debug)]
pub struct ShaderProgram(GLuint);
#[derive(Copy, Clone, Debug)]
pub enum ShaderVersion {
/// OpenGL 3.3 core shaders.
Glsl3,
/// OpenGL ES... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/text/glyph_cache.rs | alacritty/src/renderer/text/glyph_cache.rs | use std::collections::HashMap;
use ahash::RandomState;
use crossfont::{
Error as RasterizerError, FontDesc, FontKey, GlyphKey, Metrics, Rasterize, RasterizedGlyph,
Rasterizer, Size, Slant, Style, Weight,
};
use log::{error, info};
use unicode_width::UnicodeWidthChar;
use crate::config::font::{Font, FontDescri... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/text/gles2.rs | alacritty/src/renderer/text/gles2.rs | use std::mem::size_of;
use std::ptr;
use crossfont::RasterizedGlyph;
use log::info;
use alacritty_terminal::term::cell::Flags;
use crate::display::SizeInfo;
use crate::display::content::RenderableCell;
use crate::gl;
use crate::gl::types::*;
use crate::renderer::shader::{ShaderProgram, ShaderVersion};
use crate::ren... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/text/atlas.rs | alacritty/src/renderer/text/atlas.rs | use std::borrow::Cow;
use std::ptr;
use crossfont::{BitmapBuffer, RasterizedGlyph};
use crate::gl;
use crate::gl::types::*;
use super::Glyph;
/// Size of the Atlas.
pub const ATLAS_SIZE: i32 = 1024;
/// Manages a single texture atlas.
///
/// The strategy for filling an atlas looks roughly like this:
///
/// ```te... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/text/mod.rs | alacritty/src/renderer/text/mod.rs | use bitflags::bitflags;
use crossfont::{GlyphKey, RasterizedGlyph};
use alacritty_terminal::term::cell::Flags;
use crate::display::SizeInfo;
use crate::display::content::RenderableCell;
use crate::gl;
use crate::gl::types::*;
mod atlas;
mod builtin_font;
mod gles2;
mod glsl3;
pub mod glyph_cache;
use atlas::Atlas;
... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/text/glsl3.rs | alacritty/src/renderer/text/glsl3.rs | use std::mem::size_of;
use std::ptr;
use crossfont::RasterizedGlyph;
use log::info;
use alacritty_terminal::term::cell::Flags;
use crate::display::SizeInfo;
use crate::display::content::RenderableCell;
use crate::gl;
use crate::gl::types::*;
use crate::renderer::Error;
use crate::renderer::shader::{ShaderProgram, Sh... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/renderer/text/builtin_font.rs | alacritty/src/renderer/text/builtin_font.rs | //! Hand-rolled drawing of unicode characters that need to fully cover their character area.
use std::{cmp, mem, ops};
use crossfont::{BitmapBuffer, Metrics, RasterizedGlyph};
use crate::config::ui_config::Delta;
// Colors which are used for filling shade variants.
const COLOR_FILL_ALPHA_STEP_1: Pixel = Pixel { _r:... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | true |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/meter.rs | alacritty/src/display/meter.rs | //! Rendering time meter.
//!
//! Used to track rendering times and provide moving averages.
//!
//! # Examples
//!
//! ```rust
//! // create a meter
//! let mut meter = alacritty_terminal::meter::Meter::new();
//!
//! // Sample something.
//! {
//! let _sampler = meter.sampler();
//! }
//!
//! // Get the moving av... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/cursor.rs | alacritty/src/display/cursor.rs | //! Convert a cursor into an iterator of rects.
use alacritty_terminal::vte::ansi::CursorShape;
use crate::display::SizeInfo;
use crate::display::color::Rgb;
use crate::display::content::RenderableCursor;
use crate::renderer::rects::RenderRect;
/// Trait for conversion into the iterator.
pub trait IntoRects {
//... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/bell.rs | alacritty/src/display/bell.rs | use std::time::{Duration, Instant};
use crate::config::bell::{BellAnimation, BellConfig};
pub struct VisualBell {
/// Visual bell animation.
animation: BellAnimation,
/// Visual bell duration.
duration: Duration,
/// The last time the visual bell rang, if at all.
start_time: Option<Instant>,... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/content.rs | alacritty/src/display/content.rs | use std::borrow::Cow;
use std::num::NonZeroU32;
use std::ops::Deref;
use std::{cmp, mem};
use alacritty_terminal::event::EventListener;
use alacritty_terminal::grid::{Dimensions, Indexed};
use alacritty_terminal::index::{Column, Line, Point};
use alacritty_terminal::selection::SelectionRange;
use alacritty_terminal::t... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/damage.rs | alacritty/src/display/damage.rs | use std::iter::Peekable;
use std::{cmp, mem};
use glutin::surface::Rect;
use alacritty_terminal::index::Point;
use alacritty_terminal::selection::SelectionRange;
use alacritty_terminal::term::{LineDamageBounds, TermDamageIterator};
use crate::display::SizeInfo;
/// State of the damage tracking for the [`Display`].
... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/mod.rs | alacritty/src/display/mod.rs | //! The display subsystem including window management, font rasterization, and
//! GPU drawing.
use std::cmp;
use std::fmt::{self, Formatter};
use std::mem::{self, ManuallyDrop};
use std::num::NonZeroU32;
use std::ops::Deref;
use std::time::{Duration, Instant};
use glutin::config::GetGlConfig;
use glutin::context::{N... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | true |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/window.rs | alacritty/src/display/window.rs | #[cfg(not(any(target_os = "macos", windows)))]
use winit::platform::startup_notify::{
self, EventLoopExtStartupNotify, WindowAttributesExtStartupNotify,
};
#[cfg(not(any(target_os = "macos", windows)))]
use winit::window::ActivationToken;
#[cfg(all(not(feature = "x11"), not(any(target_os = "macos", windows))))]
us... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
alacritty/alacritty | https://github.com/alacritty/alacritty/blob/6ee6e53ee3457c24137f117237b0ff1d84f6f836/alacritty/src/display/hint.rs | alacritty/src/display/hint.rs | use std::borrow::Cow;
use std::cmp::Reverse;
use std::collections::HashSet;
use std::iter;
use std::rc::Rc;
use ahash::RandomState;
use winit::keyboard::ModifiersState;
use alacritty_terminal::grid::{BidirectionalIterator, Dimensions};
use alacritty_terminal::index::{Boundary, Column, Direction, Line, Point};
use ala... | rust | Apache-2.0 | 6ee6e53ee3457c24137f117237b0ff1d84f6f836 | 2026-01-04T15:31:58.707223Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.