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

Add a Bytes type for more efficient byte sequences #277

Merged
merged 4 commits into from
Mar 12, 2021
Merged

Add a Bytes type for more efficient byte sequences #277

merged 4 commits into from
Mar 12, 2021

Commits on Mar 12, 2021

  1. Add a Bytes type for more efficient byte sequences

    The `Bytes` type is heavily inspired by `serde_bytes` and ports it to the
    serde_as system.
    
    ```rust
    value: Vec<u8>,
    ```
    
    Compared to `serde_bytes` these improvements are available
    
    1. Integration with the `serde_as` annotation.
        /cc serde-rs/bytes#14
    2. Implementation for arrays of arbitrary size (Rust 1.51+).
        /cc serde-rs/bytes#26
    jonasbb committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    5c2338b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    23ae9f8 View commit details
    Browse the repository at this point in the history
  3. Fix Bytes doctest

    jonasbb committed Mar 12, 2021
    Configuration menu
    Copy the full SHA
    be1f2d3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    1b9c5a6 View commit details
    Browse the repository at this point in the history