| Crates.io | dfgpreol |
| lib.rs | dfgpreol |
| version | 0.1.1 |
| created_at | 2025-11-30 00:05:08.05946+00 |
| updated_at | 2025-11-30 00:11:34.181579+00 |
| description | Terminal development console for rapid Rust script scaffolding, execution, and benchmarking. |
| homepage | https://github.com/yourname/dfgpreol |
| repository | https://github.com/yourname/dfgpreol |
| max_upload_size | |
| id | 1957663 |
| size | 65,716 |
dfgpreol is a terminal development console for rapid Rust scripting.
It helps you quickly scaffold, run, test, and benchmark small Rust scripts in a Cargo
project without having to set up a full crate for each one. Scripts are
stored under the project’s src/bin directory and are treated as
independent binaries.
basic – minimal CLI that accepts an optional --input argument.cli – reserved for future richer CLI features (currently identical to
basic).tokio – asynchronous template using #[tokio::main] for async code.axum – simple HTTP server template using the axum framework.bench – skeleton for a benchmark; measures elapsed time.cargo fmt, cargo check, cargo clippy, and
optionally cargo test in sequence.src/bin with arbitrary arguments.Once published, install the latest stable release via:
cargo install dfgpreol
Clone the repository and install locally:
git clone https://github.com/JROChub/dfgpreol
cd dfgpreol
cargo install --path .
Run dfgpreol --help to see all available commands and options. Below are
common workflows.
dfgpreol new-script hello # uses the default 'basic' template
dfgpreol new-script fetcher --template tokio
dfgpreol new-script server --template axum
Each command creates src/bin/<name>.rs. Templates inject the script name
and provide a ready‑to‑run scaffold.
dfgpreol list
This prints the names of all .rs files in src/bin (without extensions).
dfgpreol run hello -- --input "Hello, world!"
dfgpreol run server -- # for server scripts
Arguments after -- are forwarded to the script itself.
dfgpreol doctor
dfgpreol doctor --with-tests
Use this to quickly verify that your project is well formatted and free of
obvious warnings. The optional --with-tests flag runs your test suite at
the end of the pipeline.
dfgpreol test # run all tests
dfgpreol test integration # filter tests by name
dfgpreol perf hello
dfgpreol perf fetcher --runs 10 -- --input "data"
The perf command times each invocation and prints a summary of the run
statistics when complete.
dfgpreol remove-script hello # prompts for confirmation
dfgpreol remove-script hello --force # deletes immediately
This project is licensed under the terms of the MIT License. See the LICENSE file for details.