Skip to content

Commit

Permalink
feat: add way to automatically generate new json schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Jun 16, 2024
1 parent 982b718 commit 06eb31b
Show file tree
Hide file tree
Showing 16 changed files with 744 additions and 312 deletions.
42 changes: 42 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ build = "build.rs"
exclude = [
".cargo-husky/",
".github/",
".vscode/",
"assets/",
"desktop/",
"docs/",
"flamegraphs/",
"sample_configs/",
"schema",
"schema/",
"scripts/",
"wix/",
".all-contributorsrc",
Expand Down Expand Up @@ -70,6 +72,7 @@ nvidia = ["nvml-wrapper"]
gpu = ["nvidia"]
zfs = []
logging = ["fern", "log", "time/local-offset"]
generate_schema = ["schemars", "serde_json"]
deploy = ["battery", "gpu", "zfs"]
default = ["deploy"]

Expand All @@ -91,7 +94,9 @@ itertools = "0.13.0"
log = { version = "0.4.21", optional = true }
nvml-wrapper = { version = "0.10.0", optional = true, features = ["legacy-functions"] }
regex = "1.10.4"
schemars = { version = "0.8.21", optional = true }
serde = { version = "1.0.203", features = ["derive"] }
serde_json = { version = "1.0.117", optional = true }
starship-battery = { version = "0.8.3", optional = true }
sysinfo = "=0.30.12"
thiserror = "1.0.61"
Expand Down Expand Up @@ -143,7 +148,6 @@ clap_complete_nushell = "4.5.1"
clap_complete_fig = "4.5.0"
clap_mangen = "0.2.20"
indoc = "2.0.5"
# schemars = "0.8.21"

[package.metadata.deb]
section = "utility"
Expand Down
Loading

0 comments on commit 06eb31b

Please sign in to comment.