Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add Rust lazy reader #77

Merged
merged 15 commits into from
Apr 3, 2024

Commits on Jan 31, 2024

  1. feat: Add Rust lazy reader

    port Rust version from original repo: https://github.com/XuJiandong/moleculec-c2
    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    597bd66 View commit details
    Browse the repository at this point in the history
  2. Fix tempfile version

    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    92b9e78 View commit details
    Browse the repository at this point in the history
  3. Add lazy-reader-tests

    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    7f919d4 View commit details
    Browse the repository at this point in the history
  4. Add lazy reader tests

    Including fuzzing tests
    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    929d7fa View commit details
    Browse the repository at this point in the history
  5. Update fuzzing test

    add corpus
    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    53fea36 View commit details
    Browse the repository at this point in the history
  6. Use build.rs to generate code

    Use quote instead of printing code in generator
    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    645ae10 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fcef512 View commit details
    Browse the repository at this point in the history
  8. Fixes to reviews

    * Support iterator
    * Change read_at as method
    * sub_size returns Result
    * Check alignment on get_item_count
    * Snake names
    * Some typos
    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    1415c18 View commit details
    Browse the repository at this point in the history
  9. Update based on reviews

    * Add verify methods
    * Add iterator test cases
    * Make lazy_reader.rs panic free
    * Add impl_cursor_primitive
    * Format error strings
    XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    f51a30d View commit details
    Browse the repository at this point in the history
  10. Verify fields recursively

    Add test cases
    joii2020 authored and XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    3406d30 View commit details
    Browse the repository at this point in the history
  11. Support custom union id (#3)

    * support custom unicode id
    * Array get item return Vec<u8>
    * union uses Enum
    joii2020 authored and XuJiandong committed Jan 31, 2024
    Configuration menu
    Copy the full SHA
    7ac63f2 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Configuration menu
    Copy the full SHA
    4f04bf8 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. Add more imports (#8)

    Fix typo
    XuJiandong authored Mar 19, 2024
    Configuration menu
    Copy the full SHA
    f72267f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    032eecc View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Refactor error codes and other improvements (#10)

    * Refactor errors
    Remove strings because it takes more space in contracts.
    * Check read_len == 0 on lazy_reader.rs: read_at
    * Add test case for zero byte union
    * Add clone
    * fix length on read
    * add slice_by_start
    
    ---------
    
    Co-authored-by: joii2020 <87224197+joii2020@users.noreply.github.com>
    XuJiandong and joii2020 authored Mar 20, 2024
    Configuration menu
    Copy the full SHA
    785a309 View commit details
    Browse the repository at this point in the history