Crates.io | std_prelude |
lib.rs | std_prelude |
version | 0.2.12 |
source | src |
created_at | 2017-11-28 16:56:21.553676 |
updated_at | 2018-02-08 18:59:10.254202 |
description | prelude that the rust stdlib should have always had |
homepage | |
repository | https://github.com/vitiral/std_prelude |
max_upload_size | |
id | 40864 |
size | 11,738 |
To use, add to your Crates.io and write
extern crate std_prelude;
use std_prelude::*;
// you now have access to HashMap, io::Write, str::FromStr, etc.
For a full list of the items that are imported, see the crate documentation
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. It is incredubly annoying to call (for instance)
Vec::from_iter
only to find you need to import a pretty standard trait into
scope (FromIterator
). This crate hopes to reduce the pain of this papercut.
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!
I offer the following guarantees for this lib