{"id":50554811,"url":"https://github.com/bigmat18/cpp-utils-lib","last_synced_at":"2026-06-04T06:01:58.093Z","repository":{"id":323509528,"uuid":"1093394779","full_name":"bigmat18/cpp-utils-lib","owner":"bigmat18","description":"Header-only C++23 utilities for debugging, profiling, logging, enhanced assertions, and container formatting. CMake-ready.","archived":false,"fork":false,"pushed_at":"2026-02-02T13:31:35.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-03T02:40:11.838Z","etag":null,"topics":["cmake","cpp","cpp23","utility"],"latest_commit_sha":null,"homepage":"","language":"C++","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/bigmat18.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-10T10:08:27.000Z","updated_at":"2026-02-02T13:32:47.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bigmat18/cpp-utils-lib","commit_stats":null,"previous_names":["bigmat18/cpp-utils-lib"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bigmat18/cpp-utils-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigmat18%2Fcpp-utils-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigmat18%2Fcpp-utils-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigmat18%2Fcpp-utils-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigmat18%2Fcpp-utils-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigmat18","download_url":"https://codeload.github.com/bigmat18/cpp-utils-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigmat18%2Fcpp-utils-lib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33891733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-04T02:00:06.755Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cmake","cpp","cpp23","utility"],"created_at":"2026-06-04T06:01:57.217Z","updated_at":"2026-06-04T06:01:58.087Z","avatar_url":"https://github.com/bigmat18.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Utils Library\n\nA lightweight, header-only collection of utility headers for C++ development. These utilities simplify debugging, profiling, logging, assertions, and formatted output for common data structures. The library is designed for easy integration into modern C++ projects (C++23+).\n\n## Features\n\nThe utilities are provided in the `utils/` directory as individual header files:\n\n- **`debug.hpp`**: Runtime debugging tools, including breakpoints for pausing execution and inspecting state.\n- **`profiling.hpp`**: Profiling utilities that measure delta times for code scopes, generating hierarchical trees of execution timings for performance analysis.\n- **`logging.hpp`**: Flexible logging system with support for console output and file persistence, including severity levels and timestamps.\n- **`massert.hpp`**: Custom assertion macros enhanced with stack traces for better error diagnosis and debugging.\n- **`formatting.hpp`**: Enhanced printing utilities for `std::print` and `std::format`, supporting vectors, maps, tuples, and other basic C++ containers with customizable output formatting.\n\n## Building and Installation\n\nThis is a header-only library, so no compilation is required for the core utilities. CMake is used for managing dependencies, building examples, or running tests.\n\n1. Clone the repository:\n```\ngit clone https://github.com/bigmat18/cpp-utils-lib.git\ncd cpp-utils-lib\n```\n2. Create a build directory:\n```\nmkdir build\n```\n3. Configure and build with CMake:\n```\ncmake -G \"Ninja\" . -B build -DCMAKE_BUILD_TYPE=Debug\ncmake --build build --verbose\n```\n\nFor a simple integration into your project:\n- Add the `utils/` directory to your include path.\n- Include headers directly (e.g., `#include \u003cutils/debug.hpp\u003e`).\n- No linking is needed since it's header-only.\n\n### Prerequisites\n- CMake 3.24+\n- C++23 compliant compiler (e.g., GCC 13+, Clang 15+, MSVC 2022+)\n\n### CMake Configuration Options\n\nThe library supports several CMake options to enable or disable features and build examples. These can be set during configuration (e.g., via `-DBUILD_EXAMPLES=OFF`) or through your CMake GUI/IDE.\n\n- **`BUILD_EXAMPLES`** (default: `ON`): Enables building of example executables in the `examples/` directory.\n- **`USE_OPENMP`** (default: `OFF`): Activates OpenMP support in the utilities for parallel processing. Requires OpenMP to be installed and detected.\n- **`ENABLE_ASSERT`** (default: `ON`): Enables custom assertion utilities (from `massert.hpp`).\n- **`ENABLE_DEBUG`** (default: `ON`): Enables debugging utilities (from `debug.hpp`).\n- **`ENABLE_PROFILING`** (default: `ON`): Enables profiling utilities (from `profiling.hpp`).\n- **`ENABLE_LOGGING`** (default: `ON`): Enables logging utilities (from `logging.hpp`).\n\nDisabling these options removes the corresponding compile-time definitions (`ENABLE_ASSERT`, `ENABLE_DEBUG`, etc.) to reduce overhead in production builds.\n\n## Usage\n\nExamples demonstrating the usage of each utility are provided in the `examples/` directory. Build them by enabling `BUILD_EXAMPLES=ON` (default) during CMake configuration.\nRefer to each header's inline documentation for detailed API usage, configuration options, and further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigmat18%2Fcpp-utils-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigmat18%2Fcpp-utils-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigmat18%2Fcpp-utils-lib/lists"}