{"id":57984,"library":"seq-macro","title":"seq-macro","description":"Macro to repeat sequentially indexed copies of a fragment of code, useful for generating repetitive code.","status":"active","version":"0.3.6","language":"rust","source_language":null,"source_url":"https://github.com/dtolnay/seq-macro","tags":["macro","code-generation","metaprogramming"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nseq-macro = \"0.3.6\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add seq-macro","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"seq","correct":"use seq_macro::seq;"}],"quickstart":{"code":"use seq_macro::seq;\n\nfn main() {\n    seq!(N in 0..4 {\n        println!(\"Iteration {}\", N);\n    });\n}","lang":"rust","description":"Generates code for each integer in a range, printing iteration numbers."},"warnings":[],"env_vars":null,"search_vec":"'code':14,19,22 'code-gener':21 'copi':9 'fragment':12 'generat':17,23 'index':8 'macro':3,4,20 'metaprogram':24 'repeat':6 'repetit':18 'seq':2 'seq-macro':1 'sequenti':7 'use':15","created_at":"2026-06-16T16:07:07.849629+00:00","updated_at":"2026-06-16T16:07:07.849629+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/dtolnay/seq-macro","github":"https://github.com/dtolnay/seq-macro","docs":"https://docs.rs/seq-macro/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}