Skip to content

Commit

Permalink
feat: Dioxus 0.6 support (#55)
Browse files Browse the repository at this point in the history
* feat: Dioxus 0.6 support

* Update icon_component.rs

* Update Cargo.toml

* chore: Update to 0.6
  • Loading branch information
marc2332 authored Dec 10, 2024
1 parent 5a63dbe commit 3176e51
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name-template: "Release v$RESOLVED_VERSION 🌈"
name-template: "Release v$RESOLVED_VERSION 🦀"
tag-template: "v$RESOLVED_VERSION"
categories:
- title: "🚀 Features"
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Cargo Build & Test

on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:

env:
Expand All @@ -11,14 +13,13 @@ jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
- beta
- nightly
steps:
- uses: actions/checkout@v3
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Install the nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt update && sudo apt install build-essential libssl-dev pkg-config libglib2.0-dev libgtk-3-dev
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo test --verbose
14 changes: 13 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,16 @@ members = [
]

[workspace.dependencies]
dioxus = "0.5"
dioxus = "0.6.0"

[profile]

[profile.wasm-dev]
inherits = "dev"
opt-level = 1

[profile.server-dev]
inherits = "dev"

[profile.android-dev]
inherits = "dev"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ To use `dioxus-free-icons`, add this to your Cargo.toml:

```toml
[dependencies]
dioxus-free-icons = { version = "0.8", features = ["font-awesome-brands"] }
dioxus-free-icons = { version = "0.9", features = ["font-awesome-brands"] }
```

### Support features
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "dioxus-free-icons"
version = "0.8.6"
version = "0.9.0"
edition = "2021"
authors = ["Daiki Nishikawa <nd.12021218@gmail.com>", "Marc Espín <mespinsanz@gmail.com>"]
description = "Use free svg icons in your Dioxus projects easily with dioxus-free-icons."
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/icon_component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn Icon<T: IconShape + Clone + PartialEq + 'static>(props: IconProps<T>) ->
title {
"{title_text}"
}
},
}
{props.icon.child_elements()}
}
)
Expand Down

0 comments on commit 3176e51

Please sign in to comment.