mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
16 lines
238 B
Rust
16 lines
238 B
Rust
#![feature(core)]
|
|
|
|
use rand::random;
|
|
|
|
extern crate bytes;
|
|
extern crate rand;
|
|
|
|
mod test_byte_buf;
|
|
mod test_rope;
|
|
mod test_seq_byte_str;
|
|
mod test_small_byte_str;
|
|
|
|
fn gen_bytes(n: usize) -> Vec<u8> {
|
|
(0..n).map(|_| random()).collect()
|
|
}
|