#stdlib #std #renamed #std-prelude

deprecated prelude

RENAMED TO "std_prelude": prelude that the rust stdlib should have always had

3 unstable releases

Uses old Rust 2015

0.2.1 Nov 28, 2017
0.2.0 Aug 7, 2017
0.1.0 Jan 24, 2017

#36 in #stdlib

Download history 20/week @ 2024-04-07 11/week @ 2024-04-14 25/week @ 2024-04-21 23/week @ 2024-04-28 24/week @ 2024-05-05 19/week @ 2024-05-12 25/week @ 2024-05-19 14/week @ 2024-05-26 49/week @ 2024-06-02 29/week @ 2024-06-09 53/week @ 2024-06-16 20/week @ 2024-06-23 20/week @ 2024-06-30 26/week @ 2024-07-07 24/week @ 2024-07-14 21/week @ 2024-07-21

92 downloads per month
Used in template-builder

MIT license

7KB

extended stdlib prelude

To use, add to your Crates.io and write

extern crate prelude;
use prelude::*;

// you now have access to HashMap, io::Write, str::FromStr, etc.

For a full list of the items that are imported, see lib.rs

This library is to add several "often used" traits, structs and methods that (in the opinionated version of this author) should have been included in the stdlib all along. The author of this crate wants the rust community itself to decide which items should be included here. If this crate becomes useful enough, it is the intention of this author to give ownership of this crate to the rustlang-nursery or a similiar originization.

This library is at the very early stages of development, so stability is not yet guaranteed. What I mostly want is feedback. Am I missing items that should "almost always" be imported? Are there ones that shouldn't be there? Should I be including modules like io, fmt, etc as part of the prelude?

If you think any of these things are true, please open an issue!

Guarantees

I offer the following guarantees for this lib

  • Once at v1.0 (fairly soon) all new versions of prelude will increment the MAJOR version (1.0.0 -> 2.0.0) since the changes will probably cause compiler breakages (things people imported won't need to be imported anymore)

No runtime deps