Skip to content

Commit

Permalink
Merge pull request #17 from rust-dd/refactor/remove-view-macro
Browse files Browse the repository at this point in the history
[WIP] refactor: remove view macro for better type inference
  • Loading branch information
dancixx authored Jan 7, 2025
2 parents 4775a69 + 1f694c0 commit 4c5d636
Show file tree
Hide file tree
Showing 18 changed files with 1,071 additions and 909 deletions.
274 changes: 246 additions & 28 deletions Cargo.lock

Large diffs are not rendered by default.

10 changes: 6 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
axum = { version = "0.7", optional = true, features = ["macros"] }
console_error_panic_hook = "0.1"
leptos = { version = "0.7.2", features = ["rustls", "nightly"] }
leptos_axum = { version = "0.7.2", optional = true }
leptos_meta = { version = "0.7.2" }
leptos_router = { version = "0.7.2", features = ["nightly"] }
leptos = { version = "0.7.3", features = ["rustls", "nightly"] }
leptos_axum = { version = "0.7.3", optional = true }
leptos_meta = { version = "0.7.3" }
leptos_router = { version = "0.7.3", features = ["nightly"] }
tokio = { version = "1", features = ["rt-multi-thread"], optional = true }
tower = { version = "0.5.1", optional = true }
tower-http = { version = "0.6.2", features = [
Expand Down Expand Up @@ -48,6 +48,8 @@ lettre = { version = "0.11.9", default-features = false, optional = true, featur
"tokio1",
"tokio1-rustls-tls",
] }
leptos_icons = "0.4.0"
icondata = "0.5.0"

[features]
hydrate = ["leptos/hydrate"]
Expand Down
12 changes: 6 additions & 6 deletions leptosfmt.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
max_width = 100 # Maximum width of each line
tab_spaces = 4 # Number of spaces per tab
indentation_style = "Auto" # "Tabs", "Spaces" or "Auto"
newline_style = "Auto" # "Unix", "Windows" or "Auto"
max_width = 120 # Maximum width of each line
tab_spaces = 4 # Number of spaces per tab
indentation_style = "Auto" # "Tabs", "Spaces" or "Auto"
newline_style = "Auto" # "Unix", "Windows" or "Auto"
attr_value_brace_style = "WhenRequired" # "Always", "AlwaysUnlessLit", "WhenRequired" or "Preserve"
macro_names = ["leptos::view", "view"] # Macro names which will be formatted
macro_names = ["leptos::view", "view"] # Macro names which will be formatted

# Attribute values can be formatted by custom formatters
# Every attribute name may only select one formatter (this might change later on)
[attr_values]
class = "Tailwind" # "Tailwind" is the only attribute value formatter available for now
class = "Tailwind" # "Tailwind" is the only attribute value formatter available for now
4 changes: 3 additions & 1 deletion rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
edition = "2021"
edition = "2021"
max_width = 120 # Maximum width of each line
tab_spaces = 4 # Number of spaces per tab
Loading

0 comments on commit 4c5d636

Please sign in to comment.