{"id":19150316,"url":"https://github.com/hamdymohamedak/ak-macros","last_synced_at":"2025-10-23T22:10:07.080Z","repository":{"id":234889428,"uuid":"789690868","full_name":"hamdymohamedak/AK-Macros","owner":"hamdymohamedak","description":"Rust library To speed up the development process and make it easy AK-Macros It is a group of the most popular and frequently used macros ","archived":false,"fork":false,"pushed_at":"2024-05-24T16:30:24.000Z","size":4147,"stargazers_count":14,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-01T12:41:29.936Z","etag":null,"topics":["cargo","rust","rust-crate","rust-lang","rustup"],"latest_commit_sha":null,"homepage":"https://ak-macros.vercel.app","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hamdymohamedak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-21T09:30:43.000Z","updated_at":"2025-02-20T13:43:21.000Z","dependencies_parsed_at":"2024-05-02T14:47:44.225Z","dependency_job_id":"93f1986d-f916-4ca7-9dec-3af617fb396b","html_url":"https://github.com/hamdymohamedak/AK-Macros","commit_stats":null,"previous_names":["hamdymohamedak/macros_library","hamdymohamedak/ak-macro"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdymohamedak%2FAK-Macros","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdymohamedak%2FAK-Macros/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdymohamedak%2FAK-Macros/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hamdymohamedak%2FAK-Macros/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hamdymohamedak","download_url":"https://codeload.github.com/hamdymohamedak/AK-Macros/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252819301,"owners_count":21809006,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cargo","rust","rust-crate","rust-lang","rustup"],"created_at":"2024-11-09T08:11:35.709Z","updated_at":"2025-10-23T22:10:02.036Z","avatar_url":"https://github.com/hamdymohamedak.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AK-Macros\n\n# Description\n\n## AK-Macros is: Rust library To speed up the development process and make it easy AK-Macros It is a group of the most popular and frequently used macros\n\n# Features\n\nProvides a collection of macros for common programming tasks.\nDemonstrates how macros can improve code readability and maintainability.\nOffers examples and usage instructions to help developers leverage macros effectively.\nHow AK-Macros Help Developers\nAK-Macros offers several benefits to Rust developers:\n\nCode Reusability: AK-Macros provides reusable code patterns that can be used across projects, reducing duplication and promoting cleaner, more maintainable codebases.\nMetaprogramming: Developers can use AK-Macros to generate code at compile time based on certain patterns or conditions, reducing boilerplate code and making the codebase more expressive.\nDomain-Specific Languages (DSLs): With AK-Macros, developers can create domain-specific languages within Rust, tailored to specific problem domains, leading to more intuitive and concise code.\nError Handling: AK-Macros offers custom error handling macros that abstract away common error-handling patterns, resulting in more readable and consistent error-handling code.\nPerformance Optimization: AK-Macros can be used to optimize performance-critical code by generating specialized code tailored to specific use cases, leading to more efficient code execution.\n\n# Usage\n\n```rust\n\n// Import the macros library File\nuse ak_macros::*;\nfn main() {\n    let my_name = \"hamdy\";\n    akp!(\"My Name:{}\",my_name);\n}\n```\n\n### `Some Macros need dependencies To Working`\n\n# simple App with Ak-Macros\n\n```rust\nuse ak_macros::*;\nfn main() {\n\n    akp!(\"hello world\");\n\n    let my_name = input_prompt!(\"Enter the Name for Best crate. ?\");\n\n    if_cond!(\n        my_name,\n        my_name == \"ak-macros\",\n        akp!(\"hello devs. ak-macros make rust be a simple\"),\n        akp!(\"Take your time I m sure you will fall in love AK-Macros\")\n    )\n}\n```\n\n```rust\nuse ak_macros::*;\n    fn main(){\n    let result = terminal!(\"sh\",\"ls\");\n    akp!(\"{}\",result)\n    // output\n    //Cargo.lock\n    //Cargo.toml\n    //README.md\n    //src\n    //target\n    }\n```\n\n# Rust Code Vs Ak-Macros\n\n![Image Description](target/IMG_20240424_064108_421.png)\n![Image Description](target/IMG_20240424_064108_839.png)\n![Image Description](target/Example.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamdymohamedak%2Fak-macros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhamdymohamedak%2Fak-macros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhamdymohamedak%2Fak-macros/lists"}