You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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.
changed the title [-]Replace rustc_serialize dependency with a dependency on a smaller base64 crate[/-][+]Remove rustc_serialize dependency[/+]on Feb 7, 2017
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.
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.
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.
Activity
[-]Replace rustc_serialize dependency with a dependency on a smaller base64 crate[/-][+]Remove rustc_serialize dependency[/+]briansmith commentedon Feb 7, 2017
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.
marshallpierce commentedon Feb 7, 2017
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!
briansmith commentedon Feb 7, 2017
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.
marshallpierce commentedon Feb 7, 2017
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.
marshallpierce commentedon Feb 8, 2017
Should be addressed by 234c327.
briansmith commentedon Sep 25, 2017
ring no longer depends on rustc-serialize.