Skip to content

Commit

Permalink
Reexport handlebars and serde types and reduce explicit dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
arnodb committed Feb 11, 2025
1 parent bb81c22 commit eddd7ef
Show file tree
Hide file tree
Showing 10 changed files with 3 additions and 19 deletions.
3 changes: 0 additions & 3 deletions codegen/quirky_binder_codegen/src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,13 +637,10 @@ pub(crate) fn generate_module<'a>(
});
error_emitter.error()?;
Ok(quote! {
use handlebars::Handlebars;
use std::collections::BTreeMap;

mod __quirky_binder_private {
use #quirky_binder_crate::prelude::*;
use handlebars::Handlebars;
use serde::Deserialize;
use std::collections::BTreeMap;
use truc::record::type_resolver::TypeResolver;

Expand Down
2 changes: 0 additions & 2 deletions examples/quirky_binder_example_index_first_char/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ quirky_binder_monitor = ["chrono", "self-meter", "tracking-allocator"]

[build-dependencies]
getset = "0.1"
handlebars = "4"
quirky_binder = { path = "../../quirky_binder" }
quote = "1"
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }
2 changes: 0 additions & 2 deletions examples/quirky_binder_example_tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,5 @@ default = []
quirky_binder_monitor = ["chrono", "self-meter", "tracking-allocator"]

[build-dependencies]
handlebars = "4"
quirky_binder = { path = "../../quirky_binder" }
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }
2 changes: 0 additions & 2 deletions examples/quirky_binder_example_wordlist/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,4 @@ quirky_binder_monitor = ["chrono", "self-meter", "tracking-allocator"]
[build-dependencies]
quirky_binder = { path = "../../quirky_binder" }
quirky_binder_support = { path = "../../quirky_binder_support" }
handlebars = "4"
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }
3 changes: 3 additions & 0 deletions quirky_binder/src/prelude.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
pub use handlebars::Handlebars;
pub use serde::Deserialize;

pub use crate::{
chain::{
error::{ChainError, ChainErrorWithTrace},
Expand Down
2 changes: 0 additions & 2 deletions recipes/csv/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ default = []
quirky_binder_monitor = ["chrono", "self-meter", "tracking-allocator"]

[build-dependencies]
handlebars = "4"
quirky_binder = { path = "../../quirky_binder" }
quirky_binder_csv = { path = "../../contrib/quirky_binder_csv" }
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }
2 changes: 0 additions & 2 deletions recipes/hello_world/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ default = []
quirky_binder_monitor = ["chrono", "self-meter", "tracking-allocator"]

[build-dependencies]
handlebars = "4"
quirky_binder = { path = "../../quirky_binder" }
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }
2 changes: 0 additions & 2 deletions recipes/postgres/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,5 @@ default = []
quirky_binder_monitor = ["chrono", "self-meter", "tracking-allocator"]

[build-dependencies]
handlebars = "4"
quirky_binder = { path = "../../quirky_binder" }
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }
2 changes: 0 additions & 2 deletions recipes/template/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ default = []
quirky_binder_monitor = ["chrono", "self-meter", "tracking-allocator"]

[build-dependencies]
handlebars = "4"
quirky_binder = { path = "../../quirky_binder" }
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }
2 changes: 0 additions & 2 deletions tests/quirky_binder_tests_source/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ rust-version = "1.65.0"

[dependencies]
anyhow = "1"
handlebars = "4"
quirky_binder = { path = "../../quirky_binder" }
quirky_binder_csv = { path = "../../contrib/quirky_binder_csv" }
serde = { version = "1", features = ["derive"] }
truc = { git = "https://github.com/arnodb/truc.git" }

0 comments on commit eddd7ef

Please sign in to comment.