1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-06-06 02:20:48 +00:00
starship/src/modules
Kevin Song 393d62c726
feat(rust): Display toolchain names (#3414)
This is an actualization of PR #559 as originally envisioned by qryxip.

Adds the ability to display toolchain versions, either as extracted from
environment/settings files or by getting the host triple. As part of
this, several other major changes were needed:
- Many of the smaller functions within the code have been fused, moved,
  or dropped.
- The Rustup environmental info is now initialized lazily using
  OnceCells. This will hopefully lead to a performance increase.
- New configuration variables (`toolchain` and `numver`) have been added
  to allow finer-grained configuration.
- Override information is no longer read from `rustup` output. Instead,
  it is parsed from the same files that rustup would use to determine
  this info.

Co-authored-by: qryxip <qryxip@gmail.com>

Co-authored-by: qryxip <qryxip@gmail.com>
2022-05-04 15:40:44 -05:00
..
utils refactor(windows): replace winapi with windows (#3690) 2022-04-21 20:59:00 +02:00
aws.rs chore(aws): adds space to the duration variable (#3872) 2022-04-21 20:58:06 +02:00
azure.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
battery.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
buf.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
c.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
character.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
cmake.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
cmd_duration.rs feat(cmd_duration): make notify feature optional (compat with nix darwin) (#3855) 2022-04-12 12:07:36 +02:00
cobol.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
conda.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
container.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
crystal.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
custom.rs test(custom): increase timeout in timeout test (#3960) 2022-05-02 21:01:43 -05:00
dart.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
deno.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
directory.rs fix(directory): enable repo_root_style when truncation_length is zero. (#3536) 2022-04-04 21:13:29 +02:00
docker_context.rs fix(docker_context): ignore the "default" context (#3803) (#3804) 2022-04-07 07:54:50 +02:00
dotnet.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
elixir.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
elm.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
env_var.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
erlang.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
fill.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
gcloud.rs refactor(gcloud): improve parsing of config files (#3844) 2022-04-08 06:56:02 +02:00
git_branch.rs fix(git_branch): correct variable name for remote branch (#3897) 2022-04-26 20:02:01 +02:00
git_commit.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
git_metrics.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
git_state.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
git_status.rs build: bump nix from 0.23.1 to 0.24.1 (#3925) 2022-04-26 09:14:51 -04:00
golang.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
haskell.rs perf(package): only try to read files that exist (#3904) 2022-04-25 16:18:01 +02:00
helm.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
hg_branch.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
hostname.rs feat(hostname): add ssh_symbol for ssh connections (#3806) 2022-05-04 15:30:16 +02:00
java.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
jobs.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
julia.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
kotlin.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
kubernetes.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
line_break.rs feat: Add a fill module to pad out the line (#3029) 2021-09-12 19:59:15 -04:00
localip.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
lua.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
memory_usage.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
mod.rs refactor(custom): various improvements (#3829) 2022-04-09 11:32:45 -04:00
nim.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
nix_shell.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
nodejs.rs perf(package): only try to read files that exist (#3904) 2022-04-25 16:18:01 +02:00
ocaml.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
openstack.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
package.rs feat(package): Extract package version from PEP 621 compliant pyproject.toml (#3950) 2022-05-02 18:44:01 +02:00
perl.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
php.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
pulumi.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
purescript.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
python.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
red.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
rlang.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
ruby.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
rust.rs feat(rust): Display toolchain names (#3414) 2022-05-04 15:40:44 -05:00
scala.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
shell.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
shlvl.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
singularity.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
spack.rs feat(spack): Add Spack module (#3639) 2022-04-03 15:33:14 +02:00
status.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
sudo.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
swift.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
terraform.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
time.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
username.rs feat(username): Detect Admin access in Windows (#2791) 2022-04-01 17:47:49 +02:00
vagrant.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
vcsh.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
vlang.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00
zig.rs refactor: replace module_config_derive with serde (#3786) 2022-03-26 10:42:19 +01:00