[rust-dev] Moving libcrypto back into rust repo?

Patrick Walton pcwalton at mozilla.com
Wed Jan 29 14:35:21 PST 2014


On 1/29/14 1:12 PM, Daniel Micay wrote:
> On Wed, Jan 29, 2014 at 3:59 PM, Tony Arcieri <bascule at gmail.com> wrote:
>> On Wednesday, January 29, 2014, Olivier LEMAIRE <olivier.lemaire at me.com>
>> wrote:
>>>
>>> I suggest to submit a call/request (Rust wiki?) to find this team
>>> member/role as crypto is damn needed in this digital age.
>>
>>
>> I'd suggest Rust continue its current policy of keeping crypto out of
>> stdlib.
>>
>> However, it'd be nice if there were an official "blessed" crypto package
>> (using TBD packaging system). I think this library should/needs to be
>> shipped with said TDB packaging system.
>>
>> Perhaps Mozilla could loop in its NSS people on rust-nss?
>
> I don't think it's possible to make a nice NSS binding because it
> depends on thread-local initialization. Green tasks may move between
> threads so a context object is necessary. Other libraries don't have
> this problem and a nicer interface can be exposed.

What's wrong with a context object? Rust supports OO method dispatch 
syntax, so context objects look and feel quite idiomatic.

Patrick



More information about the Rust-dev mailing list