#container #hkt #space #math #science

macro rspace-derive

useful derive macros for the rspace ecosystem

6 releases

Uses new Rust 2024

0.0.6 Dec 29, 2025
0.0.5 Dec 29, 2025

#1727 in Procedural macros

Apache-2.0

15KB
255 lines

rspace

crates.io docs.rs GitHub License


The library is currently in the early stages of development and is not yet ready for production use.

rspace is a library dedicated to providing robust abstractions for creating and working with containers (or spaces) within Rust. It aims to offer a flexible solution for managing collections of items, with a focus on safety, efficiency, and ease of use.

Features

  • RawSpace - The core abstraction for defining spaces.
  • Container<T> - A higher-kinded trait for defining containers.
  • Store<T> - A trait for defining key-value stores.

Getting Started

Add this to your Cargo.toml:

[dependencies.rspace]
features = []
version = "0.0.1"

Examples

Basic Usage

    extern crate rspace;

    fn main() -> Result<(), Box<dyn std::error::Error>> {
        tracing_subscriber::fmt()
            .with_max_level(tracing::Level::INFO)
            .init();
        tracing::info! { "Welcome to {name}", name = "rspace" }

        Ok(())
    }

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Dependencies

~120–490KB
~12K SLoC