{"id":15130572,"url":"https://github.com/moztanku/jaclib","last_synced_at":"2026-01-19T07:05:18.434Z","repository":{"id":256816786,"uuid":"854750811","full_name":"Moztanku/JacLib","owner":"Moztanku","description":"My multiplatform utility library","archived":false,"fork":false,"pushed_at":"2024-09-30T20:25:02.000Z","size":60,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T17:56:39.580Z","etag":null,"topics":["cmake","cpp20","gtest","library","linux","multiplatform","utility","windows"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Moztanku.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-09T18:02:37.000Z","updated_at":"2024-09-13T15:14:10.000Z","dependencies_parsed_at":"2024-12-19T02:22:53.962Z","dependency_job_id":"6ddece70-a694-4830-b75b-2466a9259a5c","html_url":"https://github.com/Moztanku/JacLib","commit_stats":null,"previous_names":["moztanku/jaclib"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moztanku%2FJacLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moztanku%2FJacLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moztanku%2FJacLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Moztanku%2FJacLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Moztanku","download_url":"https://codeload.github.com/Moztanku/JacLib/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393541,"owners_count":20931809,"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":["cmake","cpp20","gtest","library","linux","multiplatform","utility","windows"],"created_at":"2024-09-26T03:02:40.425Z","updated_at":"2026-01-19T07:05:13.379Z","avatar_url":"https://github.com/Moztanku.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JacLib\n\n![Linux tests](https://github.com/Moztanku/JacLib/actions/workflows/tests_linux.yaml/badge.svg?branch=main)\n![Windows tests](https://github.com/Moztanku/JacLib/actions/workflows/tests_windows.yaml/badge.svg?branch=main)\n\n![License](https://img.shields.io/github/license/Moztanku/JacLib)\n![C++](https://img.shields.io/badge/C%2B%2B-20-blue)\n\n***My utility library for C++20 made for personal use and learning purposes.***\n\n## Features\n- **Multiple-platform support**: Both Windows and Linux are supported\n- **Static/Dynamic compilation**: The library can be compiled as a static or dynamic library\n- **Documentation**: Every module is documented with Doxygen style comments\n\n## Modules\n- **print.hpp**: A print function with multiple overloads that supports various log levels, (\u003cspan style=\"color:orange\"\u003e\"*{} {}*\"\u003c/span\u003e, {\u003cspan style=\"color:orange\"\u003e\"*formatted*\"\u003c/span\u003e, \u003cspan style=\"color:orange\"\u003e\"*strings*\"\u003c/span\u003e}), colored \u003cspan style=\"color:yellow\"\u003e[HEADERS]\u003c/span\u003e and source location \u003cspan style=\"color:grey\"\u003e@ README.md:16\u003c/span\u003e\n- **types.hpp**: A set of type aliases\n- **debug.hpp**: A constexpr constant that is enabled when the compiler is in debug mode\n\n## How to include in your project\n***You can see example usage in `tst\\CMakeLists.txt`***\n\n### Requirements\n- **CMake**\n- **C++20**\n\n### Steps\n1. **Clone the repository**\n```bash\ngit clone https://github.com/Moztanku/JacLib.git path/to/JacLib\n```\n2. **Include the library in your CMake project**\n```cmake\n# Note: Change your_target to your actual target name\nadd_subdirectory(path/to/JacLib)\ntarget_link_libraries(your_target PRIVATE JacLib)\n\n# On Windows it may be necessary to move compiled dlls to the executable directory\nif (MSVC AND BUILD_SHARED_LIBS)\n    add_custom_command(\n        TARGET your_target POST_BUILD\n        COMMAND ${CMAKE_COMMAND} -E copy_if_different\n        \"$\u003cTARGET_FILE:JacLib\u003e\"\n        \"$\u003cTARGET_FILE_DIR:your_target\u003e\")\nendif()\n```\n3. **Include the library in your source files**\n```cpp\n#include \"jac/print.hpp\"\n\nint main() {\n    jac::print(\"{} {}!\", {\"Hello\", \"World\"});\n\n    return 0;\n}\n```\n\n## How to build tests\n\n### Requirements\n- **CMake**\n- **C++20**\n- **Gtest**\n\n### Steps\n1. **Clone the repository**\n```bash\ngit clone https://github.com/Moztanku/JacLib.git path/to/JacLib\n```\n2. **Build the project and tests**\n```bash\n# Enter the repository directory\ncd path/to/JacLib\n# Configure step\ncmake -B build -S . -DJacLib_BUILD_TESTS=ON\n# Build step\ncmake --build build\n```\n3. **Run the tests**\n```bash\n# Linux\n./build/tst/JacLib_tests\n\n# Windows\n./build/tst/{Debug|Release}/JacLib_tests.exe\n```\n\n## Build options\n- **JacLib_BUILD_TESTS={ON|OFF}**: Build the tests (default: ***OFF***)\n- **BUILD_SHARED_LIBS={ON|OFF}**: Build the library as a shared library (default: ***ON***)\n- **CMAKE_BUILD_TYPE={Release|Debug}**: Build type on **Linux** (default: ***Release***)\n- **--config {Release|Debug}**: Build type, set during build step on **Windows** (default: ***Release***)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoztanku%2Fjaclib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoztanku%2Fjaclib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoztanku%2Fjaclib/lists"}