{"id":46099566,"url":"https://github.com/launchdarkly/cpp-sdks","last_synced_at":"2026-03-01T19:31:27.555Z","repository":{"id":169163321,"uuid":"620412294","full_name":"launchdarkly/cpp-sdks","owner":"launchdarkly","description":"C++ Client/Server SDKs","archived":false,"fork":false,"pushed_at":"2025-11-12T21:23:19.000Z","size":30549,"stargazers_count":5,"open_issues_count":9,"forks_count":3,"subscribers_count":27,"default_branch":"main","last_synced_at":"2025-11-12T22:22:59.372Z","etag":null,"topics":["c","cpp","cpp17","feature-flags","feature-toggles","launchdarkly","launchdarkly-sdk","managed-by-terraform","sdk"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/launchdarkly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","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":"2023-03-28T16:21:14.000Z","updated_at":"2025-11-03T23:15:19.000Z","dependencies_parsed_at":"2023-10-30T18:25:06.086Z","dependency_job_id":"1edd3235-51da-4e32-85c9-8b0125bed754","html_url":"https://github.com/launchdarkly/cpp-sdks","commit_stats":null,"previous_names":["launchdarkly/cpp-sdks"],"tags_count":196,"template":false,"template_full_name":null,"purl":"pkg:github/launchdarkly/cpp-sdks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fcpp-sdks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fcpp-sdks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fcpp-sdks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fcpp-sdks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/launchdarkly","download_url":"https://codeload.github.com/launchdarkly/cpp-sdks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/launchdarkly%2Fcpp-sdks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29981413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T16:35:47.903Z","status":"ssl_error","status_checked_at":"2026-03-01T16:35:44.899Z","response_time":124,"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","cpp","cpp17","feature-flags","feature-toggles","launchdarkly","launchdarkly-sdk","managed-by-terraform","sdk"],"created_at":"2026-03-01T19:31:26.991Z","updated_at":"2026-03-01T19:31:27.547Z","avatar_url":"https://github.com/launchdarkly.png","language":"C++","readme":"# LaunchDarkly monorepo for C++ SDKs.\n\nThis repository contains LaunchDarkly SDK packages which are written in C++.\nThis includes shared libraries, used by SDKs and other tools, as well as SDKs.\n\n## Packages\n\n| Readme                                                                 | issues                                                           | tests                                                               | docs     (C++)                                                                                                                    | docs (C)                                                                                                                            | latest release                                                                                       |\n|------------------------------------------------------------------------|------------------------------------------------------------------|---------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|\n| [libs/client-sdk](libs/client-sdk/README.md)                           | [C++ Client SDK][package-cpp-client-issues]                      | [![Actions Status][cpp-client-ci-badge]][cpp-client-ci]             | [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=API+reference\u0026color=00add8)][cpp-client-docs]       | [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=API+reference\u0026color=00add8)][cpp-client-c-docs]       | [On Github](https://github.com/launchdarkly/cpp-sdks/releases?q=%22launchdarkly-cpp-client%22)       | \n| [libs/server-sdk](libs/server-sdk/README.md)                           | [C++ Server SDK][package-cpp-server-issues]                      | [![Actions Status][cpp-server-ci-badge]][cpp-server-ci]             | [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=API+reference\u0026color=00add8)][cpp-server-docs]       | [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=API+reference\u0026color=00add8)][cpp-server-c-docs]       | [On Github](https://github.com/launchdarkly/cpp-sdks/releases?q=%22launchdarkly-cpp-server%22)       |\n| [libs/server-sdk-redis-source](libs/server-sdk-redis-source/README.md) | [C++ Server SDK - Redis Source][package-cpp-server-redis-issues] | [![Actions Status][cpp-server-redis-ci-badge]][cpp-server-redis-ci] | [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=API+reference\u0026color=00add8)][cpp-server-redis-docs] | [![Documentation](https://img.shields.io/static/v1?label=GitHub+Pages\u0026message=API+reference\u0026color=00add8)][cpp-server-redis-c-docs] | [On Github](https://github.com/launchdarkly/cpp-sdks/releases?q=%22launchdarkly-cpp-server-redis%22) |\n\n| Shared packages                                              | issues                                                 | tests                                                             |\n|--------------------------------------------------------------|--------------------------------------------------------|-------------------------------------------------------------------|\n| [libs/common](libs/common/README.md)                         | [Common][package-shared-common-issues]                 | [![Actions Status][shared-common-ci-badge]][shared-common-ci]     |\n| [libs/internal](libs/internal/README.md)                     | [Internal][package-shared-internal-issues]             | [![Actions Status][shared-internal-ci-badge]][shared-internal-ci] |\n| [libs/server-sent-events](libs/server-sent-events/README.md) | [Common Server-Sent-Events][package-shared-sse-issues] | [![Actions Status][shared-sse-ci-badge]][shared-sse-ci]           |\n\n## Organization\n\n| Directory      | Description                                                                                                                                                                                                                |\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| .github        | Contains CI and release process workflows and actions.                                                                                                                                                                     |\n| examples       | Contains examples (hello-world style).                                                                                                                                                                                     |\n| contract-tests | Contains contract test service.                                                                                                                                                                                            |\n| cmake          | Contains cmake files for importing and configuring external libraries.                                                                                                                                                     |\n| libs           | Contains library implementations. This includes libraries shared within the project as well as SDK libraries like the client-sdk.                                                                                          |\n| scripts        | Contains scripts used in the release process.                                                                                                                                                                              |\n| vendor         | Contains third party source which is directly integrated into the project. Generally third party source is included through CMake using FetchContent, but some libraries require modification specific to this repository. |\n\n## Build Requirements\n\n### Dependencies\n\n1. C++17 and above\n1. CMake 3.19 or higher\n1. Ninja (if using the included build scripts)\n1. Boost version 1.81 or higher (**excluding** Boost 1.83, see note below)\n1. OpenSSL\n\n\u003e [!NOTE]   \n\u003e Boost 1.83 is not supported due to an incompatibility in Boost.JSON. This issue appears to be resolved\n\u003e in versions prior and subsequent to 1.83.\n\nAdditional dependencies are fetched via CMake. For details see the `cmake` folder.\n\nGoogleTest is used for testing.\n\nFor information on integrating an SDK package please refer to the SDK specific README.\n\n## CMake Options\n\nVarious CMake options are available to customize the client/server SDK builds.\n\n| Option                        | Description                                                                                                                                                                                                                                                              | Default                                                | Requires                                  |\n|-------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|-------------------------------------------|\n| `BUILD_TESTING`               | Coarse-grained switch; turn off to disable all testing and only build the SDK targets.                                                                                                                                                                                   | On                                                     | N/A                                       |\n| `LD_BUILD_UNIT_TESTS`         | Whether C++ unit tests are built.                                                                                                                                                                                                                                        | On                                                     | `BUILD_TESTING; NOT LD_BUILD_SHARED_LIBS` |\n| `LD_TESTING_SANITIZERS`       | Whether sanitizers should be enabled.                                                                                                                                                                                                                                    | On                                                     | `LD_BUILD_UNIT_TESTS`                     |\n| `LD_BUILD_CONTRACT_TESTS`     | Whether the contract test service (used in CI) is built.                                                                                                                                                                                                                 | Off                                                    | `BUILD_TESTING`                           |\n| `LD_BUILD_EXAMPLES`           | Whether example apps (hello world) are built.                                                                                                                                                                                                                            | On                                                     | N/A                                       |\n| `LD_BUILD_SHARED_LIBS`        | Whether the SDKs are built as static or shared libraries.                                                                                                                                                                                                                | Off  (static lib)                                      | N/A                                       |\n| `LD_BUILD_EXPORT_ALL_SYMBOLS` | Whether to export all symbols in shared libraries. By default, only C API symbols are exported because C++ does not have an ABI. Only use this feature if you understand the risk and requirements. A mismatch in ABI could cause crashes or other unexpected behaviors. | Off  (hidden)                                          | `LD_BUILD_SHARED_LIBS`                    |\n| `LD_DYNAMIC_LINK_BOOST`       | If building SDK as shared lib, whether to dynamically link Boost or not. Ensure that the shared boost libraries are present on the target system.                                                                                                                        | On (link boost dynamically when producing shared libs) | `LD_BUILD_SHARED_LIBS`                    |\n| `LD_DYNAMIC_LINK_OPENSSL`     | Whether OpenSSL is dynamically linked or not.                                                                                                                                                                                                                            | Off  (static link)                                     | N/A                                       |\n| `LD_BUILD_REDIS_SUPPORT`      | Whether the server-side Redis Source is built or not.                                                                                                                                                                                                                    | Off                                                    | N/A                                       |\n| `LD_CURL_NETWORKING`          | Enable CURL-based networking for all HTTP requests (SSE streams and event delivery). When OFF, Boost.Beast/Foxy is used instead. CURL must be available as a dependency when this option is ON.                                                                          | Off                                                    | N/A                                       |\n| `LD_BUILD_OTEL_SUPPORT`       | Whether the server-side OpenTelemetry integration package is built or not.                                                                                                                                                                                                | Off                                                    | N/A                                       |\n| `LD_BUILD_OTEL_FETCH_DEPS`    | When building OpenTelemetry support, automatically fetch and configure OpenTelemetry dependencies via CMake FetchContent. This is useful for local development and CI. When OFF, you must provide OpenTelemetry yourself via `find_package`.                              | Off                                                    | `LD_BUILD_OTEL_SUPPORT`                   |\n| `LD_OTEL_CPP_VERSION`         | Specifies the OpenTelemetry C++ SDK version (git tag or commit hash) to fetch when `LD_BUILD_OTEL_FETCH_DEPS` is enabled. Can be set to any valid git reference from the [opentelemetry-cpp repository](https://github.com/open-telemetry/opentelemetry-cpp).            | `ea1f0d61ce5baa5584b097266bf133d1f31e3607` (v1.23.0)  | `LD_BUILD_OTEL_FETCH_DEPS`                |\n\n\u003e [!WARNING]   \n\u003e When building shared libraries C++ symbols are not exported, only the C API will be exported. This is because C++ does\n\u003e not have a stable ABI. For this reason, the SDK's unit tests are not built in shared library mode.\n\n## Building the SDK from Source\n\nTo configure the SDK's CMake project:\n\n```bash\n# Use 'make' as the build system.\ncmake -B build -S . -G\"Unix Makefiles\"\n```\n\nTo pass in config options defined in the table above, add them using `-D`:\n\n```bash\n# Use 'make' as the build system, build shared libs, and disable testing.\ncmake -B build -S . -G\"Unix Makefiles\" \\\n                    -DLD_BUILD_SHARED_LIBS=On \\\n                    -DBUILD_TESTING=Off ..\n```\n\nThe example uses `make`, but you might instead use [Ninja](https://ninja-build.org/),\nMSVC, [etc.](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html)\n\n### Building with CURL Networking\n\nBy default, the SDK uses Boost.Beast/Foxy for HTTP networking. To use CURL instead, enable the `LD_CURL_NETWORKING` option:\n\n```bash\ncmake -B build -S . -DLD_CURL_NETWORKING=ON\n```\n\n\u003e [!WARNING]\n\u003e CURL support for the **server-side SDK** is currently **experimental**. It is subject to change and may not be fully tested for production use.\n\nProxy support does not apply to the redis persistent store implementation for the server-side SDK.\n\n#### CURL Requirements by Platform\n\n**Linux/macOS:**\nInstall CURL development libraries via your package manager:\n```bash\n# Ubuntu/Debian\nsudo apt-get install libcurl4-openssl-dev\n\n# macOS\nbrew install curl\n```\n\n**Windows (MSVC):**\nCURL must be built from source using MSVC to ensure ABI compatibility. A helper script is provided:\n\n```powershell\n.\\scripts\\build-curl-windows.ps1 -Version \"8.11.1\" -InstallPrefix \"C:\\curl-install\"\n```\n\nThen configure the SDK with:\n```powershell\ncmake -B build -S . -DLD_CURL_NETWORKING=ON `\n    -DCURL_ROOT=\"C:\\curl-install\" `\n    -DCMAKE_PREFIX_PATH=\"C:\\curl-install\"\n```\n\nThe `build-curl-windows.ps1` script:\n- Downloads CURL source from curl.se\n- Builds static libraries with MSVC using CMake\n- Uses Windows Schannel for SSL (no OpenSSL dependency)\n- Installs to the specified prefix directory\n\n\u003e [!NOTE]\n\u003e Pre-built CURL binaries from curl.se (MinGW builds) are **not** compatible with MSVC and will cause linker errors.\n\n## Incorporating the SDK via `add_subdirectory`\n\nThe SDK can be incorporated into an existing application using CMake via `add_subdirectory.`.\n\n```cmake\n# Set SDK build options, for example:\nset(LD_BUILD_SHARED_LIBS On)\n\nadd_subdirectory(path-to-cpp-sdks-repo)\ntarget_link_libraries(your-app PRIVATE launchdarkly::client)\n# ... or launchdarkly::server\n````\n\n## Incorporating the SDK via `find_package`\n\n\u003e [!WARNING]   \n\u003e Preliminary support for `find_package` is available. The package configuration is subject to change, do not expect it\n\u003e to be stable as long as this notice is present.\n\nIf you've installed the SDK on the build system via `cmake --install`, you can consume it from\nthe target application like so:\n\n```cmake\nfind_package(launchdarkly REQUIRED)\ntarget_link_libraries(your-app PRIVATE launchdarkly::launchdarkly-cpp-client)\n# ... or launchdarkly::launchdarkly-cpp-server\n```\n\n## LaunchDarkly overview\n\n[LaunchDarkly](https://www.launchdarkly.com) is a feature management platform that serves trillions of feature flags\ndaily to help teams build better software, faster. [Get started](https://docs.launchdarkly.com/home/getting-started)\nusing LaunchDarkly today!\n\n[![Twitter Follow](https://img.shields.io/twitter/follow/launchdarkly.svg?style=social\u0026label=Follow\u0026maxAge=2592000)](https://twitter.com/intent/follow?screen_name=launchdarkly)\n\n## Testing\n\nWe run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test\nfor consistency across SDKs. These tests cover each method in the SDK, and verify that event sending, flag evaluation,\nstream reconnection, and other aspects of the SDK all behave correctly.\n\n## Contributing\n\nWe encourage pull requests and other contributions from the community. Check out\nour [contributing guidelines](CONTRIBUTING.md) for instructions on how to contribute to this SDK.\n\n## About LaunchDarkly\n\n- LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to\n  iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard.\n  With LaunchDarkly, you can:\n    - Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group),\n      gathering feedback and bug reports from real-world use cases.\n    - Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on\n      key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).\n    - Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy,\n      or even restart the application with a changed configuration file.\n    - Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get\n      access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate\n      maintenance, without taking everything offline.\n- LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies.\n  Read [our documentation](https://docs.launchdarkly.com/sdk) for a complete list.\n- Explore LaunchDarkly\n    - [launchdarkly.com](https://www.launchdarkly.com/ 'LaunchDarkly Main Website') for more information\n    - [docs.launchdarkly.com](https://docs.launchdarkly.com/ 'LaunchDarkly Documentation') for our documentation and SDK\n      reference guides\n    - [apidocs.launchdarkly.com](https://apidocs.launchdarkly.com/ 'LaunchDarkly API Documentation') for our API\n      documentation\n    - [blog.launchdarkly.com](https://blog.launchdarkly.com/ 'LaunchDarkly Blog Documentation') for the latest product\n      updates\n\n[//]: # 'libs/common'\n\n[shared-common-ci-badge]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/common.yml/badge.svg\n\n[shared-common-ci]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/common.yml\n\n[package-shared-common-issues]: https://github.com/launchdarkly/cpp-sdks/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+shared%2Fcommon%22+\n\n[//]: # 'libs/internal'\n\n[shared-internal-ci-badge]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/internal.yml/badge.svg\n\n[shared-internal-ci]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/internal.yml\n\n[package-shared-internal-issues]: https://github.com/launchdarkly/cpp-sdks/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+shared%2Finternal%22+\n\n\n[//]: # 'libs/server-sent-events'\n\n[shared-sse-ci-badge]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/sse.yml/badge.svg\n\n[shared-sse-ci]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/sse.yml\n\n[package-shared-sse-issues]: https://github.com/launchdarkly/cpp-sdks/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+shared%2Fsse%22+\n\n\n[//]: # 'libs/client-sdk'\n\n[cpp-client-ci-badge]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/client.yml/badge.svg\n\n[cpp-client-ci]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/client.yml\n\n[cpp-client-docs]: https://launchdarkly.github.io/cpp-sdks/libs/client-sdk/docs/html/\n\n[cpp-client-c-docs]: https://launchdarkly.github.io/cpp-sdks/libs/client-sdk/docs/html/sdk_8h.html\n\n[package-cpp-client-issues]: https://github.com/launchdarkly/cpp-sdks/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+sdk%2Fclient%22+\n\n[//]: # 'libs/server-sdk'\n\n[cpp-server-ci-badge]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/server.yml/badge.svg\n\n[cpp-server-ci]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/server.yml\n\n[cpp-server-docs]: https://launchdarkly.github.io/cpp-sdks/libs/server-sdk/docs/html/\n\n[cpp-server-c-docs]: https://launchdarkly.github.io/cpp-sdks/libs/server-sdk/docs/html/sdk_8h.html\n\n[package-cpp-server-issues]: https://github.com/launchdarkly/cpp-sdks/issues?q=is%3Aissue+is%3Aopen+label%3A%22package%3A+sdk%2Fserver%22+\n\n[//]: # 'libs/server-sdk-redis-source'\n\n[cpp-server-redis-ci-badge]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/server-redis.yml/badge.svg\n\n[cpp-server-redis-ci]: https://github.com/launchdarkly/cpp-sdks/actions/workflows/server-redis.yml\n\n[cpp-server-redis-docs]: https://launchdarkly.github.io/cpp-sdks/libs/server-sdk-redis-source/docs/html/\n\n[cpp-server-redis-c-docs]: https://launchdarkly.github.io/cpp-sdks/libs/server-sdk-redis-source/docs/html/redis__source_8h.html\n\n[package-cpp-server-redis-issues]: https://github.com/launchdarkly/cpp-sdks/issues?q=is%3Aopen+is%3Aissue+label%3A%22package%3A+integration%2Fredis%22\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fcpp-sdks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchdarkly%2Fcpp-sdks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchdarkly%2Fcpp-sdks/lists"}