nu_plugin_roaring

Crates.ionu_plugin_roaring
lib.rsnu_plugin_roaring
version0.1.5
created_at2025-01-08 03:58:25.911289+00
updated_at2025-06-15 03:13:28.45063+00
descriptionA Nushell plugin for Roaring Bitmap
homepagehttps://github.com/yybit/nu_plugin_roaring
repositoryhttps://github.com/yybit/nu_plugin_roaring
max_upload_size
id1508056
size66,231
(yybit)

documentation

README

crates.io docs.rs

nu_plugin_roaring

nu_plugin_roaring is a plugin for the Nushell that provides efficient bitmap operations using the Roaring Bitmap data structure.

Installation

cargo install nu_plugin_roaring
plugin add ~/.cargo/bin/nu_plugin_roaring
plugin use roaring

Usage

The plugin supports the following methods: new, len, list, contains, and serialize. Here are some examples:

  • Create a new bitmap, serialize it, and save it to a file:

    [1..5 11..<15 21] | roaring new | roaring ser | save test.rr
    
  • Import a serialized bitmap and get its length:

    open test.rr | roaring len
    
  • Import a serialized bitmap and check if it contains certain values:

    open test.rr | roaring contains 1..3
    
  • Import a serialized bitmap and list certain values:

    # List elements in the range from 1 to 15
    open test.rr | roaring list 1..15
    # List all elements
    open test.rr | roaring list
    
Commit count: 8

cargo fmt