cpal/examples
Anatol Ulrich db04f57be4
migrate wasm example to trunk (#844)
## Description

This PR migrates the wasm example from an npm/webpack based approach to [trunk](https://trunkrs.dev/). Fixes #834.

Of note:
the `console_error_panic_hook` dependency was gated in `Cargo.toml` via `[target."cfg(debug_assertions)".dependencies]`. This is documented as nonfunctional and will throw a warning on build:
```
warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. 
This value is not supported for selecting dependencies and will not work as expected. 
To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies
```

Since the actual usage of `console_error_panic_hook` is *also* gated in `lib.rs` behind `#[cfg(debug_assertions)]` it didn't make sense to have the cargo gate in place, hence I have removed it.

## Next steps

If this PR is merged, the [wiki page](https://github.com/RustAudio/cpal/wiki/Setting-up-a-new-CPAL-WASM-project) linked in the root README should be updated as well.
2024-02-25 01:49:53 +01:00
..
ios-feedback add timeout paramter to DeviceTrait stream builders (#696) 2022-10-18 18:15:31 +02:00
wasm-beep migrate wasm example to trunk (#844) 2024-02-25 01:49:53 +01:00
android.rs add timeout paramter to DeviceTrait stream builders (#696) 2022-10-18 18:15:31 +02:00
beep.rs Bump linux deps, simplify examples, remove nix dep (#712) 2022-10-23 20:59:45 +02:00
enumerate.rs Add an Android example and enhance the other examples with CLI argument parsing. 2020-12-14 11:04:32 -07:00
feedback.rs Bump linux deps, simplify examples, remove nix dep (#712) 2022-10-23 20:59:45 +02:00
record_wav.rs Bump linux deps, simplify examples, remove nix dep (#712) 2022-10-23 20:59:45 +02:00
synth_tones.rs Fix synth_tones frequency (#792) 2023-08-03 03:42:34 +02:00