Skip to content

Commit

Permalink
style(style): modify format
Browse files Browse the repository at this point in the history
Signed-off-by: DragonBillow <[email protected]>
  • Loading branch information
cathaysia committed Mar 3, 2024
1 parent b5e5d7e commit 457bd90
Show file tree
Hide file tree
Showing 8 changed files with 157 additions and 161 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repos:
- id: toml
name: toml
language: system
types_or: [rust]
types_or: [toml]
entry: taplo format

- repo: local
Expand Down
4 changes: 2 additions & 2 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[formatting]
align_entries = true
align_entries = false
inline_table_expand = true
array_auto_collapse = false
array_auto_expand = false
array_auto_expand = false
34 changes: 17 additions & 17 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[package]
name = "nix4vscode"
name = "nix4vscode"
version = "0.1.0"
edition = "2021"

[dependencies]
serde = { version = "1.0.188", features = ["derive", "alloc", "rc"] }
serde_json = "1.0.106"
toml = "0.7.8"
tokio = { version = "1.32.0", features = ["full"] }
tracing = "0.1.37"
serde = { version = "1.0.188", features = ["derive", "alloc", "rc"] }
serde_json = "1.0.106"
toml = "0.7.8"
tokio = { version = "1.32.0", features = ["full"] }
tracing = "0.1.37"
tracing-subscriber = { version = "0.3.17", features = ["env-filter", "std"] }
semver = "1.0.18"
bitflags = { version = "2.4.0", features = ["serde", "std"] }
reqwest = { version = "0.11.20", default_features = false, features = ["rustls-tls", "gzip", "json"] }
minijinja = "1.0.7"
clap = { version = "4.4.2", features = ["derive"] }
futures = "0.3.28"
anyhow = "1.0.75"
nixpkgs-fmt = "1.3.0"
redb = "1.1.0"
thiserror = "1.0.48"
openvsx = { path = "./openvsx" }
semver = "1.0.18"
bitflags = { version = "2.4.0", features = ["serde", "std"] }
reqwest = { version = "0.11.20", default_features = false, features = ["rustls-tls", "gzip", "json"] }
minijinja = "1.0.7"
clap = { version = "4.4.2", features = ["derive"] }
futures = "0.3.28"
anyhow = "1.0.75"
nixpkgs-fmt = "1.3.0"
redb = "1.1.0"
thiserror = "1.0.48"
openvsx = { path = "./openvsx" }
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vscode_version = "1.84.2"
vscode_version = "1.84.2"
autogen_warning = "# Warning, this file is autogenerated by nix4vscode. Don't modify this manually."

[[extensions]]
Expand Down
224 changes: 111 additions & 113 deletions flake.lock

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

2 changes: 0 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,3 @@
};
});
}


22 changes: 11 additions & 11 deletions openvsx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
[package]
name = "openvsx"
version = "0.1.0"
authors = ["OpenAPI Generator team and contributors"]
name = "openvsx"
version = "0.1.0"
authors = ["OpenAPI Generator team and contributors"]
description = "This API provides metadata of VS Code extensions in the Open VSX Registry as well as means to publish extensions."
license = "Eclipse Public License 2.0"
edition = "2018"
license = "Eclipse Public License 2.0"
edition = "2018"

[dependencies]
serde = "^1.0"
serde = "^1.0"
serde_derive = "^1.0"
serde_json = "^1.0"
url = "^2.2"
uuid = { version = "^1.0", features = ["serde", "v4"] }
serde_json = "^1.0"
url = "^2.2"
uuid = { version = "^1.0", features = ["serde", "v4"] }

[dependencies.reqwest]
version = "^0.11"
version = "^0.11"
default-features = false
features = ["json", "multipart", "rustls-tls"]
features = ["json", "multipart", "rustls-tls"]
28 changes: 14 additions & 14 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
edition = "2021"
hard_tabs = false
force_explicit_abi = true
max_width = 100
merge_derives = true
newline_style = "Auto"
remove_nested_parens = true
reorder_imports = true
reorder_modules = true
tab_spaces = 4
use_field_init_shorthand = true
use_small_heuristics = "Default"
use_try_shorthand = false
edition = "2021"
hard_tabs = false
force_explicit_abi = true
max_width = 100
merge_derives = true
newline_style = "Auto"
remove_nested_parens = true
reorder_imports = true
reorder_modules = true
tab_spaces = 4
use_field_init_shorthand = true
use_small_heuristics = "Default"
use_try_shorthand = false
format_code_in_doc_comments = true
imports_granularity = "Crate"
imports_granularity = "Crate"

0 comments on commit 457bd90

Please sign in to comment.