Drop rand from required dependencies

The rand crate pulls in a lot of dependencies which many users of
lalrpop probably wouldn't otherwise require. It is enough to require it
to run the tests, which means using lalrpop doesn't require this
anymore.

This will come to full fruition eventually when a new lalrpop snapshot
is created, until then rand will still be pulled in.
This commit is contained in:
Sebastian Hahn 2015-10-30 08:27:41 +01:00
parent 2729ee1042
commit a8155ad01c
2 changed files with 6 additions and 2 deletions

View File

@ -15,12 +15,14 @@ doctest = false
[dependencies]
regex = "0.1"
diff = "0.1"
rand = "0.3"
itertools = "0.3"
term = "0.2"
unicode-xid = "0.0.2"
petgraph = "0.1.11"
[dev-dependencies]
rand = "0.3"
[dependencies.lalrpop-util]
path = "../lalrpop-util"
version = "0.8.0" # LALRPOP

View File

@ -12,12 +12,14 @@ extern crate diff;
extern crate lalrpop_intern as intern;
extern crate lalrpop_util;
extern crate petgraph;
extern crate rand;
extern crate regex;
extern crate term;
extern crate itertools;
extern crate unicode_xid;
#[cfg(test)]
extern crate rand;
// rust exports a macro that others use, so hoist it early.
#[macro_use]
mod rust;