rust/src
Alex Crichton 6bc8f164b0 std: Remove rand crate and module
This commit removes the `rand` crate from the standard library facade as
well as the `__rand` module in the standard library. Neither of these
were used in any meaningful way in the standard library itself. The only
need for randomness in libstd is to initialize the thread-local keys of
a `HashMap`, and that unconditionally used `OsRng` defined in the
standard library anyway.

The cruft of the `rand` crate and the extra `rand` support in the
standard library makes libstd slightly more difficult to port to new
platforms, namely WebAssembly which doesn't have any randomness at all
(without interfacing with JS). The purpose of this commit is to clarify
and streamline randomness in libstd, focusing on how it's only required
in one location, hashmap seeds.

Note that the `rand` crate out of tree has almost always been a drop-in
replacement for the `rand` crate in-tree, so any usage (accidental or
purposeful) of the crate in-tree should switch to the `rand` crate on
crates.io. This then also has the further benefit of avoiding
duplication (mostly) between the two crates!
2017-11-08 20:41:17 -08:00
..
bootstrap std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
build_helper
ci Fix broken link in build-powerpc64le-toolchain.sh 2017-11-03 15:53:36 +08:00
doc std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
etc
grammar
jemalloc@1f5a28755e
liballoc std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
liballoc_jemalloc rustc: Handle some libstd symbole exports better 2017-11-04 20:01:11 -07:00
liballoc_system
libarena
libbacktrace Disable mmap in libbacktrace on Apple platforms 2017-11-08 02:28:17 -08:00
libcompiler_builtins@0b9844764e
libcore std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
libfmt_macros
libgetopts
libgraphviz
liblibc@68f9959e53 Bump libc to 0.2.33 2017-10-31 11:25:39 -02:00
libpanic_abort
libpanic_unwind
libproc_macro
libprofiler_builtins
librustc Auto merge of - michaelwoerister:check-ich-stability, r=nikomatsakis 2017-11-08 22:27:06 +00:00
librustc_allocator rustc: Handle some libstd symbole exports better 2017-11-04 20:01:11 -07:00
librustc_apfloat Make trans const eval error on overflow and NaN, matching HIR const eval. 2017-11-07 20:13:19 +01:00
librustc_asan
librustc_back std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
librustc_borrowck Make the difference between lint codes and error codes explicit 2017-11-02 10:19:41 +01:00
librustc_const_eval Implemented RFC 2008 for enums (not including variants) and structs. 2017-11-03 19:36:18 +00:00
librustc_const_math Extract (f32::MAX + 0.5 ULP) constant 2017-11-07 20:13:19 +01:00
librustc_cratesio_shim
librustc_data_structures Auto merge of - nikomatsakis:nll-free-region, r=arielb1 2017-11-06 23:30:57 +00:00
librustc_driver Auto merge of - Amanieu:tls-model, r=alexcrichton 2017-11-07 14:24:15 +00:00
librustc_errors Auto merge of - tirr-c:unicode-span, r=estebank 2017-11-04 23:09:19 +00:00
librustc_incremental std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
librustc_lint Auto merge of - leodasvacas:implement-auto-trait-syntax, r=nikomatsakis 2017-11-03 19:07:45 +00:00
librustc_llvm Make trans const eval error on overflow and NaN, matching HIR const eval. 2017-11-07 20:13:19 +01:00
librustc_lsan
librustc_metadata incr.comp.: Provide session to some more decoding contexts. 2017-11-08 14:52:00 +01:00
librustc_mir Auto merge of - nikomatsakis:nll-free-region, r=arielb1 2017-11-06 23:30:57 +00:00
librustc_msan
librustc_passes Auto merge of - nikomatsakis:nll-free-region, r=arielb1 2017-11-06 23:30:57 +00:00
librustc_platform_intrinsics
librustc_plugin
librustc_privacy Auto merge of - davidtwco:rfc-2008, r=petrochenkov 2017-11-04 18:07:07 +00:00
librustc_resolve Auto merge of - estebank:colon-typo, r=nikomatsakis 2017-11-08 20:00:41 +00:00
librustc_save_analysis save-analysis: fix bugs in method chains 2017-11-06 15:52:42 +13:00
librustc_trans Auto merge of - michaelwoerister:check-ich-stability, r=nikomatsakis 2017-11-08 22:27:06 +00:00
librustc_trans_utils Always treat #[rustc_std_internal_symbol]s as root TransItems. 2017-11-07 16:41:42 +01:00
librustc_tsan
librustc_typeck Forbid casting to/from a pointer of unknown kind 2017-11-07 01:45:57 +09:00
librustdoc Rollup merge of - GuillaumeGomez:more-shortcut, r=QuietMisdreavus 2017-11-08 10:09:18 +01:00
libserialize
libstd std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
libstd_unicode Mark several ascii methods as unstable again 2017-11-03 21:28:04 +01:00
libsyntax Auto merge of - estebank:colon-typo, r=nikomatsakis 2017-11-08 20:00:41 +00:00
libsyntax_ext
libsyntax_pos Auto merge of - nzig:explain-span-ctxt, r=petrochenkov 2017-11-06 05:16:15 +00:00
libterm
libtest
libunwind
llvm@83b72cedfd
rt
rtstartup auto trait future compatibility lint 2017-11-03 16:13:21 -02:00
rustc
rustllvm Make trans const eval error on overflow and NaN, matching HIR const eval. 2017-11-07 20:13:19 +01:00
test std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
tools Auto merge of - michaelwoerister:check-ich-stability, r=nikomatsakis 2017-11-08 22:27:06 +00:00
Cargo.lock std: Remove rand crate and module 2017-11-08 20:41:17 -08:00
Cargo.toml
stage0.txt