Skip to content

Commit e84f4ce

Browse files
authored
Bump version to 2.0.1 and update documentation (#35)
1 parent f7ab5e6 commit e84f4ce

File tree

5 files changed

+12
-26
lines changed

5 files changed

+12
-26
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.0.1] - 2025-03-09
9+
10+
### Changed
11+
12+
- Restructured Bazel build system for better organization
13+
814
## [2.0.0] - 2025-03-09
915

1016
### Changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.19)
2-
project(jsonrpc-cpp-lib VERSION 2.0.0 LANGUAGES CXX)
2+
project(jsonrpc-cpp-lib VERSION 2.0.1 LANGUAGES CXX)
33

44
# Set C++ standard
55
set(CMAKE_CXX_STANDARD 20)

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ MODULE.bazel file for the jsonrpc module
44

55
module(
66
name = "jsonrpc_cpp_lib",
7-
version = "2.0.0",
7+
version = "2.0.1",
88
)
99

1010
# Dependencies from the Bazel Central Registry

README.md

Lines changed: 3 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -31,38 +31,18 @@ There are several ways to include this library in your project:
3131

3232
Bazel provides a streamlined dependency management experience. To include this library in your project with Bazel, ensure you are using Bazel 7.0 or later, as Bzlmod is enabled by default.
3333

34-
##### A. Modern Approach: Using Bzlmod with Git Override (Recommended)
35-
36-
This is the modern, recommended approach that automatically handles all dependencies:
37-
3834
```bazel
3935
# In your MODULE.bazel file
4036
bazel_dep(name = "jsonrpc_cpp_lib", version = "0.0.0")
4137
git_override(
4238
module_name = "jsonrpc_cpp_lib",
4339
remote = "https://github.com/hankhsu1996/jsonrpc-cpp-lib.git",
44-
tag = "v2.0.0"
40+
tag = "v2.0.1"
4541
)
4642
```
4743

4844
With this approach, all of this library's dependencies (nlohmann_json, spdlog, asio, etc.) will be automatically pulled in and version-managed by Bazel.
4945

50-
##### B. Traditional Approach: Using HTTP Archive
51-
52-
If you prefer the traditional approach, add the following to your `MODULE.bazel` or `WORKSPACE.bazel` file:
53-
54-
```bazel
55-
http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
56-
http_archive(
57-
name = "jsonrpc",
58-
urls = ["https://github.com/hankhsu1996/jsonrpc-cpp-lib/archive/refs/tags/v2.0.0.tar.gz"],
59-
strip_prefix = "jsonrpc-cpp-lib-2.0.0",
60-
sha256 = "12ce2e8d539e01f0f226ba4be409115aff88e48dbe4c6d7178fdcbdd7fb54244",
61-
)
62-
```
63-
64-
Note: With this approach, you'll need to manually add all dependencies (nlohmann_json, spdlog, asio, etc.) to your build files.
65-
6646
#### Option 2: Using CMake
6747

6848
CMake offers two main approaches for including this library:
@@ -76,7 +56,7 @@ include(FetchContent)
7656
FetchContent_Declare(
7757
jsonrpc-cpp-lib
7858
GIT_REPOSITORY https://github.com/hankhsu1996/jsonrpc-cpp-lib.git
79-
GIT_TAG v2.0.0
59+
GIT_TAG v2.0.1
8060
)
8161
FetchContent_MakeAvailable(jsonrpc-cpp-lib)
8262
@@ -122,7 +102,7 @@ For projects using Conan for dependency management, create a `conanfile.txt` in
122102

123103
```ini
124104
[requires]
125-
jsonrpc-cpp-lib/2.0.0
105+
jsonrpc-cpp-lib/2.0.1
126106

127107
[generators]
128108
CMakeDeps

conanfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class JsonRpcRecipe(ConanFile):
66
""" Conan recipe for jsonrpc-cpp-lib """
77
name = "jsonrpc-cpp-lib"
8-
version = "2.0.0"
8+
version = "2.0.1"
99
license = "MIT"
1010
author = "Shou-Li Hsu <hank850503@gmail.com>"
1111
url = "https://github.com/hankhsu1996/jsonrpc-cpp-lib"

0 commit comments

Comments
 (0)