Crate web_tools

source ·
Expand description


Tools for web programming in Rust.


Rust has a strict type system, which is great. But sometimes it’s just convenient to use:

use web_tools::prelude::*;

#[cfg(feature = "yew")]
fn yew(node: &yew::prelude::NodeRef) {

fn vanilla(element: &web_sys::Element) {


  • Optimistic traits: execute some function on an element, if it supports it … or do nothing.
  • Iterators for things that should be iterable, but don’t implement IntoIterator.