Skip to content

Remove rustc_serialize dependency #452

Closed

Description

@briansmith

#378 adds a new dev_dependency on rustc_serialize, which is deprecated and larger than what we need. Let's replace that dependency with a dependency on a smaller base64-specific crate.

Activity

  1. changed the title [-]Replace rustc_serialize dependency with a dependency on a smaller base64 crate[/-] [+]Remove rustc_serialize dependency[/+] on Feb 7, 2017
  2. briansmith commented on Feb 7, 2017

    @briansmith
    OwnerAuthor

    In the case of the tests added in ring/src/der.rs, it seems like we can just extract the base64 parts of the input files and have the test files use the binary (base64-decoded) encoding, so we won't need a base64 library at all.

  3. marshallpierce commented on Feb 7, 2017

    @marshallpierce
    Contributor

    I just rewrote most of https://github.com/alicemaz/rust-base64 to be as fast as I could make it, so see if that suits you. The encode optimizations are still waiting in a PR, but the decode side is in.

    If it doesn't seem suitable, I'd be curious to know why so I can fix it!

  4. briansmith commented on Feb 7, 2017

    @briansmith
    OwnerAuthor

    just rewrote most of https://github.com/alicemaz/rust-base64 to be as fast as I could make it, so see if that suits you. The encode optimizations are still waiting in a PR, but the decode side is in.

    If it doesn't seem suitable, I'd be curious to know why so I can fix it!

    That seems like the best choice. Not too concerned about the performance since this is a dev-dependency only. More concerned about correctness and testing.

  5. marshallpierce commented on Feb 7, 2017

    @marshallpierce
    Contributor

    I added a lot of testing while I was in there, including various flavors of random input for both decoding and encoding. I'm pretty confident in it, but I'm happy to take feedback on how the tests could be more robust.

  6. marshallpierce commented on Feb 8, 2017

    @marshallpierce
    Contributor

    Should be addressed by 234c327.

  7. briansmith commented on Sep 25, 2017

    @briansmith
    OwnerAuthor

    ring no longer depends on rustc-serialize.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions