Search

Lib.rs

› Algorithms › rspace
#container #hkt #math #space #science

no-std rspace-core

Core modules for the rspace framework

by Joe McCain III

  • Install
  • API reference
  • GitHub repo (fl03)

10 releases

Uses new Rust 2024

0.0.9 Jan 15, 2026
0.0.8 Jan 11, 2026
0.0.6 Dec 29, 2025
0.0.0 Aug 29, 2024

#29 in #hkt


Used in rspace

Apache-2.0

57KB
1.5K SLoC

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

~0.2–2.5MB
~46K SLoC

  • rng? std? wasm? getrandom 0.3
  • alloc? hashbrown? nightly? rayon? serde? std? hashbrown 0.16
  • complex? rand? serde? std? num-complex
  • alloc? nightly? rand? rng? serde? std? rand 0.9
  • alloc? rand? serde? std? rand_distr 0.5
  • alloc? serde? std? serde+derive
  • alloc? serde_json? std? serde_json
  • serde? serde_derive 1.0
  • num-traits
  • rspace-traits 0.0.9
  • thiserror 2.0
  • wasm_bindgen? wasm-bindgen
  • build build.rs

Other features

  • full
  • json
  • macros
  • ndarray
  • wasi
Related: contained-core, rshyper-hmap, ndtensor, rshyper, contained, rspace-derive, rspace-macros, rspace, rspace-traits
See also: lending-iterator, argmin, karpal-core, higher-kinded-types, scirs2, rustedscithe, relmath-rs, sciforge, rust_physics_engine, argmin-math

Lib.rs is an unofficial list of Rust/Cargo crates, created by kornelski. It contains data from multiple sources, including heuristics, and manually curated data. Content of this page is not necessarily endorsed by the authors of the crate. This site is not affiliated with nor endorsed by the Rust Project. If something is missing or incorrect, please file a bug.