11 releases (4 stable)

2.0.0 Oct 13, 2020
1.1.1 Nov 24, 2019
0.2.5 Oct 23, 2019
0.2.4 Aug 10, 2019
0.1.1 Aug 10, 2019

#20 in #objects


Used in mangaplus-parser-json

GPL-3.0-or-later

7KB
102 lines

mangaplus-parser

  • in binary (cargo install mangaplus-parser-json, mangaplus-parser < mangaplus_data.bin): parses the output (stdin) of mangaplus 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/mangaplus-parser ~/.local/bin if you need that

Recommended installs:

Prebuilt binaries:

yeah I need to figure that out

Usage:

curl --http2-prior-knowledge -H SESSION-TOKEN:$(uuidgen) 'https://jumpg-webapi.tokyo-cdn.com/api/{}' | mangaplus-parser | 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

~0.2–1MB
~16K SLoC