Questions tagged [yew]

Rust/Wasm framework for creating web applications

Yew takes inspiration from React and Redux. It uses Web Assembly and webworkers to create multi-threaded frontend apps.

The repository lives at https://github.com/yewstack/yew.

124 questions
-1
votes
1 answer

How to get window.ethereum in web_sys()?

In javascript to connect metamask it uses window.ethereum if (window.ethereum) { window.ethereum .request({ method: "eth_requestAccounts" }) .then((res) => accountChangeHandler(res[0])); } else { alert("install…
Amiya Behera
  • 2,210
  • 19
  • 32
-1
votes
1 answer

How to use rust diesel with yew or any frontend?

I build a rust database with diesel just like the docs and it worked fine in the terminal commands fn main() { use database::schema::posts::dsl::*; let connection = establish_connection(); let results =…
Ali Husham
  • 816
  • 10
  • 31
-1
votes
1 answer

after using move in closure I got "cannot infer an appropriate lifetime due to conflicting requirements "

my struct use web_sys::{Document, Element, window}; use wasm_bindgen::{UnwrapThrowExt, JsCast}; use std::cell::RefCell; use wasm_bindgen::closure::Closure; use web_sys::console::log_1; pub struct Draggable2 { doc: Document, pub(crate)…
Ali Husham
  • 816
  • 10
  • 31
-2
votes
0 answers

Adding new network to metamask on button Yew

I'm currently attempting to add the Arbitrum Goerli Testnet as a new network, but I'm encountering difficulties. Despite following the steps, I'm not receiving any prompts or notifications on my screen. Specifically, I'm not seeing the expected…
1 2 3
8
9