Skip to main content

Crate hyperstack

Crate hyperstack 

Source
Expand description

§HyperStack

Real-time streaming data pipelines for Solana - transform on-chain events into typed state projections.

§Features

  • interpreter (default) - AST transformation runtime and VM
  • macros (default) - Proc-macros for defining stream specifications
  • server (default) - WebSocket server and projection handlers
  • sdk - Rust client for connecting to HyperStack servers

§Quick Start

[dependencies]
hyperstack = "0.1"

Or with specific features:

[dependencies]
hyperstack = { version = "0.1", features = ["full"] }

§Example

use hyperstack::prelude::*;

#[hyperstack(idl = "idl.json")]
pub mod my_stream {
    #[entity(name = "MyEntity")]
    #[derive(Stream)]
    struct Entity {
        #[map(from = "MyAccount", field = "value")]
        pub value: u64,
    }
}

Re-exports§

pub use hyperstack_interpreter as interpreter;
pub use hyperstack_macros as macros;
pub use hyperstack_server as server;

Modules§

prelude
Prelude module for convenient imports