zsplit
Split text into multiple files by line.
This is the library and not the CLI application. It is called zsplit-cli
.
Examples
Simple
use *;
let data = "0\n1\n2\n3\n4\n5\n6\n7\n8\n9";
let mut source = new;
let mut destinations = vec!;
split_round_robin.unwrap;
let third_destination = destinations.pop.unwrap;
let second_destination = destinations.pop.unwrap;
let first_destination = destinations.pop.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
Unsymmetric Distribution
use *;
let data = "0\n1\n2\n3\n4\n5\n6\n7\n8\n9";
let mut source = new;
let mut destinations = vec!;
split_round_robin.unwrap;
let third_destination = destinations.pop.unwrap;
let second_destination = destinations.pop.unwrap;
let first_destination = destinations.pop.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
CREV - Rust code reviews - Raise awareness
Please, spread this info !
Open source code needs a community effort to express trustworthiness.
Start with reading the reviews of the crates you use. Example: web.crev.dev/rust-reviews/crate/num-traits/
Than install the CLI cargo-crev. Read the Getting Started guide.
On your Rust project, verify the trustworthiness of all dependencies, including transient dependencies with cargo crev verify
Write a new review !
Describe the crates you trust. Or warn about the crate versions you think are dangerous.
Help other developers, inform them and share your opinion.
Use the helper on this webpage: web.crev.dev/rust-reviews/review_new