This is an automated email from the ASF dual-hosted git repository. xyz pushed a commit to branch bewaremypower/release-cpp-4.0.0 in repository https://gitbox.apache.org/repos/asf/pulsar-site.git
commit 8f7c24f18fd19001113eda914fab259742e2bac0 Author: Yunze Xu <[email protected]> AuthorDate: Fri Dec 12 17:00:59 2025 +0800 Add C++ Client release note 4.0.0 and update C++ standard requirement --- data/release-cpp.js | 1 + docs/client-libraries-cpp.md | 12 ++++++++---- release-notes/versioned/client-cpp-4.0.0.md | 16 ++++++++++++++++ 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/data/release-cpp.js b/data/release-cpp.js index e538efca3fc..4a9a05af32c 100644 --- a/data/release-cpp.js +++ b/data/release-cpp.js @@ -1,4 +1,5 @@ module.exports = [ +{tagName: "v4.0.0",vtag:"4.0.x",releaseNotes:"/release-notes/versioned/client-cpp-4.0.0/",doc:"/docs/client-libraries-cpp",version:"v4.0.x"}, {tagName: "v3.8.0",vtag:"3.8.x",releaseNotes:"/release-notes/versioned/client-cpp-3.8.0/",doc:"/docs/client-libraries-cpp",version:"v3.8.x"}, {tagName: "v3.7.2",vtag:"3.7.x",releaseNotes:"/release-notes/versioned/client-cpp-3.7.2/",doc:"/docs/client-libraries-cpp",version:"v3.7.x"}, {tagName: "v3.7.1",vtag:"3.7.x",releaseNotes:"/release-notes/versioned/client-cpp-3.7.1/",doc:"/docs/client-libraries-cpp",version:""}, diff --git a/docs/client-libraries-cpp.md b/docs/client-libraries-cpp.md index 65a0705e6ad..9128a045d9c 100644 --- a/docs/client-libraries-cpp.md +++ b/docs/client-libraries-cpp.md @@ -31,6 +31,10 @@ You can use a Pulsar C++ client to create Pulsar [producers](concepts-clients.md - [Supported schema types](https://github.com/apache/pulsar-client-cpp/blob/main/include/pulsar/Schema.h) - [Client feature matrix](/client-feature-matrix/) +## Changes for 4.0.0 and later versions + +C++17 is now required for 4.0.0 and later versions. + ## Changes for 3.0.0 and later versions The new version of the Pulsar C++ client starts from 3.0.0 and has been no longer consistent with Pulsar since 2.10.x. For the latest releases, see the [Download](/download/) page. @@ -52,11 +56,11 @@ Here is an example to link these libraries for a C++ source file named `main.cc` ```bash # Link to libpulsar.so -g++ -std=c++11 main.cc -lpulsar +g++ -std=c++17 main.cc -lpulsar # Link to libpulsarwithdeps.a -g++ -std=c++11 main.cc /usr/lib/libpulsarwithdeps.a -lpthread -ldl +g++ -std=c++17 main.cc /usr/lib/libpulsarwithdeps.a -lpthread -ldl # Link to libpulsar.a -g++ -std=c++11 main.cc /usr/lib/libpulsar.a \ +g++ -std=c++17 main.cc /usr/lib/libpulsar.a \ -lprotobuf -lcurl -lssl -lcrypto -lz -lzstd -lsnappy -lpthread -ldl ``` @@ -70,4 +74,4 @@ Linking to `libpulsar.a` can be difficult for beginners because the 3rd party de Before 3.0.0, there was a `libpulsarnossl.so`, which is removed now. -::: \ No newline at end of file +::: diff --git a/release-notes/versioned/client-cpp-4.0.0.md b/release-notes/versioned/client-cpp-4.0.0.md new file mode 100644 index 00000000000..7807b460106 --- /dev/null +++ b/release-notes/versioned/client-cpp-4.0.0.md @@ -0,0 +1,16 @@ +--- +id: client-cpp-4.0.0 +title: Client CPP 4.0.0 +sidebar_label: Client CPP 4.0.0 +--- + +## What's Changed +* Support get the producer name of a message by @BewareMyPower in https://github.com/apache/pulsar-client-cpp/pull/524 +* Bump the C++ standard to 17 by @BewareMyPower in https://github.com/apache/pulsar-client-cpp/pull/525 +* [fix][ProtobufNativeSchema] Fix build by converting abseil string_view to std::string by @dannf in https://github.com/apache/pulsar-client-cpp/pull/527 +* Support getting encryption context on a message by @BewareMyPower in https://github.com/apache/pulsar-client-cpp/pull/526 + +## New Contributors +* @dannf made their first contribution in https://github.com/apache/pulsar-client-cpp/pull/527 + +**Full Changelog**: https://github.com/apache/pulsar-client-cpp/compare/v3.8.0...v4.0.0
