Skip to content

Commit

Permalink
rand_core 0.2.2: a compatibility shim around 0.3
Browse files Browse the repository at this point in the history
This is necessary where multiple dependencies use differing
versions of rand_core but need the same RngCore etc.
  • Loading branch information
dhardy committed Oct 2, 2018
1 parent 7f00a4b commit c89a217
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 368 deletions.
3 changes: 3 additions & 0 deletions rand_core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.2] - 2018-10-03
Create a compatibility shim around 0.3.

## [0.2.1] - 2018-06-08
- References to a `CryptoRng` now also implement `CryptoRng`. (#470)

Expand Down
16 changes: 8 additions & 8 deletions rand_core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "rand_core"
version = "0.2.1" # NB: When modifying, also modify html_root_url in lib.rs
version = "0.2.2" # NB: When modifying, also modify html_root_url in lib.rs
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-lang-nursery/rand"
repository = "https://github.com/rust-random/rand"
documentation = "https://docs.rs/rand_core"
homepage = "https://crates.io/crates/rand_core"
description = """
Expand All @@ -14,15 +14,15 @@ keywords = ["random", "rng"]
categories = ["algorithms", "no-std"]

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

[features]
default = ["std"]
std = ["alloc"] # use std library; should be default but for above bug
alloc = [] # enables Vec and Box support without std
serde1 = ["serde", "serde_derive"] # enables serde for BlockRng wrapper
std = ["rand_core/std"] # use std library; should be default but for above bug
alloc = ["rand_core/alloc"] # enables Vec and Box support without std
serde1 = ["rand_core/serde", "rand_core/serde_derive"] # enables serde for BlockRng wrapper

[dependencies]
rand_core = "0.3"
serde = { version = "1", optional = true }
serde_derive = { version = "^1.0.38", optional = true }
2 changes: 2 additions & 0 deletions rand_core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
Core traits and error types of the [rand] library, plus tools for implementing
RNGs.

This version of `rand_core` is a compatibility shim around version 0.3.

This crate is intended for use when implementing the core trait, `RngCore`; it
defines the core traits to be implemented as well as several small functions to
aid in their implementation and types required for error handling.
Expand Down
Loading

0 comments on commit c89a217

Please sign in to comment.