#reflection #meta #browser #views #reactive #structures #scripting

phlow

An engine for scripting reactive browsers in Rust by adding custom views to structures

15 stable releases

new 2.0.1 Apr 18, 2024
2.0.0 Apr 1, 2024
1.7.1 Jan 23, 2024
1.7.0 Dec 7, 2023
0.1.0 Jan 13, 2023

#2 in #views

Download history 12/week @ 2024-01-18 2/week @ 2024-01-25 26/week @ 2024-02-15 213/week @ 2024-02-22 27/week @ 2024-02-29 28/week @ 2024-03-07 19/week @ 2024-03-14 10/week @ 2024-03-21 185/week @ 2024-03-28 40/week @ 2024-04-04

270 downloads per month
Used in 5 crates

MIT license

73KB
2K SLoC

phlow

The engine for scripting reactive browsers in Rust. Phlow allows developers to add phlow views to any structure defined in other crates, including generic structures.

Notice

This is a nightly crate because it relies on specialization (or min_specialization) features. See https://github.com/rust-lang/rust/issues/31844.

Depend

phlow = { version = "*" }

Features

  • printing - enabled by default, detects if an arbitrary type implements Display or Debug and uses an appropriate one in PhlowObject::to_string. As a result any object or reference wrapped in phlow!() becomes printable.
  • phlow-derive - - enabled by default, enable to define new extensions, is not required to import existing extensions

Dependencies

~1.4–8.5MB
~51K SLoC