AI prompts
base on Take a break while compiling. # Coffee break
[<img alt="crates.io badge" src="https://img.shields.io/crates/v/coffee_break.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](https://crates.io/crates/coffee_break)
[<img alt="docs.rs badge" src="https://img.shields.io/badge/docs.rs-coffee_break-66c2a5?style=for-the-badge&labelColor=555555&logo=docs.rs" height="20">](https://docs.rs/coffee_break)
![Coffee break](./CoffeeBreak.svg)
Coffee break is a 🔥 blazing 🚀 fast 🦀 Rust 🥵 library, by Rust developers for Rust developers. It is:
- **Developer-friendly**: Lets you take a break while compiling your code.
- **Eco-friendly**: The compiler is just taking a nap. We're not computing the Ackermann function just to slack off.
- **Language server-~~un~~friendly**: `rust-analyzer` has insomnia now.
## Overview
![XKCD compiling](https://imgs.xkcd.com/comics/compiling.png)
*A classic [XKCD webcomic](https://imgs.xkcd.com/comics/compiling.png)*
45% of respondents to the [2023 Rust survey](https://blog.rust-lang.org/2024/02/19/2023-Rust-Annual-Survey-2023-results.html) were concerned with Rust's compile times, and they're right: they're **too dang fast**!
In the before times when working on old C++ projects, we used to get 10 to 40 minutes of free time after we hit compile to do whatever we wanted. Developers' computers had no more than 2 to 4 CPU cores, and Makefiles were often not configured to run in parallel at all.
Nowadays, the devious Rust compiler developers are trying to make the compiler even faster, and they're slowly succeeding.
Here comes **Coffee break**, a friendly developer tool to make this problem go away.
## Example
Before you run `cargo build`, reward yourself with a coffee break:
```rust
use coffee_break::coffee_break;
fn work_stuff() {
let maybe = |(true|false)||(false|true)||(true|false)|true;
let absolutely = maybe(true)(true)(true);
// Take a break and hit compile
coffee_break!(5 minutes);
}
```
You just got 5 minutes to stretch your legs, get a coffee, or make Friday afternoon a bit nicer.
You can take a break for up to 251 minutes, or up to 1319 seconds. These limits are arbitrary, and will **not** be changed for any reason, unless the author changes their mind.
This crate requires correct grammar:
```rust
fn work_stuff() {
coffee_break!(1 second); // OK
coffee_break!(5 minutes); // OK
// coffee_break!(59 second); // Error
// coffee_break!(1 minutes); // Error
}
```
You can still run `cargo check` and `cargo clippy` without having to wait.
## Notes
The author doesn't drink coffee, but still enjoys taking a break.
## Contributing
Before contributing to this project, consider taking a coffee break first.
PRs are welcome.
The first paragraph of any PR message must be a haiku describing the changes.
Please follow the [community guidelines](https://www.rust-lang.org/policies/code-of-conduct).
## License
This project is licensed under a [license](./LICENSE) modeled on the [JSON license](https://www.json.org/license.html). Evil doesn't deserve a break.
### Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Coffee break by you, shall be licensed with this repository's license, without any additional terms or conditions.
", Assign "at most 3 tags" to the expected json: {"id":"8808","tags":[]} "only from the tags list I provide: [{"id":77,"name":"3d"},{"id":89,"name":"agent"},{"id":17,"name":"ai"},{"id":54,"name":"algorithm"},{"id":24,"name":"api"},{"id":44,"name":"authentication"},{"id":3,"name":"aws"},{"id":27,"name":"backend"},{"id":60,"name":"benchmark"},{"id":72,"name":"best-practices"},{"id":39,"name":"bitcoin"},{"id":37,"name":"blockchain"},{"id":1,"name":"blog"},{"id":45,"name":"bundler"},{"id":58,"name":"cache"},{"id":21,"name":"chat"},{"id":49,"name":"cicd"},{"id":4,"name":"cli"},{"id":64,"name":"cloud-native"},{"id":48,"name":"cms"},{"id":61,"name":"compiler"},{"id":68,"name":"containerization"},{"id":92,"name":"crm"},{"id":34,"name":"data"},{"id":47,"name":"database"},{"id":8,"name":"declarative-gui "},{"id":9,"name":"deploy-tool"},{"id":53,"name":"desktop-app"},{"id":6,"name":"dev-exp-lib"},{"id":59,"name":"dev-tool"},{"id":13,"name":"ecommerce"},{"id":26,"name":"editor"},{"id":66,"name":"emulator"},{"id":62,"name":"filesystem"},{"id":80,"name":"finance"},{"id":15,"name":"firmware"},{"id":73,"name":"for-fun"},{"id":2,"name":"framework"},{"id":11,"name":"frontend"},{"id":22,"name":"game"},{"id":81,"name":"game-engine "},{"id":23,"name":"graphql"},{"id":84,"name":"gui"},{"id":91,"name":"http"},{"id":5,"name":"http-client"},{"id":51,"name":"iac"},{"id":30,"name":"ide"},{"id":78,"name":"iot"},{"id":40,"name":"json"},{"id":83,"name":"julian"},{"id":38,"name":"k8s"},{"id":31,"name":"language"},{"id":10,"name":"learning-resource"},{"id":33,"name":"lib"},{"id":41,"name":"linter"},{"id":28,"name":"lms"},{"id":16,"name":"logging"},{"id":76,"name":"low-code"},{"id":90,"name":"message-queue"},{"id":42,"name":"mobile-app"},{"id":18,"name":"monitoring"},{"id":36,"name":"networking"},{"id":7,"name":"node-version"},{"id":55,"name":"nosql"},{"id":57,"name":"observability"},{"id":46,"name":"orm"},{"id":52,"name":"os"},{"id":14,"name":"parser"},{"id":74,"name":"react"},{"id":82,"name":"real-time"},{"id":56,"name":"robot"},{"id":65,"name":"runtime"},{"id":32,"name":"sdk"},{"id":71,"name":"search"},{"id":63,"name":"secrets"},{"id":25,"name":"security"},{"id":85,"name":"server"},{"id":86,"name":"serverless"},{"id":70,"name":"storage"},{"id":75,"name":"system-design"},{"id":79,"name":"terminal"},{"id":29,"name":"testing"},{"id":12,"name":"ui"},{"id":50,"name":"ux"},{"id":88,"name":"video"},{"id":20,"name":"web-app"},{"id":35,"name":"web-server"},{"id":43,"name":"webassembly"},{"id":69,"name":"workflow"},{"id":87,"name":"yaml"}]" returns me the "expected json"