Skip to content

Commit

Permalink
Add formatting of toml and .vuepress
Browse files Browse the repository at this point in the history
  • Loading branch information
chipbuster committed Jan 14, 2022
1 parent 4318382 commit b7e66a8
Show file tree
Hide file tree
Showing 6 changed files with 412 additions and 405 deletions.
24 changes: 12 additions & 12 deletions .cargo/audit.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[advisories]
ignore = [
# Out-of-bounds write in nix::unistd::getgrouplist
# Tracked in #3140
"RUSTSEC-2021-0119",
# Potential segfault in the time crate
# chrono dependency, but vulnerable function is never called
# Tacked in #3163
"RUSTSEC-2020-0071",
# chrono: Potential segfault in localtime_r invocations
# starship avoids setting any environment variables to avoid this issue
# Tracked in #3166
"RUSTSEC-2020-0159",
]
# Out-of-bounds write in nix::unistd::getgrouplist
# Tracked in #3140
"RUSTSEC-2021-0119",
# Potential segfault in the time crate
# chrono dependency, but vulnerable function is never called
# Tacked in #3163
"RUSTSEC-2020-0071",
# chrono: Potential segfault in localtime_r invocations
# starship avoids setting any environment variables to avoid this issue
# Tracked in #3166
"RUSTSEC-2020-0159",
]
5 changes: 4 additions & 1 deletion .dprint.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
},
"toml": {
},
"includes": ["docs/**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml}", "**/*.md"],
"includes": [
"docs/**/*.{ts,tsx,js,jsx,cjs,mjs,json,md,toml}",
"**/*.{md,toml}"
],
"excludes": [
"**/node_modules",
"**/*-lock.json",
Expand Down
84 changes: 39 additions & 45 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[package]
name = "starship"
version = "1.1.1"
edition = "2021"
authors = ["Starship Contributors"]
homepage = "https://starship.rs"
build = "build.rs"
categories = ["command-line-utilities"]
documentation = "https://starship.rs/guide/"
repository = "https://github.com/starship/starship"
readme = "README.md"
license = "ISC"
edition = "2021"
homepage = "https://starship.rs"
# Keep `/` in front of `README.md` to exclude localized readmes
include = ["src/**/*", "build.rs", "Cross.toml", "LICENSE", "README.md"]
keywords = ["prompt", "shell", "bash", "fish", "zsh"]
categories = ["command-line-utilities"]
build = "build.rs"
license = "ISC"
readme = "README.md"
repository = "https://github.com/starship/starship"
description = """
The minimal, blazing-fast, and infinitely customizable prompt for any shell! ☄🌌️
"""
# Keep `/` in front of `README.md` to exclude localized readmes
include = ["src/**/*", "build.rs", "Cross.toml", "LICENSE", "README.md"]

[badges]
is-it-maintained-issue-resolution = { repository = "starship/starship" }
Expand All @@ -30,48 +30,48 @@ battery = ["starship-battery"]
tls-vendored = ["native-tls/vendored"]

[dependencies]
ansi_term = "0.12.1"
byte-unit = "4.0.13"
chrono = "0.4.19"
clap = { version = "3.0.6", features = ["derive", "cargo", "unicode"] }
clap_complete = "3.0.2"
ansi_term = "0.12.1"
directories-next = "2.0.0"
gethostname = "0.2.1"
git2 = { version = "0.13.25", default-features = false }
toml = { version = "0.5.8", features = ["preserve_order"] }
rust-ini = "0.17.0"
serde_json = "1.0.74"
rayon = "1.5.1"
indexmap = { version = "1.8.0", features = ["serde"] }
log = { version = "0.4.14", features = ["std"] }
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.7.9", optional = true }
path-slash = "0.1.4"
unicode-segmentation = "1.8.0"
gethostname = "0.2.1"
notify-rust = { version = "4.5.5", optional = true }
once_cell = "1.9.0"
chrono = "0.4.19"
sys-info = "0.9.1"
byte-unit = "4.0.13"
starship_module_config_derive = { version = "0.2.1", path = "starship_module_config_derive" }
yaml-rust = "0.4.5"
open = "2.0.2"
os_info = "3.0.9"
path-slash = "0.1.4"
pest = "2.1.3"
pest_derive = "2.1.0"
regex = "1.5.4"
os_info = "3.0.9"
urlencoding = "2.1.0"
open = "2.0.2"
unicode-width = "0.1.9"
terminal_size = "0.1.17"
quick-xml = "0.22.0"
rand = "0.8.4"
serde = { version = "1.0.133", features = ["derive"] }
indexmap = { version ="1.8.0", features = ["serde"] }
notify-rust = { version = "4.5.5", optional = true }
rayon = "1.5.1"
regex = "1.5.4"
rust-ini = "0.17.0"
semver = "1.0.4"
which = "4.2.2"
serde = { version = "1.0.133", features = ["derive"] }
serde_json = "1.0.74"
sha-1 = "0.10.0"
shadow-rs = "0.8.1"
versions = "4.0.0"
# battery is optional (on by default) because the crate doesn't currently build for Termux
# see: https://github.com/svartalf/rust-battery/issues/33
starship-battery = { version = "0.7.9", optional = true }
starship_module_config_derive = { version = "0.2.1", path = "starship_module_config_derive" }
strsim = "0.10.0"
sha-1 = "0.10.0"
sys-info = "0.9.1"
terminal_size = "0.1.17"
toml = { version = "0.5.8", features = ["preserve_order"] }
toml_edit = "0.12.4"
unicode-segmentation = "1.8.0"
unicode-width = "0.1.9"
urlencoding = "2.1.0"
versions = "4.0.0"
which = "4.2.2"
yaml-rust = "0.4.5"

process_control = { version = "3.2.0", features = ["crossbeam-channel"] }

Expand All @@ -81,13 +81,7 @@ native-tls = { version = "0.2.8", optional = true }
shell-words = "1.0.0"

[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = [
"winuser",
"securitybaseapi",
"processthreadsapi",
"handleapi",
"impl-default",
] }
winapi = { version = "0.3.9", features = ["winuser", "securitybaseapi", "processthreadsapi", "handleapi", "impl-default"] }

[target.'cfg(not(windows))'.dependencies]
nix = "0.23.1"
Expand All @@ -96,8 +90,8 @@ nix = "0.23.1"
shadow-rs = "0.8.1"

[dev-dependencies]
tempfile = "3.2.0"
mockall = "0.11"
tempfile = "3.2.0"

[profile.release]
codegen-units = 1
Expand Down
8 changes: 4 additions & 4 deletions clippy.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
disallowed-methods = [
# std::process::Command::new may inadvertly run executables from the current working directory
"std::process::Command::new",
# Setting environment variables can cause issues with non-rust code
"std::env::set_var"
# std::process::Command::new may inadvertly run executables from the current working directory
"std::process::Command::new",
# Setting environment variables can cause issues with non-rust code
"std::env::set_var",
]
Loading

0 comments on commit b7e66a8

Please sign in to comment.