/billion-csv-rs

billion-csv-rs is a Rust project designed to generate a CSV file with one billion records. Each record contains randomly generated data including name, age, birth date, height, weight, and gender.

Primary LanguageRust

Billion CSV

billion-csv-rs is a Rust project designed to generate a CSV file with one billion records. Each record contains randomly generated data including name, age, birth date, height, weight, and gender.

Table of Contents

Installation

To build and run this project, you need to have Rust installed on your machine. Clone the repository and navigate to the project directory:

git clone https://github.com/gabrielalmir/billion-csv-rs.git
cd billion-csv

Usage

To generate the CSV file, run the following command:

cargo run

This will create a file named data.csv in the project directory with one billion records.

Dependencies

The project relies on several crates, as specified in Cargo.toml:

  • chrono for date and time handling
  • csv for CSV file writing
  • fake for generating random data
  • rand for random number generation