{"id":13711322,"url":"https://github.com/kassane/outcome","last_synced_at":"2025-05-06T20:32:51.222Z","repository":{"id":154175522,"uuid":"631579541","full_name":"kassane/outcome","owner":"kassane","description":"Provides very lightweight outcome\u003cT\u003e and result\u003cT\u003e (non-Boost edition) (uses zig build-system)","archived":false,"fork":true,"pushed_at":"2024-08-04T20:55:26.000Z","size":10076,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"zig-pkg","last_synced_at":"2024-11-13T21:45:01.127Z","etag":null,"topics":["cplusplus","cpp","cpp-library","zig-package"],"latest_commit_sha":null,"homepage":"https://ned14.github.io/outcome","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ned14/outcome","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kassane.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"ned14"}},"created_at":"2023-04-23T13:24:26.000Z","updated_at":"2024-08-04T20:55:29.000Z","dependencies_parsed_at":"2023-09-26T21:23:33.514Z","dependency_job_id":null,"html_url":"https://github.com/kassane/outcome","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Foutcome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Foutcome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Foutcome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kassane%2Foutcome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kassane","download_url":"https://codeload.github.com/kassane/outcome/tar.gz/refs/heads/zig-pkg","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252764724,"owners_count":21800736,"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":["cplusplus","cpp","cpp-library","zig-package"],"created_at":"2024-08-02T23:01:06.959Z","updated_at":"2025-05-06T20:32:50.009Z","avatar_url":"https://github.com/kassane.png","language":"C++","funding_links":["https://github.com/sponsors/ned14"],"categories":["Interoperability"],"sub_categories":["Build with Zig"],"readme":"# OUTCOME - zig-pkg support\n\n[![Unit tests Zig (embedded)](https://github.com/kassane/outcome/actions/workflows/unittests_zig_embedded.yml/badge.svg?branch=zig-pkg)](https://github.com/kassane/outcome/actions/workflows/unittests_zig_embedded.yml)\n[![Unit tests Zig](https://github.com/kassane/outcome/actions/workflows/unittests_zig.yml/badge.svg?branch=zig-pkg)](https://github.com/kassane/outcome/actions/workflows/unittests_zig.yml)\n[![Unit tests Zig (msvc)](https://github.com/kassane/outcome/actions/workflows/unittests_zig_msvc.yml/badge.svg?branch=zig-pkg)](https://github.com/kassane/outcome/actions/workflows/unittests_zig_msvc.yml)\n\nCTest dashboard: https://my.cdash.org/index.php?project=Boost.Outcome\n\nAll tests passing source tarballs: https://github.com/ned14/outcome/releases\n\nDocumentation: https://ned14.github.io/outcome/\n\n\n## Purpose of this library\n\nOutcome is a C++14 library for reporting and handling function failures. It can be used as a substitute for, or a complement to, the exception handling mechanism.\n\nOne use case is for contexts where using C++ exception handling is unsuitable for different reasons:\n\n * The high relative cost of throwing and catching a C++ exception.\n * Making some or all control paths explicitly detailed to aid code correctness auditing, as opposed to having hidden control paths caused by exceptions potentially thrown from any place.\n * Company policy to compile with exceptions disabled.\n * Maintaining a code base that was never designed with exception-safety in mind.\n * Parts of the programs/frameworks that themselves implement exception handling and cannot afford to use exceptions, like propagating failure reports across threads, tasks, fibers…\n\n\n## Usage as a single header file\n\nOutcome v2 comes in single header file form. This is regenerated per commit. To fetch\non Linux:\n\n```\nwget https://github.com/kassane/outcome/raw/develop/single-header/outcome.hpp\n```\n\nOn BSD:\n\n```\nfetch https://github.com/kassane/outcome/raw/develop/single-header/outcome.hpp\n```\n\nIf you have `curl` installed:\n\n```\ncurl -O -J -L https://github.com/kassane/outcome/raw/develop/single-header/outcome.hpp\n```\n\nOtherwise, simply download the raw file from above and place it wherever it suits you.\nIf you might be debugging using Microsoft Visual Studio, you may find the debugger\nvisualisation file at https://github.com/kassane/outcome/raw/develop/include/outcome/outcome.natvis\nuseful to include into your build.\n\n## Commits and tags in this git repository can be verified using:\n\u003cpre\u003e\n-----BEGIN PGP PUBLIC KEY BLOCK-----\nVersion: GnuPG v2\n\nmDMEVvMacRYJKwYBBAHaRw8BAQdAp+Qn6djfxWQYtAEvDmv4feVmGALEQH/pYpBC\nllaXNQe0WE5pYWxsIERvdWdsYXMgKHMgW3VuZGVyc2NvcmVdIHNvdXJjZWZvcmdl\nIHthdH0gbmVkcHJvZCBbZG90XSBjb20pIDxzcGFtdHJhcEBuZWRwcm9kLmNvbT6I\neQQTFggAIQUCVvMacQIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgAAKCRCELDV4\nZvkgx4vwAP9gxeQUsp7ARMFGxfbR0xPf6fRbH+miMUg2e7rYNuHtLQD9EUoR32We\nV8SjvX4r/deKniWctvCi5JccgfUwXkVzFAk=\n=puFk\n-----END PGP PUBLIC KEY BLOCK-----\n\u003c/pre\u003e\n\n\u003c/center\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Foutcome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkassane%2Foutcome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkassane%2Foutcome/lists"}