#macro #standard #structures #simplifying

clonelicious

A Rust macro library that simplifies cloning and closure execution. The clone! macro automatically clones variables and immediately executes the closure with the cloned values, streamlining common patterns in Rust programming.

33 stable releases

Uses new Rust 2024

2.2.17 Mar 3, 2026
2.2.9 Dec 13, 2025
2.2.7 Oct 17, 2025
2.2.1 Jul 30, 2025
0.0.2 Jan 17, 2025

#372 in Data structures

Download history 55/week @ 2025-12-30 780/week @ 2026-01-06 963/week @ 2026-01-13 519/week @ 2026-01-20 228/week @ 2026-01-27 464/week @ 2026-02-03 367/week @ 2026-02-10 403/week @ 2026-02-17 460/week @ 2026-02-24 436/week @ 2026-03-03 335/week @ 2026-03-10 657/week @ 2026-03-17 517/week @ 2026-03-24 440/week @ 2026-03-31 803/week @ 2026-04-07 470/week @ 2026-04-14

2,308 downloads per month
Used in 9 crates (via hyperlane-utils)

MIT license

10KB
127 lines

clonelicious

Official Documentation

Api Docs

A Rust macro library that simplifies cloning and closure execution. The clone! macro automatically clones variables and immediately executes the closure with the cloned values, streamlining common patterns in Rust programming.

Installation

To install clonelicious run cmd:

cargo add clonelicious

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Contact

For any inquiries, please reach out to the author at root@ltpp.vip.

No runtime deps