{"id":46858835,"url":"https://github.com/embetech-official/embeutils","last_synced_at":"2026-03-10T17:48:32.345Z","repository":{"id":258206297,"uuid":"738520488","full_name":"embetech-official/embeutils","owner":"embetech-official","description":"A set of general utilities for embedded firmware projects","archived":false,"fork":false,"pushed_at":"2026-01-15T15:04:29.000Z","size":70,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-15T18:56:50.941Z","etag":null,"topics":["c","compiler","endianness","header-only","library","utility","versioning"],"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/embetech-official.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-01-03T12:19:23.000Z","updated_at":"2026-01-15T15:04:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"f1392377-f93a-4674-bf0e-fe1fbc7bde36","html_url":"https://github.com/embetech-official/embeutils","commit_stats":null,"previous_names":["embetech-official/embeutils"],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/embetech-official/embeutils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embetech-official%2Fembeutils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embetech-official%2Fembeutils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embetech-official%2Fembeutils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embetech-official%2Fembeutils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embetech-official","download_url":"https://codeload.github.com/embetech-official/embeutils/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embetech-official%2Fembeutils/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30345775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:55:29.454Z","status":"ssl_error","status_checked_at":"2026-03-10T15:54:58.440Z","response_time":106,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","compiler","endianness","header-only","library","utility","versioning"],"created_at":"2026-03-10T17:48:31.770Z","updated_at":"2026-03-10T17:48:32.338Z","avatar_url":"https://github.com/embetech-official.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Embeutils - utilities for embedded firmware projects\n\n[![Unit Tests](https://github.com/embetech-official/embeutils/actions/workflows/unit_tests.yml/badge.svg)](https://github.com/embetech-official/embeutils/actions/workflows/unit_tests.yml)\n![GitHub Release](https://img.shields.io/github/v/release/embetech-official/embeutils)\n![GitHub License](https://img.shields.io/github/license/embetech-official/embeutils)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/dfab6840a2af4fb890993c76798a587e)](https://app.codacy.com/gh/embetech-official/embeutils/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n\nThis is a small header-only library with some tools that are usefull for embedded firmware projects.\\\nThe tools include:\n- compiler_support.h which provides a set of macros controlling compiler-specific attributes\n- endianess.h which provides tools for manipulating the endianess\n- expect.h which provides a set of tools to organize error handling and make it more explicit\n\n## Quick start\n### 1. Get the library\n```cmake\ninclude(FetchContent)\n\n# Remove FIND_PACKAGE_ARGS when using CMake \u003c 3.24\nFetchContent_Declare(embeutils https://github.com/embetech-official/embeutils/archive/refs/tags/v1.zip FIND_PACKAGE_ARGS)\n\n\n# If you need to set configuration options, this is the last spot to do so\n\nFetchContent_MakeAvailable(embeutils)\n```\n\n\n### 2. Link with your target\n```cmake\ntarget_link_libraries(my_target PRIVATE embetech::utils)\n```\n\n### 3. All set to go\n```c\n#include \u003cembetech/expect.h\u003e\n\nvoid do_work(void* data) {\n    EXPECT(data != NULL) OR_ABORT(\"data must be non-null\");\n}\n```\n\n## Components\n\n### Endianness support\nThe component provides functions to convert data representation between little- and big-endian.\nWhen using C11 compliant compiler, there are Generic selection conversion macros.\n\n### Compiler support\n\n### Contracts\n\n\n## Configuration\n- **EMBEUTILS_EXPECT_VERBOSE**: Force enables verbose messages in EXPECT macros.\n\n- **EMBEUTILS_EXTRA_CHECKS** : Force enables additional runtime checks (executed via **EXPECT_EXTRA** macro)\n\n\u003e [!IMPORTANT]\n\u003e The default behaviour is to enable both EXPECT_EXTRA and verbose messages in DEBUG build configuration. If you wish to force **disable** the options, unset appropriate cache variables and set non-cache variables to OFF\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembetech-official%2Fembeutils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembetech-official%2Fembeutils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembetech-official%2Fembeutils/lists"}