[rand] Expose rand_core, rand_os, and rand_xorshift crates to fuchsia

The following libraries use just a subset of the rand library:

* garnet/bin/mediasession uses `rand::random`
* garnet/bin/recovery_netstack uses `rand::{SeedableRng,XorShiftRng}`
* wlan-rsn uses `rand::OsRng`

In order to make this code easier to audit, we can swap these uses
with `rand_core`, `rand_os`, and `rand_xorshift`.

Change-Id: Ic0f74884b2cb1dbb791c6467007c05a3c76c830f
2 files changed
tree: f70be27f28db9383e610d5f8c40387536da29f4e
  1. AUTHORS
  2. CONTRIBUTING.md
  3. LICENSE
  4. README.md
  5. rustc_deps/
README.md

Fuchsia Rust package (crates.io) mirror Repository

Quickstart

After modifying Cargo.toml, Run fx update-rustc-third-party

macOS

You will need a modern OpenSSL and to export either PKG_CONFIG_PATH or CFLAGS and LDFLAGS in order for cargo to find it, before running fx update-rustc-third-party.

You can install using brew install openssl and observe brew info openssl for the above exports. It is recommended you only export these as-needed, not permanently, to avoid causing incompatibilities with other software.

Description

This repository contains vendored copies of third party code used in Fuchsia.

Further documentation is available here:

https://fuchsia.googlesource.com/docs/+/master/development/languages/rust/third_party.md