1. 25 Jan, 2021 1 commit
  2. 22 Jan, 2021 2 commits
  3. 15 Jan, 2021 1 commit
  4. 14 Jan, 2021 1 commit
  5. 12 Jan, 2021 1 commit
  6. 06 Jan, 2021 1 commit
  7. 04 Jan, 2021 1 commit
  8. 12 Nov, 2020 1 commit
  9. 16 Oct, 2020 3 commits
  10. 08 Oct, 2020 1 commit
  11. 06 Oct, 2020 2 commits
  12. 25 Sep, 2020 1 commit
  13. 10 Sep, 2020 1 commit
  14. 07 Jul, 2020 1 commit
  15. 19 Jun, 2020 1 commit
  16. 03 Jun, 2020 2 commits
  17. 30 May, 2020 1 commit
    • Aaron Hill's avatar
      Use proper span when emitting 'self' identifier (#210) · 353db2cf
      Aaron Hill authored
      Normally, the span of a field has the same hygiene context as
      `Span::call_site`. However, it's possible for a struct definition
      to be 'constructed' via a `macro_rules` macro such that the field
      has a different hygiene context. This will cause the expanded code
      to be unable to resolve any references to `self`, resulting in a
      compilation error.
      
      This pull request uses `quote!` instead of `quote_spanned!` when
      emitting a 'self' identifier. `quote_spanned!` is still used for
      everything else in the emitted method, meaning that error messages
      will still point to the proper field.
      
      I've included a test case which triggers this issue on
      Rust 1.43.1. It's current difficult to hit this issue
      other than in this artificial case, but that will change
      once rust-lang/rust#72622 is re-landed.
      353db2cf
  18. 12 May, 2020 1 commit
  19. 19 Apr, 2020 1 commit
    • pscott's avatar
      Extend Fuzzer with Encoding (#191) · 18b49a87
      pscott authored
      
      
      * Verify bytes after encoding an object that was decoded from original bytes
      
      * Add BinaryHeapWrapper to allow PartialEq trait impl
      
      * Add Arbitrary crate and derives
      
      * Add prototype for encoding testing
      
      * Add partial encode fuzz testing
      
      * Derive arbitrary to compact
      
      * Add types for encode fuzzing
      
      * Simplify macro
      
      * Remove BitVec from Encoding macro
      
      * Add comments about sorting
      
      * Add comment for BinaryHeapWrapper
      
      * Update bytes sorting and move type display to the end
      
      * Make raw1 immutable
      
      * Hide arbitrary crate behind feature 'fuzz'
      
      * Indent macro
      
      * Impl Arbitrary for BitVecWrapper
      
      * Differentiate flows depending on fuzzing input
      
      * Update comments and add TODO
      
      * Change minimal to only_decode
      
      * Use more straightforward code for defining eq trait
      
      Co-Authored-By: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * Put comments before derive
      
      Co-Authored-By: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * Put comments before derive
      
      Co-Authored-By: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * Use match in macros; Remove comments on into_iter_sorted and fix compile for paritaleq trait
      
      * Use match in fuzz_encode
      
      * Fix typo in comments
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      
      * Remove useless mut
      
      Co-authored-by: default avatarBastian Köcher <bkchr@users.noreply.github.com>
      18b49a87
  20. 08 Apr, 2020 1 commit
  21. 07 Apr, 2020 1 commit
  22. 06 Apr, 2020 1 commit
  23. 02 Apr, 2020 1 commit
  24. 28 Mar, 2020 1 commit
  25. 18 Mar, 2020 1 commit
    • pscott's avatar
      Handle invalid utf8 sequence (#189) · 70ae5262
      pscott authored
      * Change from_utf8_lossy to from_utf8 to avoid replacement characters
      
      * Compact code to make it clearer
      
      * Add invalid utf8 string decode
      
      * Fix code for no-std
      70ae5262
  26. 10 Mar, 2020 1 commit
  27. 05 Mar, 2020 1 commit
  28. 03 Mar, 2020 3 commits
  29. 02 Mar, 2020 1 commit
  30. 27 Feb, 2020 1 commit
  31. 23 Feb, 2020 1 commit
    • Bastian Köcher's avatar
      Performance improvements (#180) · 99a77af9
      Bastian Köcher authored
      * Extend the benchmarks
      
      * Optimize encoding/decoding of primitive type vectors
      
      * Adds a benchmark for a complex type
      
      * Optimize `u8` and `i8`
      
      * Implement some more `size_hint` and improve array `encode_to`
      
      * Fix the range...
      99a77af9
  32. 06 Jan, 2020 1 commit
  33. 05 Jan, 2020 1 commit