Skip to content

update dependencies #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ license = "Apache-2.0/MIT"
name = "console_error_panic_hook"
readme = "./README.md"
repository = "https://github.com/rustwasm/console_error_panic_hook"
version = "0.1.6"
edition = "2018"
version = "0.1.7"

[badges]
travis-ci = { repository = "rustwasm/console_error_panic_hook" }

[dependencies]
cfg-if = "0.1.6"
wasm-bindgen = "0.2.37"
cfg-if = "1.0.0"
wasm-bindgen = "0.2.68"
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ First, you can set the hook yourself by calling `std::panic::set_hook` in
some initialization function:

```rust
extern crate console_error_panic_hook;
use std::panic;

fn my_init_function() {
Expand All @@ -52,8 +51,6 @@ Alternatively, use `set_once` on some common code path to ensure that
`std::sync::Once`.

```rust
extern crate console_error_panic_hook;

struct MyBigThing;

impl MyBigThing {
Expand Down
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
//! some initialization function:
//!
//! ```
//! extern crate console_error_panic_hook;
//! use std::panic;
//!
//! fn my_init_function() {
Expand All @@ -52,7 +51,6 @@
//! `std::sync::Once`.
//!
//! ```
//! extern crate console_error_panic_hook;
//!
//! struct MyBigThing;
//!
Expand All @@ -70,14 +68,10 @@
//! Many browsers only capture the top 10 frames of a stack trace. In rust programs this is less likely to be enough. To see more frames, you can set the non-standard value `Error.stackTraceLimit`. For more information see the [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Microsoft_Extensions/Error.stackTraceLimit) or [v8 docs](https://v8.dev/docs/stack-trace-api).
//!

#[macro_use]
extern crate cfg_if;

use std::panic;

cfg_if! {
cfg_if::cfg_if! {
if #[cfg(target_arch = "wasm32")] {
extern crate wasm_bindgen;
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
Expand Down
7 changes: 1 addition & 6 deletions tests/tests.rs
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
extern crate console_error_panic_hook;

use std::fs::File;
use std::io::Read;
use std::panic;
use std::process::Command;
use std::{fs::File, io::Read, panic, process::Command};

#[test]
fn cargo_readme_up_to_date() {
Expand Down