Skip to content

Commit

Permalink
♻️ Implement a config macro to simplify stump_config.rs (#397)
Browse files Browse the repository at this point in the history
* Implement a config macro to simplify stump_config.rs

* Fix lint error.

* Add doc comments to the macro.

* Add better error handling.

* Test the macro instead of stump_config

* Remove some needless complexity from the tests

* Address comments and clean up dependencies.

* Fix test.

* Okay NOW it's fixed.
  • Loading branch information
JMicheli authored Aug 19, 2024
1 parent 09ca1a9 commit 3a480f3
Show file tree
Hide file tree
Showing 12 changed files with 928 additions and 456 deletions.
65 changes: 40 additions & 25 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ async-stream = "0.3.5"
bcrypt = "0.15.1"
futures = "0.3.30"
futures-util = "0.3.30"
itertools = "0.12.1"
lettre = { version = "0.11.4", default-features = false, features = [
"builder",
"hostname",
Expand Down Expand Up @@ -52,5 +53,6 @@ tokio = { version = "1.37.0", features = [
# Allows handling shutdown signals (e.g., ctrl+c)
"signal",
] }
toml = "0.8.8"
tracing = "0.1.40"
urlencoding = "2.1.3"
5 changes: 3 additions & 2 deletions core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,17 @@ futures = { workspace = true }
globset = "0.4.14"
image = {version = "0.25.2", features = ["avif-native"]}
infer = "0.16.0"
itertools = "0.12.1"
itertools = { workspace = true }
prisma-client-rust = { workspace = true }
rand = { workspace = true }
serde = { workspace = true }
serde-xml-rs = "0.6.0" # Support for XML serialization/deserialization
serde_json = { workspace = true }
simple_crypt = { workspace = true }
specta = { workspace = true }
stump-config-gen = { path = "../crates/stump-config-gen"}
tokio = { workspace = true }
toml = "0.8.8"
toml = { workspace = true }
trash = "3.1.2"
# pdf = "0.8.1"
pdf = { git = "https://github.com/pdf-rs/pdf", rev = "3bc9e636d31b1846e51b58c7429914e640866f53" } # TODO: revert back to crates.io once fix(es) release
Expand Down
Loading

0 comments on commit 3a480f3

Please sign in to comment.