diff --git a/importable/2024-06-24-using-capacitor-plugins-from-rust-wasm.md b/importable/2024-06-24-using-capacitor-plugins-from-rust-wasm.md index ced9080..02ae8f7 100644 --- a/importable/2024-06-24-using-capacitor-plugins-from-rust-wasm.md +++ b/importable/2024-06-24-using-capacitor-plugins-from-rust-wasm.md @@ -78,7 +78,7 @@ https://gist.github.com/Tehnix/3d5c588437210239743244db0b34aa0c.js?file=capacito We’re now ready to use it in our App by adding the new `capacitor-rs` crate to our dependencies in our WASM app: -https://gist.github.com/Tehnix/3d5c588437210239743244db0b34aa0c.js?file=capacitor-rs%5CCargo.toml%20(title%3A%20%22Using%20Capacitor%20Plugins%20from%20Rust%5CWASM%22%0Atags%3A%20rust%2C%20wasm%2C%20leptos%2C%20mobile%0Adate%3A%202024-06-24).toml +https://gist.github.com/Tehnix/3d5c588437210239743244db0b34aa0c.js?file=capacitor-rs%5CCargo.toml%20(10).toml And then using it like you like a normal Rust function: @@ -89,7 +89,7 @@ And that’s it! Since I can’t exactly screenshot a haptic vibration, here’s an example where we use the [Capacitor](https://capacitorjs.com/docs/basics/utilities) utility function to determine which platform we are on, set up in the same way:
- Screenshot of Capacitor running on iPhone - Screenshot of Capacitor running in Web + Screenshot of Capacitor running on iPhone + Screenshot of Capacitor running in Web