san-rs 0.3.1

A library for parsing standard algebraic notation (SAN)
Documentation
  • Coverage
  • 16.28%
    7 out of 43 items documented0 out of 13 items with examples
  • Size
  • Source code size: 56.45 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 739.56 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 20s Average build duration of successful builds.
  • all releases: 20s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ergor/libsan-rs
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ergor

libsan-rs

Rust implementation for parsing standard algebraic notation in chess inspired by standard-algebraic-notation.

Usage

Add this to your Cargo.toml:

[dependencies]
san-rs = "0"

Short example usage:

use san_rs::*;

fn main() {
    // parse input string:
    let move_data = Move::parse("Re4").unwrap(); // -> data struct

    // convert back to string:
    let san_string = move_data.compile(); // -> "Re4"
}