ydke_parser 0.2.0

A parser for YGOPro deck URLs in the YDKE format
Documentation
  • Coverage
  • 78.57%
    11 out of 14 items documented6 out of 6 items with examples
  • Size
  • Source code size: 30.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.98 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Satellaa/ydke_parser
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Satellaa

Maintenance Tests Docs

ydke_parser

A crate for parsing and generating YGOPro deck URLs in the YDKE format.

Example

use ydke_parser::{Deck, parse_url, to_url};

// Create a deck
let deck = Deck {
    main: vec![26077387, 37351133],
    extra: vec![63288574],
    side: vec![37351133],
};

let url1 = "ydke://y+iNAd3uOQI=!/rTFAw==!3e45Ag==!";
// Convert to URL
let url2 = to_url(&deck);

// Parse the URL back into a deck
let parsed_deck1 = parse_url(&url1).unwrap();
let parsed_deck2 = parse_url(&url2).unwrap();
assert_eq!(deck, parsed_deck1);
assert_eq!(deck, parsed_deck2);