Debian Codegraph @

README.md

raw symbols SCIP
1 # extended stdlib prelude
2 To use, add to your Crates.io and write
3 ```
4 extern crate std_prelude;
5 use std_prelude::*;
6
7 // you now have access to HashMap, io::Write, str::FromStr, etc.
8 ```
9
10 For a full list of the items that are imported, see
11 [the crate documentation][1]
12
13 This library is to add several "often used" traits, structs and methods that
14 (in the opinionated version of this author) should have been included in the
15 stdlib all along. It is incredubly annoying to call (for instance)
16 `Vec::from_iter` only to find you need to import a pretty standard trait into
17 scope (`FromIterator`). This crate hopes to reduce the pain of this papercut.
18
19 The author of this crate wants the rust community itself to decide which items
20 should be included here. If this crate becomes useful enough, it is the
21 intention of this author to give ownership of this crate to the
22 rustlang-nursery or a similiar originization.
23
24 This library is at the very early stages of development, so stability
25 is not yet guaranteed. What I mostly want is feedback. Am I missing
26 items that should "almost always" be imported? Are there ones that
27 shouldn't be there? Should I be including modules like `io`, `fmt`,
28 etc as part of the prelude?
29
30 If you think any of these things are true, please open an issue!
31
32 ## Guarantees
33 I offer the following guarantees for this lib
34
35 - Once at v1.0 (fairly soon) all new versions of std_prelude will increment the
36 MAJOR version (1.0.0 -> 2.0.0) since the changes will probably cause
37 compiler breakages (things people imported won't need to be imported
38 anymore)
39
40 [1]: https://docs.rs/std_prelude/0.2.2/std_prelude/