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

Handle more SCALE attributes: skip, index #44

Merged
merged 36 commits into from
Mar 30, 2021
Merged

Commits on Dec 7, 2020

  1. Parameterize CompactForm String for optional SCALE impl

    By default, parity-scale-codec does not provide Encode/Decode impls for an owned String.
    This is only provided under the "full" feature which is not used by the substrate runtime,
    because it should not be used for consensus critical code. So in order for the CompactForm
    to be integrated into the substrate runtime, or wherever the "full" feature cannot be used,
    then we must parameterize the `String` type so that it can be both an `&'static str` on the
    runtime side where it is encoded, and a `String` in client/consuming code where it is decoded.
    ascjones committed Dec 7, 2020
    Configuration menu
    Copy the full SHA
    37c0a57 View commit details
    Browse the repository at this point in the history

Commits on Dec 14, 2020

  1. Configuration menu
    Copy the full SHA
    643f09d View commit details
    Browse the repository at this point in the history
  2. Fix no-std compilation

    dvdplm committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    9a7ccbf View commit details
    Browse the repository at this point in the history
  3. Obey the fmt

    dvdplm committed Dec 14, 2020
    Configuration menu
    Copy the full SHA
    254fee1 View commit details
    Browse the repository at this point in the history

Commits on Dec 16, 2020

  1. Configuration menu
    Copy the full SHA
    e74e4f9 View commit details
    Browse the repository at this point in the history
  2. Rename "Compact" to "Frozen" (and associated fallout)

    Add a `compact` member to `Field` to indicate it is `scale_codec::Compact`
    dvdplm committed Dec 16, 2020
    Configuration menu
    Copy the full SHA
    7860c79 View commit details
    Browse the repository at this point in the history

Commits on Dec 17, 2020

  1. Docs cleanup and more renames

    dvdplm committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    579f958 View commit details
    Browse the repository at this point in the history
  2. Cleanup

    dvdplm committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    8333e5a View commit details
    Browse the repository at this point in the history
  3. More cleanup

    dvdplm committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    2818f7b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7706a38 View commit details
    Browse the repository at this point in the history
  5. obey the fmt

    dvdplm committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    e03a2cd View commit details
    Browse the repository at this point in the history
  6. Add a compact flag to Field to indicate that this type is to be e…

    …ncoded/decoded as a SCALE Compact type
    dvdplm committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    3a95663 View commit details
    Browse the repository at this point in the history
  7. Clippy warnings

    dvdplm committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    004e107 View commit details
    Browse the repository at this point in the history
  8. Acommodate older clippy

    dvdplm committed Dec 17, 2020
    Configuration menu
    Copy the full SHA
    93a9aeb View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2020

  1. Derive (scale) compact fields

    dvdplm committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    6569e50 View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2021

  1. Configuration menu
    Copy the full SHA
    f098101 View commit details
    Browse the repository at this point in the history
  2. Use utils from parity-scale-codec-derive

    Handle `codec(skip)` and `codec(index = $int)` attributes
    dvdplm committed Jan 4, 2021
    Configuration menu
    Copy the full SHA
    b43cdfc View commit details
    Browse the repository at this point in the history

Commits on Jan 5, 2021

  1. Configuration menu
    Copy the full SHA
    eda2769 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6321da9 View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2021

  1. Configuration menu
    Copy the full SHA
    1d32a38 View commit details
    Browse the repository at this point in the history
  2. fmt

    dvdplm committed Jan 19, 2021
    Configuration menu
    Copy the full SHA
    d1700b2 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

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

Commits on Feb 18, 2021

  1. Attempt to fix CI

    dvdplm committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    d29c9be View commit details
    Browse the repository at this point in the history
  2. FIx CI take 2

    dvdplm committed Feb 18, 2021
    Configuration menu
    Copy the full SHA
    0426479 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2021

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

Commits on Mar 17, 2021

  1. Configuration menu
    Copy the full SHA
    81e3519 View commit details
    Browse the repository at this point in the history
  2. Use is_compact from utils

    Ensure we're working with an outer attribute
    dvdplm committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    e8d2a74 View commit details
    Browse the repository at this point in the history
  3. Fn is enough

    dvdplm committed Mar 17, 2021
    Configuration menu
    Copy the full SHA
    d9239c5 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2021

  1. Doc tweaks

    dvdplm committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    98292c5 View commit details
    Browse the repository at this point in the history
  2. Add tests for enums

    dvdplm committed Mar 18, 2021
    Configuration menu
    Copy the full SHA
    71d7e11 View commit details
    Browse the repository at this point in the history

Commits on Mar 22, 2021

  1. Add test for indexed enum

    dvdplm committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    00aee2f View commit details
    Browse the repository at this point in the history
  2. Oops

    dvdplm committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    a31acc5 View commit details
    Browse the repository at this point in the history

Commits on Mar 23, 2021

  1. Update derive/src/utils.rs

    Co-authored-by: Andrew Jones <[email protected]>
    dvdplm and ascjones authored Mar 23, 2021
    Configuration menu
    Copy the full SHA
    e70425f View commit details
    Browse the repository at this point in the history
  2. Review feedback

      Better error message
      Remove redundant tests
      Test more enum cases to document index/discriminant interaction
    dvdplm committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    abdb081 View commit details
    Browse the repository at this point in the history
  3. fmt

    dvdplm committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    c53eb38 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2021

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