Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ description = """
Random number generators and other randomness functionality.
"""
keywords = ["random", "rng"]
categories = ["algorithms"]
categories = ["algorithms", "no_std"]

[badges]
travis-ci = { repository = "rust-lang-nursery/rand" }
appveyor = { repository = "alexcrichton/rand" }

[features]
default = ["std"]
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
Rand
====
# Rand

[![Build Status](https://travis-ci.org/rust-lang-nursery/rand.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-lang-nursery/rand?svg=true)](https://ci.appveyor.com/project/alexcrichton/rand)
[![crates.io](https://img.shields.io/crates/v/rand.svg)](https://crates.io/crates/rand)
[![docs.rs](https://docs.rs/rand/badge.svg)](https://docs.rs/rand)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need two doc links? Well, okay..


A Rust library for random number generators and other randomness functionality.

See also:

* [rand_core](https://crates.io/crates/rand_core)

[![Build Status](https://travis-ci.org/rust-lang-nursery/rand.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/rand)
[![Build status](https://ci.appveyor.com/api/projects/status/rm5c9o33k3jhchbw?svg=true)](https://ci.appveyor.com/project/alexcrichton/rand)

Documentation:
[master branch](https://rust-lang-nursery.github.io/rand/rand/index.html),
[by release](https://docs.rs/rand)
Expand Down
6 changes: 5 additions & 1 deletion rand_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ description = """
Core random number generator traits and tools for implementation.
"""
keywords = ["random", "rng"]
categories = ["algorithms"]
categories = ["algorithms", "no_std"]

[badges]
travis-ci = { repository = "rust-lang-nursery/rand" }
appveyor = { repository = "alexcrichton/rand" }

[features]
# Bug: https://github.com/rust-lang/cargo/issues/4361
Expand Down
27 changes: 18 additions & 9 deletions rand_core/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
rand_core
====
# rand_core

[![Build Status](https://travis-ci.org/rust-lang-nursery/rand.svg)](https://travis-ci.org/rust-lang-nursery/rand)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/rust-lang-nursery/rand?svg=true)](https://ci.appveyor.com/project/alexcrichton/rand)
[![crates.io](https://img.shields.io/crates/v/rand_core.svg)](https://crates.io/crates/rand_core)
[![docs.rs](https://docs.rs/rand_core/badge.svg)](https://docs.rs/rand_core)

Core traits and error types of the [rand] library, plus tools for implementing
RNGs.
Expand All @@ -14,7 +18,11 @@ applications (including sampling from restricted ranges, conversion to floating
point, list permutations and secure initialisation of RNGs). Most users should
prefer to use the main [rand] crate.

[Documentation](https://docs.rs/rand_core)
Documentation:
[master branch](https://rust-lang-nursery.github.io/rand/rand_core/index.html),
[by release](https://docs.rs/rand_core)

[Changelog](CHANGELOG.md)

[rand]: https://crates.io/crates/rand

Expand All @@ -36,14 +44,15 @@ The traits and error types are also available via `rand`.
comprising `RngCore` support for `Box<R>` types where `R: RngCore`, as well as
extensions to the `Error` type's functionality.

Due to a bug in Cargo, `rand_core` is built without `std` support by default.
Since features are unioned across the whole dependency tree, any crate using
`rand` with its default features will also enable `std` support in `rand_core`.
Due to [rust-lang/cargo#1596](https://github.com/rust-lang/cargo/issues/1596),
`rand_core` is built without `std` support by default. Since features are
unioned across the whole dependency tree, any crate using `rand` with its
default features will also enable `std` support in `rand_core`.


# License

`rand` is primarily distributed under the terms of both the MIT
license and the Apache License (Version 2.0).
`rand_core` is distributed under the terms of both the MIT license and the
Apache License (Version 2.0).

See LICENSE-APACHE, and LICENSE-MIT for details.
See [LICENSE-APACHE](LICENSE-APACHE) and [LICENSE-MIT](LICENSE-MIT) for details.