File tree 2 files changed +5
-30
lines changed
2 files changed +5
-30
lines changed Original file line number Diff line number Diff line change @@ -108,34 +108,6 @@ cargo bench
108
108
cargo test --benches
109
109
```
110
110
111
- # ` derive(Rand) `
112
-
113
- You can derive the ` Rand ` trait for your custom type via the ` #[derive(Rand)] `
114
- directive. To use this first add this to your Cargo.toml:
115
-
116
- ``` toml
117
- rand = " 0.4"
118
- rand_derive = " 0.3"
119
- ```
120
-
121
- Next in your crate:
122
-
123
- ``` rust
124
- extern crate rand;
125
- #[macro_use]
126
- extern crate rand_derive;
127
-
128
- #[derive(Rand , Debug )]
129
- struct MyStruct {
130
- a : i32 ,
131
- b : u32 ,
132
- }
133
-
134
- fn main () {
135
- println! (" {:?}" , rand :: random :: <MyStruct >());
136
- }
137
- ```
138
-
139
111
140
112
# License
141
113
Original file line number Diff line number Diff line change 1
-
2
- rand_macros
1
+ rand_derive
3
2
====
4
3
5
4
` #[derive(Rand)] ` functionality for the ` rand::Rand ` trait.
6
5
6
+ ** This module is deprecated as of rand 0.5** , due in part to breaking changes
7
+ in rand and in part to lack of use. Code is preserved because in theory it
8
+ should be straightforward to modify for use with rand's new distribution code.
9
+
7
10
## Usage
8
11
Add this to your ` Cargo.toml ` :
9
12
You can’t perform that action at this time.
0 commit comments