2019-10-04 22:30:46 +09:00
|
|
|
[package]
|
|
|
|
|
name = "starship"
|
2026-04-30 21:33:07 +02:00
|
|
|
version = "1.25.1"
|
2021-11-09 22:30:28 +01:00
|
|
|
authors = ["Starship Contributors"]
|
2022-01-20 02:32:09 -06:00
|
|
|
build = "build.rs"
|
|
|
|
|
categories = ["command-line-utilities"]
|
2019-10-04 22:30:46 +09:00
|
|
|
documentation = "https://starship.rs/guide/"
|
2025-03-09 19:24:45 +01:00
|
|
|
edition = "2024"
|
2022-01-20 02:32:09 -06:00
|
|
|
homepage = "https://starship.rs"
|
|
|
|
|
# Keep `/` in front of `README.md` to exclude localized readmes
|
2022-03-09 10:05:02 +02:00
|
|
|
include = [
|
|
|
|
|
"src/**/*",
|
|
|
|
|
"/starship.exe.manifest",
|
2022-06-19 03:33:42 -05:00
|
|
|
"media/icon.ico",
|
2022-03-09 10:05:02 +02:00
|
|
|
"build.rs",
|
|
|
|
|
"LICENSE",
|
|
|
|
|
"/README.md",
|
2024-03-24 08:03:55 +01:00
|
|
|
"docs/public/presets/toml/",
|
2022-04-18 17:42:47 +02:00
|
|
|
".github/config-schema.json",
|
2022-03-09 10:05:02 +02:00
|
|
|
]
|
2019-10-04 22:30:46 +09:00
|
|
|
keywords = ["prompt", "shell", "bash", "fish", "zsh"]
|
2022-01-20 02:32:09 -06:00
|
|
|
license = "ISC"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
repository = "https://github.com/starship/starship"
|
2022-03-13 06:23:24 +09:00
|
|
|
# Note: MSRV is only intended as a hint, and only the latest version is officially supported in starship.
|
2025-12-26 14:39:50 +01:00
|
|
|
rust-version = "1.90"
|
2019-10-04 22:30:46 +09:00
|
|
|
description = """
|
2020-02-12 21:46:00 -05:00
|
|
|
The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
|
2019-10-04 22:30:46 +09:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
[features]
|
2025-04-12 11:44:44 +02:00
|
|
|
default = ["battery", "notify"]
|
2021-11-09 11:35:45 +00:00
|
|
|
battery = ["starship-battery"]
|
2022-04-01 17:14:05 +02:00
|
|
|
config-schema = ["schemars"]
|
2022-04-12 06:07:36 -04:00
|
|
|
notify = ["notify-rust"]
|
2020-03-15 02:07:34 +01:00
|
|
|
|
2019-10-04 22:30:46 +09:00
|
|
|
[dependencies]
|
2026-02-23 14:07:20 +00:00
|
|
|
chrono = { version = "0.4.44", default-features = false, features = ["clock", "std", "wasmbind"] }
|
2026-04-16 09:28:03 +00:00
|
|
|
clap = { version = "4.6.1", features = ["derive", "cargo", "unicode"] }
|
2026-05-15 21:54:42 +00:00
|
|
|
clap_complete = "4.6.5"
|
2026-03-13 22:59:55 +00:00
|
|
|
clap_complete_nushell = "4.6.0"
|
2025-01-13 10:15:38 +01:00
|
|
|
dirs = "6.0.0"
|
2024-08-04 05:11:05 +00:00
|
|
|
dunce = "1.0.5"
|
2022-10-15 03:39:31 +02:00
|
|
|
# default feature restriction addresses https://github.com/starship/starship/issues/4251
|
2026-04-28 00:53:22 +00:00
|
|
|
gix = { version = "0.83.0", default-features = false, features = ["max-performance-safe", "revision", "zlib-rs", "status", "sha1"] }
|
2026-04-09 19:10:13 +00:00
|
|
|
indexmap = { version = "2.14.0", features = ["serde"] }
|
2026-05-15 16:55:22 +00:00
|
|
|
jsonc-parser = { version = "0.32.4", features = ["serde"] }
|
2025-12-03 03:58:46 +00:00
|
|
|
log = { version = "0.4.29", features = ["std"] }
|
2023-03-23 02:42:46 +08:00
|
|
|
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
|
2022-04-12 06:07:36 -04:00
|
|
|
# see: https://github.com/NixOS/nixpkgs/issues/160876
|
2026-05-09 01:34:05 +00:00
|
|
|
notify-rust = { version = "4.17.0", optional = true }
|
2025-10-20 21:10:50 +00:00
|
|
|
nu-ansi-term = "0.50.3"
|
2026-05-16 00:42:39 +00:00
|
|
|
open = "5.3.5"
|
2022-11-06 14:37:58 -07:00
|
|
|
# update os module config and tests when upgrading os_info
|
2026-05-23 21:01:22 +00:00
|
|
|
os_info = { version = "3.15.0", features = ["schemars"] }
|
2025-04-26 15:43:41 +02:00
|
|
|
# for efficient shared state between `git_status` and `git_metrics`, allowing parallel printing. This is for poison-free locks.
|
2025-10-20 21:11:06 +00:00
|
|
|
parking_lot = "0.12.5"
|
2022-08-08 03:05:37 -04:00
|
|
|
path-slash = "0.2.1"
|
2026-02-05 13:13:47 +00:00
|
|
|
pest = "2.8.6"
|
|
|
|
|
pest_derive = "2.8.6"
|
2025-09-07 19:14:49 +00:00
|
|
|
process_control = "5.2.0"
|
2026-05-19 18:27:05 +00:00
|
|
|
quick-xml = "0.40.1"
|
2026-04-11 11:19:24 +00:00
|
|
|
rand = "0.10.1"
|
2026-04-14 04:25:23 +00:00
|
|
|
rayon = "1.12.0"
|
2026-02-03 14:07:38 +00:00
|
|
|
regex = { version = "1.12.3", default-features = false, features = ["perf", "std", "unicode-perl"] }
|
2025-08-31 12:34:44 +00:00
|
|
|
rust-ini = "0.21.3"
|
2026-04-04 01:53:08 +00:00
|
|
|
semver = "1.0.28"
|
2025-10-20 17:29:29 +00:00
|
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
2026-01-06 18:00:36 +00:00
|
|
|
serde_json = "1.0.149"
|
2026-04-04 20:55:12 +00:00
|
|
|
sha1 = "0.11.0"
|
2026-04-26 12:38:50 +02:00
|
|
|
shadow-rs = { version = "2.0.0", default-features = false, features = ["build"] }
|
2022-01-20 02:32:09 -06:00
|
|
|
# battery is optional (on by default) because the crate doesn't currently build for Termux
|
|
|
|
|
# see: https://github.com/svartalf/rust-battery/issues/33
|
2026-04-03 21:27:35 +00:00
|
|
|
starship-battery = { version = "0.11.0", optional = true }
|
2024-04-03 01:58:21 +00:00
|
|
|
strsim = "0.11.1"
|
2026-02-17 21:43:26 +00:00
|
|
|
systemstat = "=0.2.6"
|
2026-03-25 19:18:44 +00:00
|
|
|
terminal_size = "0.4.4"
|
2026-04-03 19:36:21 +02:00
|
|
|
toml = { version = "1.1.2", features = ["preserve_order"] }
|
2026-04-08 00:58:03 +00:00
|
|
|
toml_edit = "0.25.11"
|
2026-04-03 21:27:16 +00:00
|
|
|
unicode-segmentation = "1.13.2"
|
2025-10-21 05:08:57 +00:00
|
|
|
unicode-width = "0.2.2"
|
2023-07-21 17:06:39 +00:00
|
|
|
urlencoding = "2.1.3"
|
2025-03-06 15:52:53 +09:00
|
|
|
versions = "7.0.0"
|
2026-03-08 21:08:15 +00:00
|
|
|
which = "8.0.2"
|
2026-04-27 10:05:50 +00:00
|
|
|
whoami = { version = "2.1.2", default-features = false, features = ["std", "wasi-wasite"] }
|
2025-12-16 10:30:11 +00:00
|
|
|
yaml-rust2 = "0.11.0"
|
2021-01-23 03:14:51 +08:00
|
|
|
|
2025-06-30 14:03:23 +00:00
|
|
|
guess_host_triple = "0.1.5"
|
2025-10-24 05:37:44 +00:00
|
|
|
home = "0.5.12"
|
2025-12-11 02:42:15 +00:00
|
|
|
shell-words = "1.1.1"
|
2020-03-15 02:07:34 +01:00
|
|
|
|
2022-04-01 17:14:05 +02:00
|
|
|
[dependencies.schemars]
|
2026-02-01 20:35:45 +00:00
|
|
|
version = "1.2.1"
|
2022-04-01 17:14:05 +02:00
|
|
|
optional = true
|
2023-09-06 18:10:50 +09:00
|
|
|
features = ["preserve_order", "indexmap2"]
|
2022-04-01 17:14:05 +02:00
|
|
|
|
2020-07-14 00:55:42 +03:00
|
|
|
[target.'cfg(windows)'.dependencies]
|
2022-04-01 21:17:49 +05:30
|
|
|
deelevate = "0.2.0"
|
2020-07-14 00:55:42 +03:00
|
|
|
|
2022-04-21 20:59:00 +02:00
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
2025-10-20 17:41:13 +00:00
|
|
|
version = "0.62.2"
|
2022-04-21 20:59:00 +02:00
|
|
|
features = [
|
|
|
|
|
"Win32_Foundation",
|
|
|
|
|
"Win32_UI_Shell",
|
|
|
|
|
"Win32_Security",
|
|
|
|
|
"Win32_System_Threading",
|
|
|
|
|
"Win32_Storage_FileSystem",
|
|
|
|
|
]
|
|
|
|
|
|
2020-07-14 00:55:42 +03:00
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
2026-05-15 09:45:02 +00:00
|
|
|
nix = { version = "0.31.3", default-features = false, features = ["feature", "fs", "user"] }
|
2020-07-14 00:55:42 +03:00
|
|
|
|
2021-01-23 03:14:51 +08:00
|
|
|
[build-dependencies]
|
2026-04-26 12:38:50 +02:00
|
|
|
shadow-rs = { version = "2.0.0", default-features = false, features = ["build"] }
|
2024-08-04 05:11:05 +00:00
|
|
|
dunce = "1.0.5"
|
2021-01-23 03:14:51 +08:00
|
|
|
|
2022-02-20 19:12:40 +02:00
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
|
|
|
winres = "0.1.12"
|
|
|
|
|
|
2019-10-04 22:30:46 +09:00
|
|
|
[dev-dependencies]
|
2026-05-15 19:37:22 +02:00
|
|
|
mockall = "=0.14.0"
|
|
|
|
|
tempfile = "=3.27.0"
|
2019-10-04 22:30:46 +09:00
|
|
|
|
2019-10-13 06:33:47 +02:00
|
|
|
[profile.release]
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
lto = true
|
2022-08-14 21:31:08 +02:00
|
|
|
strip = true
|
2019-10-13 06:33:47 +02:00
|
|
|
|
2025-04-26 15:43:41 +02:00
|
|
|
[profile.bench]
|
|
|
|
|
codegen-units = 16
|
|
|
|
|
lto = "thin"
|
|
|
|
|
strip = false
|
|
|
|
|
|
2025-06-22 14:38:27 +01:00
|
|
|
[lints.clippy]
|
|
|
|
|
use_self = "warn"
|