CyberMages LLC

Innovation Powered by Wizardry

rune (0.4.1)

Published 2025-10-23 01:31:01 -04:00 by myrddin in CyberMages/rune

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add rune@0.4.1

About this package

A lexical analysis library.

Rune

Rune is a high-performance, customizable lexical analysis library written in Rust.
It transforms source files into tokens using a fast, cache-friendly design.

“Turn raw text into structured meaning — like spellcraft for source code.”

Features

  • Basic tokenization: Whitespace, text, numbers, symbols, and newlines.
  • Flat TokenStream design: Optimized for speed and cache locality.
  • Custom transforms: Supply your own function to turn base tokens into domain-specific ones (like Markdown, HTML, or custom Domain Specific Languages).
  • Iterators and mutation: Traverse or modify tokens efficiently.

Getting Started

Add to your project

This library is hosted on the CyberMages registry. To add it to a project the CyberMages registry will need to be added to Cargo as per the Cargo Book.

First add the registry to your cargo config.toml file.

[registries.cybermages]
index = "sparse+https://workshop.cybermages.tech/api/packages/CyberMages/cargo/"

Then add this to your Cargo.toml file.

[dependencies]
rune = { version = "0.4.1", registry = "cybermages" }

Copyright 2025 CyberMages LLC

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this library except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS

Details
Cargo
2025-10-23 01:31:01 -04:00
1
CyberMages LLC <Software@CyberMagesLLC.com>
Jason Travis Smith <Myrddin@CyberMages.tech>
19 KiB
Assets (1)
Versions (4) View all
0.4.1 2025-10-23
0.4.0 2025-05-05
0.2.0 2025-04-16
0.1.0 2025-04-16