Skip to content

Commit c5d5e0f

Browse files
Update documentation
1 parent 46b4ea6 commit c5d5e0f

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,15 @@ If you are looking to issue or verify more unique tokens, checkout out the [exam
100100

101101
Building on the goal of providing flexibility.
102102

103+
#### Modules support
104+
jwt-cpp supports C++20/23 modules. There are two configuration options `JWT_ENABLE_MODULES` to enable modules (С++20) and `JWT_USE_IMPORT_STD` to use `import std` (С++23).
105+
CMake example:
106+
```cmake
107+
set(JWT_ENABLE_MODULES ON)
108+
set(JWT_USE_IMPORT_STD ON)
109+
```
110+
You can now `import jwt_cpp;`.
111+
103112
#### SSL Compatibility
104113

105114
jwt-cpp supports [OpenSSL](https://github.com/openssl/openssl), [LibreSSL](https://github.com/libressl-portable/portable), and [wolfSSL](https://github.com/wolfSSL/wolfssl). For a listed of tested versions, check [this page](docs/ssl.md) for more details.

docs/install.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ It's strongly recommended to use a package manager, as JWT-CPP has dependencies
88

99
When manually adding this dependency, and the dependencies this has, check the GitHub Actions and Workflows for some inspiration about how to go about it.
1010

11+
#### Modules support
12+
jwt-cpp supports C++20/23 modules. There are two configuration options `JWT_ENABLE_MODULES` to enable modules (С++20) and `JWT_USE_IMPORT_STD` to use `import std` (С++23).
13+
CMake example:
14+
```cmake
15+
set(JWT_ENABLE_MODULES ON)
16+
set(JWT_USE_IMPORT_STD ON)
17+
```
18+
You can now `import jwt_cpp;`.
19+
1120
### Package Manager
1221

1322
- Conan: <https://conan.io/center/recipes/jwt-cpp>

0 commit comments

Comments
 (0)