2019-10-04 15:30:46 +02:00
|
|
|
|
[package]
|
|
|
|
|
name = "starship"
|
2024-07-27 11:07:23 +02:00
|
|
|
|
version = "1.20.1"
|
2021-11-09 22:30:28 +01:00
|
|
|
|
authors = ["Starship Contributors"]
|
2022-01-20 09:32:09 +01:00
|
|
|
|
build = "build.rs"
|
|
|
|
|
categories = ["command-line-utilities"]
|
2019-10-04 15:30:46 +02:00
|
|
|
|
documentation = "https://starship.rs/guide/"
|
2022-01-20 09:32:09 +01:00
|
|
|
|
edition = "2021"
|
|
|
|
|
homepage = "https://starship.rs"
|
|
|
|
|
# Keep `/` in front of `README.md` to exclude localized readmes
|
2022-03-09 09:05:02 +01:00
|
|
|
|
include = [
|
|
|
|
|
"src/**/*",
|
|
|
|
|
"/starship.exe.manifest",
|
2022-06-19 10:33:42 +02:00
|
|
|
|
"media/icon.ico",
|
2022-03-09 09:05:02 +01: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 09:05:02 +01:00
|
|
|
|
]
|
2019-10-04 15:30:46 +02:00
|
|
|
|
keywords = ["prompt", "shell", "bash", "fish", "zsh"]
|
2022-01-20 09:32:09 +01:00
|
|
|
|
license = "ISC"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
repository = "https://github.com/starship/starship"
|
2022-03-12 22:23:24 +01:00
|
|
|
|
# Note: MSRV is only intended as a hint, and only the latest version is officially supported in starship.
|
2024-07-25 22:17:06 +02:00
|
|
|
|
rust-version = "1.74"
|
2019-10-04 15:30:46 +02:00
|
|
|
|
description = """
|
2020-02-13 03:46:00 +01:00
|
|
|
|
The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
|
2019-10-04 15:30:46 +02:00
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
[features]
|
2023-02-21 05:03:17 +01:00
|
|
|
|
default = ["battery", "notify", "gix-max-perf"]
|
2021-11-09 12:35:45 +01:00
|
|
|
|
battery = ["starship-battery"]
|
2022-04-01 17:14:05 +02:00
|
|
|
|
config-schema = ["schemars"]
|
2022-04-12 12:07:36 +02:00
|
|
|
|
notify = ["notify-rust"]
|
2020-03-15 02:07:34 +01:00
|
|
|
|
|
2023-03-22 19:42:46 +01:00
|
|
|
|
# Enables most of the `max-performance` features of the `gix` module for better performance.
|
2022-10-15 03:39:31 +02:00
|
|
|
|
# This can be more difficult to build in some conditions and requires cmake.
|
2023-02-21 05:03:17 +01:00
|
|
|
|
gix-max-perf = ["gix-features/zlib-ng", "gix/fast-sha1"]
|
2022-10-15 03:39:31 +02: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 05:03:17 +01:00
|
|
|
|
gix-faster = ["gix-features/zlib-stock", "gix/fast-sha1"]
|
2022-10-15 03:39:31 +02:00
|
|
|
|
|
2019-10-04 15:30:46 +02:00
|
|
|
|
[dependencies]
|
2024-04-15 15:09:55 +02:00
|
|
|
|
chrono = { version = "0.4.38", default-features = false, features = ["clock", "std", "wasmbind"] }
|
2024-09-05 00:36:30 +02:00
|
|
|
|
clap = { version = "4.5.17", features = ["derive", "cargo", "unicode"] }
|
2024-09-05 19:19:38 +02:00
|
|
|
|
clap_complete = "4.5.26"
|
2024-03-29 12:14:57 +01:00
|
|
|
|
dirs = "5.0.1"
|
2024-08-04 07:11:05 +02:00
|
|
|
|
dunce = "1.0.5"
|
2024-07-06 10:38:25 +02:00
|
|
|
|
gethostname = "0.5.0"
|
2022-10-15 03:39:31 +02:00
|
|
|
|
# default feature restriction addresses https://github.com/starship/starship/issues/4251
|
2024-08-23 00:14:11 +02:00
|
|
|
|
gix = { version = "0.66.0", default-features = false, features = ["max-performance-safe", "revision"] }
|
2024-05-22 18:02:53 +02:00
|
|
|
|
gix-features = { version = "0.38.2", optional = true }
|
2024-08-31 00:08:45 +02:00
|
|
|
|
indexmap = { version = "2.5.0", features = ["serde"] }
|
2024-06-28 03:51:12 +02:00
|
|
|
|
log = { version = "0.4.22", features = ["std"] }
|
2023-03-22 19:42:46 +01:00
|
|
|
|
# notify-rust is optional (on by default) because the crate doesn't currently build for darwin with nix
|
2022-04-12 12:07:36 +02:00
|
|
|
|
# see: https://github.com/NixOS/nixpkgs/issues/160876
|
2024-09-11 03:12:51 +02:00
|
|
|
|
notify-rust = { version = "4.11.3", optional = true }
|
2024-07-24 04:06:06 +02:00
|
|
|
|
nu-ansi-term = "0.50.1"
|
2023-12-07 15:07:58 +01:00
|
|
|
|
once_cell = "1.19.0"
|
2024-07-10 08:16:29 +02:00
|
|
|
|
open = "5.3.0"
|
2022-11-06 22:37:58 +01:00
|
|
|
|
# update os module config and tests when upgrading os_info
|
2024-03-24 08:03:10 +01:00
|
|
|
|
os_info = "3.8.2"
|
2022-08-08 09:05:37 +02:00
|
|
|
|
path-slash = "0.2.1"
|
2024-09-06 18:55:07 +02:00
|
|
|
|
pest = "2.7.12"
|
|
|
|
|
pest_derive = "2.7.12"
|
2024-07-25 22:17:06 +02:00
|
|
|
|
quick-xml = "0.36.1"
|
2022-02-15 08:45:02 +01:00
|
|
|
|
rand = "0.8.5"
|
2024-03-24 08:04:19 +01:00
|
|
|
|
rayon = "1.10.0"
|
2024-08-02 18:50:04 +02:00
|
|
|
|
regex = { version = "1.10.6", default-features = false, features = ["perf", "std", "unicode-perl"] }
|
2024-08-03 21:15:44 +02:00
|
|
|
|
rust-ini = "0.21.1"
|
2024-05-07 06:00:56 +02:00
|
|
|
|
semver = "1.0.23"
|
2024-09-06 20:48:27 +02:00
|
|
|
|
serde = { version = "1.0.210", features = ["derive"] }
|
2024-09-05 00:36:36 +02:00
|
|
|
|
serde_json = "1.0.128"
|
2023-10-15 20:59:57 +02:00
|
|
|
|
sha1 = "0.10.6"
|
2024-09-06 14:19:05 +02:00
|
|
|
|
shadow-rs = { version = "0.34.0", default-features = false }
|
2022-01-20 09:32:09 +01: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
|
2024-09-06 14:19:12 +02:00
|
|
|
|
starship-battery = { version = "0.10.0", optional = true }
|
2024-04-03 03:58:21 +02:00
|
|
|
|
strsim = "0.11.1"
|
2023-01-23 09:48:48 +01:00
|
|
|
|
systemstat = "=0.2.3"
|
2023-10-15 15:24:30 +02:00
|
|
|
|
terminal_size = "0.3.0"
|
2024-07-31 23:35:39 +02:00
|
|
|
|
toml = { version = "0.8.19", features = ["preserve_order"] }
|
|
|
|
|
toml_edit = "0.22.20"
|
2024-02-07 08:24:28 +01:00
|
|
|
|
unicode-segmentation = "1.11.0"
|
2024-06-04 18:26:15 +02:00
|
|
|
|
unicode-width = "0.1.13"
|
2023-07-21 19:06:39 +02:00
|
|
|
|
urlencoding = "2.1.3"
|
2024-08-09 05:50:24 +02:00
|
|
|
|
versions = "6.3.2"
|
2024-08-18 02:18:48 +02:00
|
|
|
|
which = "6.0.3"
|
2024-05-31 19:27:26 +02:00
|
|
|
|
yaml-rust2 = "0.8.1"
|
2021-01-22 20:14:51 +01:00
|
|
|
|
|
2024-08-11 15:50:20 +02:00
|
|
|
|
process_control = { version = "4.2.2", features = ["crossbeam-channel"] }
|
2019-10-04 15:30:46 +02:00
|
|
|
|
|
2024-08-24 07:25:13 +02:00
|
|
|
|
guess_host_triple = "0.1.4"
|
2023-12-15 23:54:08 +01:00
|
|
|
|
home = "0.5.9"
|
2022-02-07 15:28:17 +01:00
|
|
|
|
shell-words = "1.1.0"
|
2020-03-15 02:07:34 +01:00
|
|
|
|
|
2022-04-01 17:14:05 +02:00
|
|
|
|
[dependencies.schemars]
|
2024-05-23 19:08:56 +02:00
|
|
|
|
version = "0.8.21"
|
2022-04-01 17:14:05 +02:00
|
|
|
|
optional = true
|
2023-09-06 11:10:50 +02:00
|
|
|
|
features = ["preserve_order", "indexmap2"]
|
2022-04-01 17:14:05 +02:00
|
|
|
|
|
2020-07-13 23:55:42 +02:00
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
2022-04-01 17:47:49 +02:00
|
|
|
|
deelevate = "0.2.0"
|
2020-07-13 23:55:42 +02:00
|
|
|
|
|
2022-04-21 20:59:00 +02:00
|
|
|
|
[target.'cfg(windows)'.dependencies.windows]
|
2024-07-25 22:17:06 +02:00
|
|
|
|
version = "0.58.0"
|
2022-04-21 20:59:00 +02:00
|
|
|
|
features = [
|
|
|
|
|
"Win32_Foundation",
|
|
|
|
|
"Win32_UI_Shell",
|
|
|
|
|
"Win32_Security",
|
|
|
|
|
"Win32_System_Threading",
|
|
|
|
|
"Win32_Storage_FileSystem",
|
|
|
|
|
]
|
|
|
|
|
|
2020-07-13 23:55:42 +02:00
|
|
|
|
[target.'cfg(not(windows))'.dependencies]
|
2024-07-25 22:17:06 +02:00
|
|
|
|
nix = { version = "0.29.0", default-features = false, features = ["feature", "fs", "user"] }
|
2020-07-13 23:55:42 +02:00
|
|
|
|
|
2021-01-22 20:14:51 +01:00
|
|
|
|
[build-dependencies]
|
2024-09-06 14:19:05 +02:00
|
|
|
|
shadow-rs = { version = "0.34.0", default-features = false }
|
2024-08-04 07:11:05 +02:00
|
|
|
|
dunce = "1.0.5"
|
2021-01-22 20:14:51 +01:00
|
|
|
|
|
2022-02-20 18:12:40 +01:00
|
|
|
|
[target.'cfg(windows)'.build-dependencies]
|
|
|
|
|
winres = "0.1.12"
|
|
|
|
|
|
2019-10-04 15:30:46 +02:00
|
|
|
|
[dev-dependencies]
|
2024-07-24 21:22:55 +02:00
|
|
|
|
mockall = "0.13.0"
|
2024-08-06 23:51:27 +02:00
|
|
|
|
tempfile = "3.12.0"
|
2019-10-04 15:30:46 +02: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
|
|
|
|
|
2019-10-04 15:30:46 +02:00
|
|
|
|
[[bin]]
|
|
|
|
|
name = "starship"
|
|
|
|
|
path = "src/main.rs"
|