#api #library #error #tosho #source #parser #shared

tosho-common

A common shared library used by tosho-* sources crates

1 unstable release

0.1.1 Jan 1, 2025
0.1.0 Jan 1, 2025

#522 in Images

Download history 249/week @ 2024-12-28 49/week @ 2025-01-04

298 downloads per month
Used in 7 crates

MIT license

25KB
428 lines

tosho-common

A common shared library used by tosho-* sources crates.

Not recommended to be used by other projects.

Features

  • serde - Enable error type when parsing with serde + serde_json (Also enable the parser for reqwest)
  • protobuf - Enable error type when parsing with protobuf via prost (Also enable the parser for reqwest)
  • image - Enable error type when processing image with image-rs
  • complete-errors - Enable all error types described above
  • id-gen - Enable random token/ID generator
  • all - Enable all features

This is made since not all sources crates will need all of the features.

License

This project is licensed with MIT License (LICENSE or http://opensource.org/licenses/MIT)

Dependencies

~4–16MB
~199K SLoC