RxZig is a reactive programming library for Zig, inspired by ReactiveX. It provides a powerful, efficient, and type-safe way to handle asynchronous and event-based programming in Zig.
- Reactive Streams: Implement
Observable,Single, andSubjectpatterns for reactive programming. - Operators: A growing collection of operators like
map,filter,flatMap,merge, and more. - Type Safety: Leverage Zig's strong type system to ensure correctness at compile time.
- Zero-Cost Abstractions: Designed for performance with minimal runtime overhead.
- Interoperability: Works seamlessly with Zig's error handling and memory management.
Add RxZig as a dependency in your build.zig:
const rxzig = b.dependency("rxzig", .{
.target = target,
.optimize = optimize,
});
executable.root_module.addImport("rx", rxzig.module("rxzig"));Or clone the repository directly:
git clone https://github.com/loicfm/RxZig.git
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- Inspired by ReactiveX and its implementations in other languages.
- Built with Zig, a modern systems programming language.
- Thanks to all contributors!