Skip to content

Commit 3176e51

Browse files
authored
feat: Dioxus 0.6 support (#55)
* feat: Dioxus 0.6 support * Update icon_component.rs * Update Cargo.toml * chore: Update to 0.6
1 parent 5a63dbe commit 3176e51

File tree

6 files changed

+26
-13
lines changed

6 files changed

+26
-13
lines changed

.github/release-drafter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name-template: "Release v$RESOLVED_VERSION 🌈"
1+
name-template: "Release v$RESOLVED_VERSION 🦀"
22
tag-template: "v$RESOLVED_VERSION"
33
categories:
44
- title: "🚀 Features"

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Cargo Build & Test
22

33
on:
4+
workflow_dispatch:
45
push:
6+
branches: [ "main" ]
57
pull_request:
68

79
env:
@@ -11,14 +13,13 @@ jobs:
1113
build_and_test:
1214
name: Rust project - latest
1315
runs-on: ubuntu-latest
14-
strategy:
15-
matrix:
16-
toolchain:
17-
- stable
18-
- beta
19-
- nightly
2016
steps:
2117
- uses: actions/checkout@v3
22-
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
18+
- name: Install the nightly toolchain
19+
uses: dtolnay/rust-toolchain@nightly
20+
- name: Install linux dependencies
21+
if: runner.os == 'Linux'
22+
run: |
23+
sudo apt update && sudo apt install build-essential libssl-dev pkg-config libglib2.0-dev libgtk-3-dev
2324
- run: cargo build --verbose
24-
- run: cargo test --verbose
25+
- run: cargo test --verbose

Cargo.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,16 @@ members = [
99
]
1010

1111
[workspace.dependencies]
12-
dioxus = "0.5"
12+
dioxus = "0.6.0"
13+
14+
[profile]
15+
16+
[profile.wasm-dev]
17+
inherits = "dev"
18+
opt-level = 1
19+
20+
[profile.server-dev]
21+
inherits = "dev"
22+
23+
[profile.android-dev]
24+
inherits = "dev"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ To use `dioxus-free-icons`, add this to your Cargo.toml:
1313

1414
```toml
1515
[dependencies]
16-
dioxus-free-icons = { version = "0.8", features = ["font-awesome-brands"] }
16+
dioxus-free-icons = { version = "0.9", features = ["font-awesome-brands"] }
1717
```
1818

1919
### Support features

packages/lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dioxus-free-icons"
3-
version = "0.8.6"
3+
version = "0.9.0"
44
edition = "2021"
55
authors = ["Daiki Nishikawa <[email protected]>", "Marc Espín <[email protected]>"]
66
description = "Use free svg icons in your Dioxus projects easily with dioxus-free-icons."

packages/lib/src/icon_component.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn Icon<T: IconShape + Clone + PartialEq + 'static>(props: IconProps<T>) ->
6060
title {
6161
"{title_text}"
6262
}
63-
},
63+
}
6464
{props.icon.child_elements()}
6565
}
6666
)

0 commit comments

Comments
 (0)