#lib #parser #build #x86-64 #jq #ganganonline #pb-rs

ganganonline-parser-lib

ganganonline parser for rust using pb-rs

1 unstable release

0.0.0 Jan 16, 2020

#39 in #jq


Used in ganganonline-parser-json

GPL-3.0-or-later

7KB
116 lines

ganganonline-parser-lib

  • in binary (cargo install ganganonline-parser, ganganonline-parser < gangan_data.bin): parses the output (stdin) of ganganonline data and re-outputs as JSON for use with tools such as jq.
  • in lib: offers a singular function to decode a slice, and a module for use with objects.

Build requirements:

  • cargo

Recommended setup:

  • install the musl stuff (git clone git://git.musl-libc.org/musl, follow INSTALL)
  • install the musl toolchain (rustup target add x86_64-unknown-linux-musl)
  • run cargo build --release --target x86_64-unknown-linux-musl
  • run cp target/x86_64-unknown-linux-musl/release/ganganonline-parser ~/.local/bin if you need that

Recommended installs:

Prebuilt binaries:

yeah I need to figure that out

Usage:

curl --http2-prior-knowledge -d '' 'https://web-ggo.tokyo-cdn.com/{}' | ganganonline-parser-json | jq .

lib.rs:

This crate provides a convenience parser for use with mangaplus data.

The organisation of this crate is zero. You get 1 function which consumes a byte reference and the rest of it is a pregenerated set of files, of which one is consumed instantly.

Dependencies

~1.5–3MB
~56K SLoC