Skip to content

Remove lazy_static dependency #706

@briansmith

Description

@briansmith

Originally we used lazy_static in ring::rand because static didn't work for types that implement Drop, as File does. That restriction was removed in rust-lang/rust#44456. I believe it should now be possible to get the same effects using just std::sync::Once.

I see there are some (potential) problems with lazy_static! such as rust-lang-nursery/lazy-static.rs#116 and rust-lang-nursery/lazy-static.rs#117 and rust-lang-nursery/lazy-static.rs#125.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions