{"id":13424431,"url":"https://github.com/stlab/libraries","last_synced_at":"2025-03-15T18:35:01.072Z","repository":{"id":32109036,"uuid":"35681376","full_name":"stlab/libraries","owner":"stlab","description":"ASL libraries will be migrated here in the stlab namespace, new libraries will be created here.","archived":false,"fork":false,"pushed_at":"2025-02-25T20:16:51.000Z","size":33724,"stargazers_count":667,"open_issues_count":55,"forks_count":68,"subscribers_count":51,"default_branch":"main","last_synced_at":"2025-02-25T21:25:03.660Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stlab.cc","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stlab.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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":"2015-05-15T15:25:09.000Z","updated_at":"2025-02-25T20:16:55.000Z","dependencies_parsed_at":"2023-10-13T09:50:10.140Z","dependency_job_id":"dd23714c-5762-486b-82fd-1b4c98c96a10","html_url":"https://github.com/stlab/libraries","commit_stats":null,"previous_names":[],"tags_count":33,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlab%2Flibraries","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlab%2Flibraries/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlab%2Flibraries/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stlab%2Flibraries/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stlab","download_url":"https://codeload.github.com/stlab/libraries/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243775845,"owners_count":20346275,"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":[],"created_at":"2024-07-31T00:00:54.254Z","updated_at":"2025-03-15T18:34:56.049Z","avatar_url":"https://github.com/stlab.png","language":"C++","readme":"# Software Technology Lab (STLab) Library Source Code Repository\n\nASL libraries will be migrated here in the `stlab` namespace, new libraries will be created here.\n\n## Branch states\n\n- **`main`:** [![Build and Tests](https://github.com/stlab/libraries/actions/workflows/stlab.yml/badge.svg)](https://github.com/stlab/libraries/actions/workflows/stlab.yml)\n\n## Content\n\n### [Concurrency](https://www.stlab.cc/libraries/concurrency/)\n\nThis library provides futures and channels, high-level abstractions for implementing algorithms that ease the use of multiple CPU cores while minimizing contention. This library solves several problems of the C++11 and C++17 TS futures.\n\n## Documentation\n\nThe complete documentation is available on the [STLab home page](http://stlab.cc).\n\nRelease changelogs are listed in [CHANGES.md](CHANGES.md).\n\n## Tested on\n\n- Linux with GCC 11\n- Linux with Clang 14\n- MacOS 11 with Apple-clang 13.0.0\n- Windows with Visual Studio 16\n\n## Requirements\n\n- A standards-compliant C++17, C++20, or C++23 compiler\n- **Building** the library requires CMake 3.23 or later\n- **Testing or developing** the library requires Boost.Test \u003e= 1.74.0\n\n## Building\n\nSTLab is a standard CMake project. See the [running CMake](https://cmake.org/runningcmake) tutorial\nfor an introduction to this tool.\n\n### Preparation\n\n1. Create a build directory outside this library's source tree. In this guide, we'll use a sibling\n   directory called `BUILD`.\n\n1. Install a version of CMake \u003e= 3.23. If you are on Debian or Ubuntu Linux you may need to use\n   `snap` to find one that's new enough.\n\n1. If you are using MSVC, you may need to set environment variables appropriately for your target\n   architecture by invoking `VCVARSALL.BAT` with an appropriate option.\n\n### Configure\n\nRun CMake in the root directory of this project, setting `../BUILD` as your build directory. The\nbasis of your command will be\n\n```\ncmake -S . -B ../BUILD -DCMAKE_BUILD_TYPE=# SEE BELOW\n```\n\nbut there are other options you may need to append in order to be successful. Among them:\n\n- `-DCMAKE_BUILD_TYPE=`[`Release`|`Debug`] to build the given configuration (required unless you're using Visual Studio or another multi-config generator).\n- `-DCMAKE_CXX_STANDARD=`[`17`|`20`|`23`] to build with compliance to the given C++ standard.\n- `-DBUILD_TESTING=OFF` if you only intend to build, but not test, this library.\n- `-DBoost_USE_STATIC_LIBS=TRUE` if you will be testing on Windows.\n\nWe also suggest the installation of [Ninja](https://ninja-build.org/) and its use by adding\n`-GNinja` to your cmake command line… but ninja is not required.\n\nA typical invocation might look like this:\n\n```\ncmake -S . -B ../BUILD -GNinja -DCMAKE_CXX_STANDARD=17 -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF\n```\n\nIf you organize the build directory into subdirectories you can support multiple configurations.\n\n```\nrm -rf ../builds/portable\ncmake -S . -B ../builds/portable -GXcode -DCMAKE_CXX_STANDARD=17 -DBUILD_TESTING=ON -DSTLAB_TASK_SYSTEM=portable -DCMAKE_OSX_DEPLOYMENT_TARGET=macosx14.4\n```\n\n### Build\n\nIf your configuration command was successful, go to your build directory (`cd ../BUILD`) and invoke:\n\n```\ncmake --build .\n```\n\n## Testing\n\nRunning the tests in the `BUILD` directory is as simple as invoking\n\n```\nctest -C Debug\n```\n\nor\n\n```\nctest -C Release\n```\n\ndepending on which configuration (`CMAKE_BUILD_TYPE) you choose to build.\n\n## Generating Documentation\n\nFor generating the documentation, see the [README.md](docs/README.md) in the `docs` directory.\n","funding_links":[],"categories":["Concurrency"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlab%2Flibraries","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstlab%2Flibraries","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstlab%2Flibraries/lists"}