Skip to content

Commit

Permalink
Merge 6ec523f into de6d87c
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 authored Aug 7, 2024
2 parents de6d87c + 6ec523f commit 88827fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ devtools = ["freya/devtools"]
use_camera = ["freya/use_camera"]
hot-reload = ["freya/hot-reload"]
custom-tokio-rt = ["freya/custom-tokio-rt"]
performance-overlay = ["freya/performance-overlay"]

[patch.crates-io]
# dioxus = { git = "https://github.com/DioxusLabs/dioxus", rev = "7beacdf9c76ae5412d3c2bcd55f7c5d87f486a0f" }
Expand Down
1 change: 1 addition & 0 deletions crates/freya/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ devtools = ["dep:freya-devtools"]
use_camera = ["freya-hooks/use_camera"]
mocked-engine-development = ["freya-engine/mocked-engine"] # This is just for the CI
default = ["skia"]
performance-overlay = []

[dependencies]
freya-devtools = { workspace = true, optional = true }
Expand Down
3 changes: 3 additions & 0 deletions crates/freya/src/launch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ pub fn launch_with_props(app: AppComponent, title: &'static str, (width, height)
/// }
/// ```
pub fn launch_cfg<T: 'static + Clone>(app: AppComponent, config: LaunchConfig<T>) {
#[cfg(feature = "performance-overlay")]
let config = config.with_plugin(crate::plugins::PerformanceOverlayPlugin::default());

use freya_core::prelude::{
FreyaDOM,
SafeDOM,
Expand Down

0 comments on commit 88827fb

Please sign in to comment.