Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,32 @@ Requires Python 3.10-3.14.

The C++ library is the core implementation. Both Python and TypeScript bindings are built on top of it.

#### Using vcpkg

Clone the repository and use the overlay port:

```bash
git clone https://github.com/USTC-KnowledgeComputingLab/ds.git
vcpkg install ds --overlay-ports=./ds/ports
```

Add to your `vcpkg.json`:

```json
{
"dependencies": ["ds"]
}
```

In your CMakeLists.txt:

```cmake
find_package(ds CONFIG REQUIRED)
target_link_libraries(your_target PRIVATE ds::ds)
```

Copilot AI Dec 3, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The vcpkg section in README.md is missing the CMake integration example that is present in the documentation file (installation.md). Users reading the README would benefit from seeing the complete usage pattern including find_package(ds CONFIG REQUIRED) and target_link_libraries(your_target PRIVATE ds::ds), as this shows how to actually use the installed package in their projects.

Suggested change
#### CMake Integration Example
After installing with vcpkg, you can use the library in your CMake project as follows:
```cmake
find_package(ds CONFIG REQUIRED)
target_link_libraries(your_target PRIVATE ds::ds)

Copilot uses AI. Check for mistakes.
#### Building from Source

```bash
git clone https://github.com/USTC-KnowledgeComputingLab/ds.git
cd ds
Expand Down
24 changes: 24 additions & 0 deletions docs/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,30 @@ The C++ library is the core implementation. Both Python and TypeScript bindings
- C++20 compatible compiler (GCC 10+, Clang 10+, MSVC 2019+)
- CMake 3.30+

### Using vcpkg

Clone the repository and use the overlay port:

```bash
git clone https://github.com/USTC-KnowledgeComputingLab/ds.git
vcpkg install ds --overlay-ports=./ds/ports
```

Add to your `vcpkg.json`:

```json
{
"dependencies": ["ds"]
}
```

In your CMakeLists.txt:

```cmake
find_package(ds CONFIG REQUIRED)
target_link_libraries(your_target PRIVATE ds::ds)
```

### Building from Source

```bash
Expand Down