From 67de1be745c67564c2373b27111c3042da5d1c7f Mon Sep 17 00:00:00 2001 From: genusistimelord Date: Wed, 8 May 2024 11:00:03 -0400 Subject: [PATCH] Release 0.9.3 with pub mod required renamed to bootstrap when icon feature is disabled --- CHANGELOG.md | 5 +++++ Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- examples/card/Cargo.toml | 4 ++-- src/core/icons.rs | 5 +++-- 6 files changed, 13 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f95ba5e..2e554530 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [0.9.3] - 2024-05-08 + +### Fixed +- pub mod required being renamed to pub mod bootstrap via cfg. + ## [0.9.2] - 2024-05-08 ### Fixed diff --git a/Cargo.lock b/Cargo.lock index 34bf8592..c3795499 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1313,7 +1313,7 @@ dependencies = [ [[package]] name = "iced_aw" -version = "0.9.2" +version = "0.9.3" dependencies = [ "cfg-if", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 9d3354e4..c30f55d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "iced_aw" -version = "0.9.2" +version = "0.9.3" authors = [ "Kaiden42 ", "Andrew Wheeler ", diff --git a/README.md b/README.md index 8f1e7dbd..e28ad668 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ Include `iced_aw` as a dependency in your `Cargo.toml`: ```toml [dependencies] iced = "0.12.0" -iced_aw = { version = "0.9.2", default-features = false, features = [...] } +iced_aw = { version = "0.9.3", default-features = false, features = [...] } ``` ## Versioning diff --git a/examples/card/Cargo.toml b/examples/card/Cargo.toml index 7052edb4..41df7eec 100644 --- a/examples/card/Cargo.toml +++ b/examples/card/Cargo.toml @@ -7,8 +7,8 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -iced_aw = { workspace = true, features = [ - "card", "icons" +iced_aw = { workspace = true, default-features = false , features = [ + "card" ] } iced.workspace=true diff --git a/src/core/icons.rs b/src/core/icons.rs index e3a84cd2..0b588d93 100644 --- a/src/core/icons.rs +++ b/src/core/icons.rs @@ -26,8 +26,9 @@ cfg_if! { /// The default cupertino font for alerts and button. pub const SF_UI_ROUNDED: iced::Font = iced::Font::with_name(".SF UI Rounded"); } else { - pub mod required; - pub use required::Bootstrap; + #[path = "icons/required.rs"] + pub mod bootstrap; + pub use bootstrap::Bootstrap; // pub use required::{Bootstrap, icon_to_char, icon_to_string}; /// The default icon font bytes for loading the font into iced. pub const BOOTSTRAP_FONT_BYTES: &[u8] = include_bytes!("./fonts/required-icons.ttf");