/cpp-sdks

C++ Client/Server SDKs for Launch Darkly

Primary LanguageC++OtherNOASSERTION

LaunchDarkly monorepo for C++ SDKs.

This repository contains LaunchDarkly SDK packages which are written in C++. This includes shared libraries, used by SDKs and other tools, as well as SDKs.

Packages

Readme issues tests docs latest release
libs/client-sdk C++ Client SDK Actions Status Documentation On Github
Shared packages issues tests
libs/common Common Actions Status
libs/server-sent-events Common Server-Sent-Events Actions Status

Organization

Directory Description
.github Contains CI and release process workflows and actions.
examples Contains examples (hello-world style).
contract-tests Contains contract test service.
cmake Contains cmake files for importing and configuring external libraries.
libs Contains library implementations. This includes libraries shared within the project as well as SDK libraries like the client-sdk.
scripts Contains scripts used in the release process.
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.

Build Requirements

Dependencies

  1. C++17 and above
  2. CMake 3.19 or higher
  3. Ninja (if using the included build scripts)
  4. Boost version 1.81 or higher
  5. OpenSSL

Additional dependencies are fetched via CMake. For details see the cmake folder.

GoogleTest is used for testing.

For information on integrating an SDK package please refer to the SDK specific README.

LaunchDarkly overview

LaunchDarkly is a feature management platform that serves trillions of feature flags daily to help teams build better software, faster. Get started using LaunchDarkly today!

Twitter Follow

Testing

We run integration tests for all our SDKs using a centralized test harness. This approach gives us the ability to test for consistency across SDKs, as well as test networking behavior in a long-running application. These tests cover each method in the SDK, and verify that event sending, flag evaluation, stream reconnection, and other aspects of the SDK all behave correctly.

Contributing

We encourage pull requests and other contributions from the community. Check out our contributing guidelines for instructions on how to contribute to this SDK.

About LaunchDarkly

  • LaunchDarkly is a continuous delivery platform that provides feature flags as a service and allows developers to iterate quickly and safely. We allow you to easily flag your features and manage them from the LaunchDarkly dashboard. With LaunchDarkly, you can:
    • Roll out a new feature to a subset of your users (like a group of users who opt-in to a beta tester group), gathering feedback and bug reports from real-world use cases.
    • Gradually roll out a feature to an increasing percentage of users, and track the effect that the feature has on key metrics (for instance, how likely is a user to complete a purchase if they have feature A versus feature B?).
    • Turn off a feature that you realize is causing performance problems in production, without needing to re-deploy, or even restart the application with a changed configuration file.
    • Grant access to certain features based on user attributes, like payment plan (eg: users on the ‘gold’ plan get access to more features than users in the ‘silver’ plan). Disable parts of your application to facilitate maintenance, without taking everything offline.
  • LaunchDarkly provides feature flag SDKs for a wide variety of languages and technologies. Read our documentation for a complete list.
  • Explore LaunchDarkly