fake-file

Crates.iofake-file
lib.rsfake-file
version0.1.0
sourcesrc
created_at2023-02-28 19:35:14.581459
updated_at2023-02-28 19:35:14.581459
descriptionA fake file generator
homepage
repositoryhttps://github.com/banyancomputer/fake-file
max_upload_size
id797453
size52,048
Al Miller (amiller68)

documentation

https://docs.rs/fake-file

README

fake-file Logo

fake-file

:warning: Work in progress :warning:

Outline

Installation

Using cargo

cargo install fake-file

Usage

# Get the help menu
fake-file --help
# Generate a 4 level deep directory structre. Each directory should have 4 files.
# Each end file should add up to 1024 bytes (1 KB) in size.
fake-file -d 4 -w 4 -s 1024 -o .

Testing the Project

  • Run tests

    cargo test
    

Benchmarking the Project

  • Run benchmarks - this sees how long it takes to generate a 1GB file structure

    cargo bench 
    

Formatting

For formatting Rust in particular, please use cargo fmt as it uses specific nightly features we recommend. Make sure you have nightly installed.

Getting Help

For usage questions, usecases, or issues please open an issue in our repository.

We would be happy to try to answer your question or try opening a new issue on Github.

External Resources

These are references to specifications, talks and presentations, etc.

License

This project is licensed under the MIT License, or http://opensource.org/licenses/MIT.

Commit count: 17

cargo fmt