| Lift freeq's AV media plane out of sleek 90f8b89 nandi 19d ago | 1 | [package] |
| 2 | name = "audioworklet-beep" |
| 3 | description = "cpal beep example for WebAssembly on an AudioWorklet" |
| 4 | version = "0.1.0" |
| 5 | edition = "2021" |
| 6 | authors = ["Ian Kettlewell <ian.kettlewell@gmail.com>"] |
| 7 | |
| 8 | [lib] |
| 9 | crate-type = ["cdylib"] |
| 10 | |
| 11 | [profile.release] |
| 12 | # This makes the compiled code faster and smaller, but it makes compiling slower, |
| 13 | # so it's only enabled in release mode. |
| 14 | lto = true |
| 15 | |
| 16 | [dependencies] |
| 17 | cpal = { path = "../..", features = ["wasm-bindgen", "audioworklet"] } |
| 18 | # `gloo` is a utility crate which improves ergonomics over direct `web-sys` usage. |
| 19 | gloo = "0.11" |
| 20 | |
| 21 | # The `wasm-bindgen` crate provides the bare minimum functionality needed |
| 22 | # to interact with JavaScript. |
| 23 | wasm-bindgen = "0.2" |
| 24 | |
| 25 | # The `console_error_panic_hook` crate provides better debugging of panics by |
| 26 | # logging them with `console.error`. |
| 27 | console_error_panic_hook = "0.1" |
| 28 | |
| 29 | # The `web-sys` crate allows you to interact with the various browser APIs, |
| 30 | # like the DOM. |
| 31 | [dependencies.web-sys] |
| 32 | version = "0.3" |
| 33 | features = ["console", "MouseEvent"] |