2019-10-04 13:30:46 +00:00
|
|
|
|
[package]
|
|
|
|
|
name = "starship"
|
2024-03-29 15:41:58 +00:00
|
|
|
|
version = "1.18.2"
|
2021-11-09 21:30:28 +00:00
|
|
|
|
authors = ["Starship Contributors"]
|
2022-01-20 08:32:09 +00:00
|
|
|
|
build = "build.rs"
|
|
|
|
|
categories = ["command-line-utilities"]
|
2019-10-04 13:30:46 +00:00
|
|
|
|
documentation = "https://starship.rs/guide/"
|
2022-01-20 08:32:09 +00:00
|
|
|
|
edition = "2021"
|
|
|
|
|
homepage = "https://starship.rs"
|
|
|
|
|
# Keep `/` in front of `README.md` to exclude localized readmes
|
2022-03-09 08:05:02 +00:00
|
|
|
|
include = [
|
|
|
|
|
"src/**/*",
|
|
|
|
|
"/starship.exe.manifest",
|
2022-06-19 08:33:42 +00:00
|
|
|
|
"media/icon.ico",
|
2022-03-09 08:05:02 +00:00
|
|
|
|
"build.rs",
|
|
|
|
|
"LICENSE",
|
|
|
|
|
"/README.md",
|
2024-03-24 07:03:55 +00:00
|
|
|
|
"docs/public/presets/toml/",
|
2022-04-18 15:42:47 +00:00
|
|
|
|
".github/config-schema.json",
|
2022-03-09 08:05:02 +00:00
|
|
|
|
]
|
2019-10-04 13:30:46 +00:00
|
|
|
|
keywords = ["prompt", "shell", "bash", "fish", "zsh"]
|
2022-01-20 08:32:09 +00:00
|
|
|
|
license = "ISC"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
repository = "https://github.com/starship/starship"
|
2022-03-12 21:23:24 +00:00
|
|
|
|
# Note: MSRV is only intended as a hint, and only the latest version is officially supported in starship.
|
2024-03-03 16:57:39 +00:00
|
|
|
|
rust-version = "1.71"
|
2019-10-04 13:30:46 +00:00
|
|
|
|
description = """
|
2020-02-13 02:46:00 +00:00
|
|
|
|
The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
|
2019-10-04 13:30:46 +00:00
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
[features]
|
2023-02-21 04:03:17 +00:00
|
|
|
|
default = ["battery", "notify", "gix-max-perf"]
|
2021-11-09 11:35:45 +00:00
|
|
|
|
battery = ["starship-battery"]
|
2022-04-01 15:14:05 +00:00
|
|
|
|
config-schema = ["schemars"]
|
2022-04-12 10:07:36 +00:00
|
|
|
|
notify = ["notify-rust"]
|
2020-03-15 01:07:34 +00:00
|
|
|
|
|
2023-03-22 18:42:46 +00:00
|
|
|
|
# Enables most of the `max-performance` features of the `gix` module for better performance.
|
2022-10-15 01:39:31 +00:00
|
|
|
|
# This can be more difficult to build in some conditions and requires cmake.
|
2023-02-21 04:03:17 +00:00
|
|
|
|
gix-max-perf = ["gix-features/zlib-ng", "gix/fast-sha1"]
|
2022-10-15 01:39:31 +00:00
|
|
|
|
# Slower than `git-repository-max-perf`, but better than the default.
|
|
|
|
|
# Unlike `git-repository-max-perf` this does not require cmake and allows dynamic zlib linking.
|
2023-02-21 04:03:17 +00:00
|
|
|
|
gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
|
2022-10-15 01:39:31 +00:00
|
|
|
|
|
2019-10-04 13:30:46 +00:00
|
|
|
|
[dependencies]
|
2024-03-27 14:35:21 +00:00
|
|
|
|
chrono = { version = "0.4.37", default-features = false, features = ["clock", "std", "wasmbind"] }
|
2024-03-26 01:42:08 +00:00
|
|
|
|
clap = { version = "4.5.4", features = ["derive", "cargo", "unicode"] }
|
2024-02-17 01:56:59 +00:00
|
|
|
|
clap_complete = "4.5.1"
|
2024-03-29 11:14:57 +00:00
|
|
|
|
dirs = "5.0.1"
|
2023-04-19 23:45:12 +00:00
|
|
|
|
dunce = "1.0.4"
|
2024-01-02 14:45:06 +00:00
|
|
|
|
gethostname = "0.4.3"
|
2022-10-15 01:39:31 +00:00
|
|
|
|
# default feature restriction addresses https://github.com/starship/starship/issues/4251
|
2024-03-25 01:59:43 +00:00
|
|
|
|
gix = { version = "0.61.0", default-features = false, features = ["max-performance-safe", "revision"] }
|
2024-03-14 22:25:25 +00:00
|
|
|
|
gix-features = { version = "0.38.1", optional = true }
|
2024-03-23 01:54:33 +00:00
|
|
|
|
indexmap = { version = "2.2.6", features = ["serde"] }
|
2024-02-29 01:11:04 +00:00
|
|
|
|
log = { version = "0.4.21", features = ["std"] }
|
2023-03-22 18:42:46 +00:00
|
|
|
|
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
|
2022-04-12 10:07:36 +00:00
|
|
|
|
# see: https://github.com/NixOS/nixpkgs/issues/160876
|
2023-11-16 18:55:31 +00:00
|
|
|
|
notify-rust = { version = "4.10.0", optional = true }
|
2024-01-23 00:02:00 +00:00
|
|
|
|
nu-ansi-term = "0.50.0"
|
2023-12-07 14:07:58 +00:00
|
|
|
|
once_cell = "1.19.0"
|
2024-03-07 18:10:38 +00:00
|
|
|
|
open = "5.1.2"
|
2022-11-06 21:37:58 +00:00
|
|
|
|
# update os module config and tests when upgrading os_info
|
2024-03-24 07:03:10 +00:00
|
|
|
|
os_info = "3.8.2"
|
2022-08-08 07:05:37 +00:00
|
|
|
|
path-slash = "0.2.1"
|
2024-04-02 04:55:31 +00:00
|
|
|
|
pest = "2.7.9"
|
|
|
|
|
pest_derive = "2.7.9"
|
2023-10-24 10:55:22 +00:00
|
|
|
|
quick-xml = "0.31.0"
|
2022-02-15 07:45:02 +00:00
|
|
|
|
rand = "0.8.5"
|
2024-03-24 07:04:19 +00:00
|
|
|
|
rayon = "1.10.0"
|
2024-03-23 01:54:40 +00:00
|
|
|
|
regex = { version = "1.10.4", default-features = false, features = ["perf", "std", "unicode-perl"] }
|
2024-03-13 15:29:38 +00:00
|
|
|
|
rust-ini = "0.21.0"
|
2024-02-19 08:02:10 +00:00
|
|
|
|
semver = "1.0.22"
|
2024-02-20 01:18:24 +00:00
|
|
|
|
serde = { version = "1.0.197", features = ["derive"] }
|
2024-03-26 07:21:08 +00:00
|
|
|
|
serde_json = "1.0.115"
|
2023-10-15 18:59:57 +00:00
|
|
|
|
sha1 = "0.10.6"
|
2024-03-12 03:41:40 +00:00
|
|
|
|
shadow-rs = { version = "0.27.1", default-features = false }
|
2022-01-20 08:32:09 +00: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
|
2023-08-05 09:29:38 +00:00
|
|
|
|
starship-battery = { version = "0.8.2", optional = true }
|
2024-04-03 01:58:21 +00:00
|
|
|
|
strsim = "0.11.1"
|
2023-01-23 08:48:48 +00:00
|
|
|
|
systemstat = "=0.2.3"
|
2023-10-15 13:24:30 +00:00
|
|
|
|
terminal_size = "0.3.0"
|
2024-03-20 09:56:20 +00:00
|
|
|
|
toml = { version = "0.8.12", features = ["preserve_order"] }
|
2024-03-20 19:45:39 +00:00
|
|
|
|
toml_edit = "0.22.9"
|
2024-02-07 07:24:28 +00:00
|
|
|
|
unicode-segmentation = "1.11.0"
|
2023-10-15 14:22:58 +00:00
|
|
|
|
unicode-width = "0.1.11"
|
2023-07-21 17:06:39 +00:00
|
|
|
|
urlencoding = "2.1.3"
|
2024-03-18 01:13:07 +00:00
|
|
|
|
versions = "6.2.0"
|
2024-03-23 07:19:10 +00:00
|
|
|
|
which = "6.0.1"
|
2024-03-29 11:19:49 +00:00
|
|
|
|
yaml-rust2 = "0.8.0"
|
2021-01-22 19:14:51 +00:00
|
|
|
|
|
2024-02-17 22:31:31 +00:00
|
|
|
|
process_control = { version = "4.1.0", features = ["crossbeam-channel"] }
|
2019-10-04 13:30:46 +00:00
|
|
|
|
|
2022-05-04 20:40:44 +00:00
|
|
|
|
guess_host_triple = "0.1.3"
|
2023-12-15 22:54:08 +00:00
|
|
|
|
home = "0.5.9"
|
2022-02-07 14:28:17 +00:00
|
|
|
|
shell-words = "1.1.0"
|
2020-03-15 01:07:34 +00:00
|
|
|
|
|
2022-04-01 15:14:05 +00:00
|
|
|
|
[dependencies.schemars]
|
2023-11-11 22:37:21 +00:00
|
|
|
|
version = "0.8.16"
|
2022-04-01 15:14:05 +00:00
|
|
|
|
optional = true
|
2023-09-06 09:10:50 +00:00
|
|
|
|
features = ["preserve_order", "indexmap2"]
|
2022-04-01 15:14:05 +00:00
|
|
|
|
|
2020-07-13 21:55:42 +00:00
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
2022-04-01 15:47:49 +00:00
|
|
|
|
deelevate = "0.2.0"
|
2020-07-13 21:55:42 +00:00
|
|
|
|
|
2022-04-21 18:59:00 +00:00
|
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
2024-02-27 22:26:48 +00:00
|
|
|
|
version = "0.54.0"
|
2022-04-21 18:59:00 +00:00
|
|
|
|
features = [
|
|
|
|
|
"Win32_Foundation",
|
|
|
|
|
"Win32_UI_Shell",
|
|
|
|
|
"Win32_Security",
|
|
|
|
|
"Win32_System_Threading",
|
|
|
|
|
"Win32_Storage_FileSystem",
|
|
|
|
|
]
|
|
|
|
|
|
2020-07-13 21:55:42 +00:00
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
2024-02-24 11:00:16 +00:00
|
|
|
|
nix = { version = "0.28.0", default-features = false, features = ["feature", "fs", "user"] }
|
2020-07-13 21:55:42 +00:00
|
|
|
|
|
2021-01-22 19:14:51 +00:00
|
|
|
|
[build-dependencies]
|
2024-03-12 03:41:40 +00:00
|
|
|
|
shadow-rs = { version = "0.27.1", default-features = false }
|
2023-04-19 23:45:12 +00:00
|
|
|
|
dunce = "1.0.4"
|
2021-01-22 19:14:51 +00:00
|
|
|
|
|
2022-02-20 17:12:40 +00:00
|
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
|
|
|
winres = "0.1.12"
|
|
|
|
|
|
2019-10-04 13:30:46 +00:00
|
|
|
|
[dev-dependencies]
|
2023-12-10 03:01:09 +00:00
|
|
|
|
mockall = "0.12"
|
2024-02-26 23:17:05 +00:00
|
|
|
|
tempfile = "3.10.1"
|
2019-10-04 13:30:46 +00:00
|
|
|
|
|
2019-10-13 04:33:47 +00:00
|
|
|
|
[profile.release]
|
|
|
|
|
codegen-units = 1
|
|
|
|
|
lto = true
|
2022-08-14 19:31:08 +00:00
|
|
|
|
strip = true
|
2019-10-13 04:33:47 +00:00
|
|
|
|
|
2019-10-04 13:30:46 +00:00
|
|
|
|
[[bin]]
|
|
|
|
|
name = "starship"
|
|
|
|
|
path = "src/main.rs"
|