]> git.lizzy.rs Git - rust.git/commit
std: Move rand to librand.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sun, 2 Mar 2014 00:23:04 +0000 (11:23 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Wed, 12 Mar 2014 00:31:05 +0000 (11:31 +1100)
commit6fa4bbeed425ae99d15322fbaa05d1abeae6547f
tree17f9edde3db9c624e476ac2f6c585792ddb1890b
parent74bfa7108a62c053fdeae2bb093f8035e19e2ef2
std: Move rand to librand.

This functionality is not super-core and so doesn't need to be included
in std. It's possible that std may need rand (it does a little bit now,
for io::test) in which case the functionality required could be moved to
a secret hidden module and reexposed by librand.

Unfortunately, using #[deprecated] here is hard: there's too much to
mock to make it feasible, since we have to ensure that programs still
typecheck to reach the linting phase.
30 files changed:
mk/crates.mk
src/etc/ziggurat_tables.py
src/librand/distributions/exponential.rs [new file with mode: 0644]
src/librand/distributions/gamma.rs [new file with mode: 0644]
src/librand/distributions/mod.rs [new file with mode: 0644]
src/librand/distributions/normal.rs [new file with mode: 0644]
src/librand/distributions/range.rs [new file with mode: 0644]
src/librand/distributions/ziggurat_tables.rs [new file with mode: 0644]
src/librand/isaac.rs [new file with mode: 0644]
src/librand/lib.rs [new file with mode: 0644]
src/librand/os.rs [new file with mode: 0644]
src/librand/rand_impls.rs [new file with mode: 0644]
src/librand/reader.rs [new file with mode: 0644]
src/librand/reseeding.rs [new file with mode: 0644]
src/libstd/lib.rs
src/libstd/rand/distributions/exponential.rs [deleted file]
src/libstd/rand/distributions/gamma.rs [deleted file]
src/libstd/rand/distributions/mod.rs [deleted file]
src/libstd/rand/distributions/normal.rs [deleted file]
src/libstd/rand/distributions/range.rs [deleted file]
src/libstd/rand/distributions/ziggurat_tables.rs [deleted file]
src/libstd/rand/isaac.rs [deleted file]
src/libstd/rand/mod.rs [deleted file]
src/libstd/rand/os.rs [deleted file]
src/libstd/rand/rand_impls.rs [deleted file]
src/libstd/rand/reader.rs [deleted file]
src/libstd/rand/reseeding.rs [deleted file]
src/libsyntax/ext/deriving/rand.rs
src/rt/rust_builtin.c
src/test/compile-fail/task-rng-isnt-sendable.rs