{"id":26494712,"url":"https://github.com/nickscha/test","last_synced_at":"2025-03-20T10:24:27.195Z","repository":{"id":279980731,"uuid":"938028130","full_name":"nickscha/test","owner":"nickscha","description":"C89, single header, nostdlib, simple testing framework.","archived":false,"fork":false,"pushed_at":"2025-03-18T17:17:52.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T17:47:52.253Z","etag":null,"topics":["c89","nostdlib","single-header"],"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/nickscha.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":"2025-02-24T10:01:38.000Z","updated_at":"2025-03-18T17:17:56.000Z","dependencies_parsed_at":"2025-02-28T20:17:08.248Z","dependency_job_id":"159c9582-eed1-41dd-ab87-51b7387b078d","html_url":"https://github.com/nickscha/test","commit_stats":null,"previous_names":["nickscha/test"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Ftest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Ftest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Ftest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nickscha%2Ftest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nickscha","download_url":"https://codeload.github.com/nickscha/test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244592962,"owners_count":20477990,"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":["c89","nostdlib","single-header"],"created_at":"2025-03-20T10:24:26.489Z","updated_at":"2025-03-20T10:24:27.187Z","avatar_url":"https://github.com/nickscha.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# test\nA C89 standard compliant, single header, nostdlib (no C Standard Library) simple testing framework.\n\nFor more information please look at the \"test.h\" file or take a look at the \"examples\" or \"tests\" folder.\n\n## Quick Start\n\nDownload or clone test.h and include it in your project.\n\n```C\n#include \"test.h\"\n\nint main() {\n\n    /* Use assert to break/stop program when expression is not met*/\n    assert(1 == 1);\n\n    /* Use test as an conditional expression. If it fails it will log out the result but the program will continue */\n    test(10 % 5 == 0);\n\n    return 0;\n}\n```\n\n## Run Example: nostdlib, freestsanding\n\nIn this repo you will find the \"examples/test_win32_nostdlib.c\" with the corresponding \"build.bat\" file which\ncreates an executable only linked to \"kernel32\" and \"user32\" and is not using the C standard library and executes the program afterwards.\n\n## \"nostdlib\" Motivation \u0026 Purpose\n\nnostdlib is a lightweight, minimalistic approach to C development that removes dependencies on the standard library. The motivation behind this project is to provide developers with greater control over their code by eliminating unnecessary overhead, reducing binary size, and enabling deployment in resource-constrained environments.\n\nMany modern development environments rely heavily on the standard library, which, while convenient, introduces unnecessary bloat, security risks, and unpredictable dependencies. nostdlib aims to give developers fine-grained control over memory management, execution flow, and system calls by working directly with the underlying platform.\n\n### Benefits\n\n#### Minimal overhead\nBy removing the standard library, nostdlib significantly reduces runtime overhead, allowing for faster execution and smaller binary sizes.\n\n#### Increased security\nStandard libraries often include unnecessary functions that increase the attack surface of an application. nostdlib mitigates security risks by removing unused and potentially vulnerable components.\n\n#### Reduced binary size\nWithout linking to the standard library, binaries are smaller, making them ideal for embedded systems, bootloaders, and operating systems where storage is limited.\n\n#### Enhanced performance\nDirect control over system calls and memory management leads to performance gains by eliminating abstraction layers imposed by standard libraries.\n\n#### Better portability\nBy relying only on fundamental system interfaces, nostdlib allows for easier porting across different platforms without worrying about standard library availability.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickscha%2Ftest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickscha%2Ftest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickscha%2Ftest/lists"}