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

phlow

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

15 stable releases

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

#1342 in Web programming


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.2–6.5MB
~48K SLoC