Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the template with breaking changes in 0.6 #44

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Desktop/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ edition = "2021"
[dependencies]

{% if router %}
dioxus = { version = "0.5", features = ["desktop", "router"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["desktop", "router"] }
{% else %}
dioxus = { version = "0.5", features = ["desktop"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["desktop"] }
{% endif %}


Expand Down
4 changes: 2 additions & 2 deletions Desktop/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ fn App() -> Element {
// Build cool things ✌️

rsx! {
link { rel: "stylesheet", href: "main.css" }
img { src: "header.svg", id: "header" }
head::Link { rel: "stylesheet", href: asset!("/assets/main.css") }
img { src: asset!("/assets/header.svg"), id: "header" }
div { id: "links",
a { href: "https://dioxuslabs.com/learn/0.5/", "📚 Learn Dioxus" }
a { href: "https://dioxuslabs.com/awesome", "🚀 Awesome Dioxus" }
Expand Down
4 changes: 2 additions & 2 deletions Fullstack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ edition = "2021"
[dependencies]
serde = { version = "1.0.197", features = ["derive"] }
{% if router %}
dioxus = { version = "0.5", features = ["fullstack", "router"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["fullstack", "router"] }
{% else %}
dioxus = { version = "0.5", features = ["fullstack"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["fullstack"] }
{% endif %}

# Debug
Expand Down
4 changes: 2 additions & 2 deletions Fullstack/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ fn App() -> Element {
// Build cool things ✌️

rsx! {
link { rel: "stylesheet", href: "main.css" }
img { src: "header.svg", id: "header" }
head::Link { rel: "stylesheet", href: asset!("/assets/main.css") }
img { src: asset!("/assets/header.svg"), id: "header" }
div { id: "links",
a { href: "https://dioxuslabs.com/learn/0.5/", "📚 Learn Dioxus" }
a { href: "https://dioxuslabs.com/awesome", "🚀 Awesome Dioxus" }
Expand Down
4 changes: 2 additions & 2 deletions Liveview/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ edition = "2021"
[dependencies]
tokio = { version = "1.27.0", features = ["full"] }
{% if router %}
dioxus = { version = "0.5", features = ["liveview", "axum", "router"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["liveview", "axum", "router"] }
axum = { version = "0.7.4", features = ["ws"] }
{% else %}
dioxus = { version = "0.5", features = ["liveview", "axum"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["liveview", "axum"] }
axum = { version = "0.7.4", features = ["ws"] }
{% endif %}

Expand Down
4 changes: 2 additions & 2 deletions Liveview/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ fn App() -> Element {
// Build cool things ✌️

rsx! {
link { rel: "stylesheet", href: "main.css" }
img { src: "header.svg", id: "header" }
head::Link { rel: "stylesheet", href: asset!("/assets/main.css") }
img { src: asset!("/assets/header.svg"), id: "header" }
div { id: "links",
a { href: "https://dioxuslabs.com/learn/0.5/", "📚 Learn Dioxus" }
a { href: "https://dioxuslabs.com/awesome", "🚀 Awesome Dioxus" }
Expand Down
4 changes: 2 additions & 2 deletions TUI/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ edition = "2021"
[dependencies]

{% if router %}
dioxus = { version = "0.5", features = ["tui", "router"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["tui", "router"] }
{% else %}
dioxus = { version = "0.5", features = ["tui"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["tui"] }
{% endif %}
5 changes: 2 additions & 3 deletions Web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]

{% if router %}
dioxus = { version = "0.5", features = ["web", "router"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["web", "router"] }
{% else %}
dioxus = { version = "0.5", features = ["web"] }
dioxus = { git = "https://github.com/DioxusLabs/dioxus", features = ["web"] }
{% endif %}


Expand Down
4 changes: 2 additions & 2 deletions Web/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ fn App() -> Element {
// Build cool things ✌️

rsx! {
link { rel: "stylesheet", href: "main.css" }
img { src: "header.svg", id: "header" }
head::Link { rel: "stylesheet", href: asset!("/assets/main.css") }
img { src: asset!("/assets/header.svg"), id: "header" }
div { id: "links",
a { target: "_blank", href: "https://dioxuslabs.com/learn/0.5/", "📚 Learn Dioxus" }
a { target: "_blank", href: "https://dioxuslabs.com/awesome", "🚀 Awesome Dioxus" }
Expand Down