add shared array buffer support for dev server as opt config

This commit is contained in:
chaosprint committed 2023-05-06 08:13:28 +02:00
1 parent 9ce5fc508d
commit 257465a6d5
6 files changed
+157 -3

No files matched your search

+7
View File
@@ -146,6 +146,7 @@ pub struct CrateConfig {
pub dioxus_config: DioxusConfig,
pub release: bool,
pub hot_reload: bool,
pub shared_array_buffer: bool,
pub verbose: bool,
pub custom_profile: Option<String>,
pub features: Option<Vec<String>>,
@@ -213,6 +214,7 @@ impl CrateConfig {
release,
dioxus_config,
hot_reload,
shared_array_buffer: false,
custom_profile,
features,
verbose,
@@ -234,6 +236,11 @@ impl CrateConfig {
self
}
pub fn with_shared_array_buffer(&mut self, shared_array_buffer: bool) -> &mut Self {
self.shared_array_buffer = shared_array_buffer;
self
}
pub fn with_verbose(&mut self, verbose: bool) -> &mut Self {
self.verbose = verbose;
self