Skip to content

Commit

Permalink
feat: taplo
Browse files Browse the repository at this point in the history
Signed-off-by: lxl66566 <[email protected]>
  • Loading branch information
lxl66566 committed Nov 20, 2024
1 parent cd96ff5 commit 1f0150a
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 49 deletions.
13 changes: 13 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include = ["**/*.toml"]

[[rule]]
include = ["**/Cargo.toml", ".taplo.toml", "Cargo.toml", "rustfmt.toml"]

[rule.formatting]
align_comments = true
align_entries = true
array_trailing_comma = true
column_width = 100
inline_table_expand = false
reorder_keys = true
trailing_newline = true
12 changes: 6 additions & 6 deletions Cargo.lock

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

73 changes: 34 additions & 39 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,49 +1,44 @@
[package]
name = "git-simple-encrypt"
authors = ["lxl66566 <[email protected]>"]
authors = ["lxl66566 <[email protected]>"]
categories = ["cryptography"]
description = "Encrypt/decrypt files in git repo using one password"
homepage = "https://github.com/lxl66566/git-simple-encrypt"
repository = "https://github.com/lxl66566/git-simple-encrypt"
license = "MIT"
version = "1.3.1"
edition = "2021"
readme = "./README.md"
categories = ["cryptography"]
keywords = ["git", "encryption"]
edition = "2021"
homepage = "https://github.com/lxl66566/git-simple-encrypt"
keywords = ["git", "encryption"]
license = "MIT"
name = "git-simple-encrypt"
readme = "./README.md"
repository = "https://github.com/lxl66566/git-simple-encrypt"
version = "1.3.1"

[dependencies]
aes-gcm-siv = "0.11.1"
anyhow = "1.0.93"
assert2 = "0.3.15"
clap = { version = "4.5.21", features = ["derive"] }
colored = "2.1.0"
config-file2 = "0.3.2"
const-str = "0.5.7"
aes-gcm-siv = "0.11.1"
anyhow = "1.0.93"
assert2 = "0.3.15"
clap = { version = "4.5.21", features = ["derive"] }
colored = "2.1.0"
config-file2 = "0.3.2"
const-str = "0.5.7"
copy-metadata = "0.1.0"
die-exit = { version = "0.5.0", features = ["red"] }
enum-tools = "0.5.3"
env_logger = "0.11.5"
glob = "0.3.1"
log = "0.4.22"
num_cpus = "1.16.0"
pathdiff = "0.2.2"
serde = { version = "1.0.215", features = ["derive"] }
sha3 = "0.10.8"
tap = "1.0.1"
tokio = { version = "1.41.1", features = [
"macros",
"rt",
"rt-multi-thread",
"fs",
] }
zstd = "0.13.2"
die-exit = { version = "0.5.0", features = ["red"] }
enum-tools = "0.5.3"
env_logger = "0.11.5"
glob = "0.3.1"
log = "0.4.22"
num_cpus = "1.16.0"
pathdiff = "0.2.2"
serde = { version = "1.0.215", features = ["derive"] }
sha3 = "0.10.8"
tap = "1.0.1"
tokio = { version = "1.41.1", features = ["macros", "rt", "rt-multi-thread", "fs"] }
zstd = "0.13.2"

[target.'cfg(target_arch = "aarch64")'.dependencies]
libz-sys = { version = "1.1.20", features = ["static"] }

[dev-dependencies]
rand = { version = "0.8.5", features = ["small_rng"] }
tempfile = "3.13.0"
rand = { version = "0.8.5", features = ["small_rng"] }
tempfile = "3.14.0"

[[bin]]
name = "git-se"
Expand All @@ -53,7 +48,7 @@ path = "src/main.rs"
path = "src/lib.rs"

[profile.release]
strip = true
lto = true
panic = "abort"
lto = true
opt-level = "z"
panic = "abort"
strip = true
8 changes: 4 additions & 4 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group_imports = "StdExternalCrate"
imports_granularity = "Crate"
merge_derives = true
group_imports = "StdExternalCrate"
unstable_features = true
wrap_comments = true
merge_derives = true
unstable_features = true
wrap_comments = true

0 comments on commit 1f0150a

Please sign in to comment.