rx-rs 0.0.1

A lightweight single-threaded push-based reactive programming library
Documentation

rx-rs

A lightweight single-threaded push-based reactive programming library for Rust.

Quick Start

use rx_rs::prelude::*;

fn main() {
    let tracker = DisposableTracker::new();

    // Reactive value with current state
    let counter = RxRef::new(0);

    counter.val().subscribe(tracker.tracker(), |value| {
        println!("Counter: {}", value);
    });

    counter.set(1); // Prints: Counter: 1
    counter.set(2); // Prints: Counter: 2
}

Installation

Add this to your Cargo.toml:

[dependencies]
rx-rs = "0.0.1"

License

Licensed under either of:

at your option.