Skip to content

Commit

Permalink
Remove panic-hook feature
Browse files Browse the repository at this point in the history
  • Loading branch information
flosse committed Mar 4, 2023
1 parent 55d09b9 commit f64fb06
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions Cargo.toml
Expand Up @@ -81,7 +81,6 @@ wasm-bindgen = "0.2.84"
wasm-bindgen-futures = "0.4.34"

# Optional dependencies
console_error_panic_hook = { version = "0.1.7", optional = true }
serde = { version = "1.0.152", features = ['derive'], optional = true }
serde_json = { version = "1.0.93", optional = true }
serde-wasm-bindgen = { version = "0.4.5", optional = true }
Expand Down Expand Up @@ -164,10 +163,9 @@ features = [
]

[features]
default = ["panic-hook", "serde-json"]
default = ["serde-json"]
serde-json = ["dep:serde", "dep:serde_json", "wasm-bindgen/serde-serialize"]
serde-wasm-bindgen = ["dep:serde", "dep:serde-wasm-bindgen"]
panic-hook = ["dep:console_error_panic_hook"]

[build-dependencies]
version_check = "0.9.4"
Expand Down
4 changes: 0 additions & 4 deletions src/app.rs
Expand Up @@ -148,10 +148,6 @@ where
// https://bugs.webkit.org/show_bug.cgi?id=202881
std::mem::drop(util::document().query_selector("html"));

// Allows panic messages to output to the browser console.error.
#[cfg(feature = "panic-hook")]
console_error_panic_hook::set_once();

let base_path: Rc<[String]> = Rc::from(
util::document()
.query_selector("base")
Expand Down
3 changes: 0 additions & 3 deletions src/lib.rs
Expand Up @@ -102,9 +102,6 @@ pub use crate::{
virtual_dom::{Attrs, EventHandler, Style},
};

#[cfg(feature = "panic-hook")]
pub use console_error_panic_hook;

pub use futures::{
self,
future::{self, FutureExt, TryFutureExt},
Expand Down

0 comments on commit f64fb06

Please sign in to comment.