Skip to content

zoryamba/zipson-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zipson-playground

This is my Capstone Project for 2024 Summer RustCamp provided by Ukrainian Rust Community.

serde_zipson is serde-compatible Rust implementation of zipson compression format.

This simple web-playground allows to convert JSON data to zipson and vice versa in realtime. It is built on top of Leptos (WASM-based reactive front-end framework) and Tailwind (utility-first CSS framework)

This playground is available on Github Pages

Prerequisites

  1. Install Rust

  2. Install Trunk

  3. Add wasm target to Rust toolchain:

    rustup target add wasm32-unknown-unknown
    

Build project

trunk build [--dist <path>]

Or run dev server

trunk serve --port <port> [--open]

Known issues

  • initial conversion for some reason takes 40+ ms while consequent conversions take up to 1 ms

serde_zipson known issues

  • serialize_struct/deserialize_struct are not implemented yet, so serde derive doesn't work for structs
  • serialize_enum/deserialize_enum are not implemented yet, so serde derive doesn't work for enums
  • panics on integer overflow
  • object template feature not working yet, so [{"key":"value1"},{"key":"value2"}] ends up in |{¨key¨¨value1¨}{ß0¨value2¨}÷ instead of |¦¨key¨‡¨value1¨¨value2¨—÷

Further improvements

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published