nats-io / nats.c

A C client for NATS
Apache License 2.0
382 stars 132 forks source link

Improve Windows build support #760

Closed mtmk closed 2 months ago

mtmk commented 2 months ago

Added vcpkg.json as package manifest for dependencies. Changed the build options in CMakeLists.txt by specifying the output directories to make sure DLLs are copied next to executables for Windows debugging in an IDE (e.g. Visual Studio or CLion) Disabled the build of NATS streaming for windows builds since protobuf-c dependency doesn't seem to be working properly, and it's deprecated anyway. Further, updated .gitignore to exclude Visual Studio related files and the 'out' directory which VS seems to use by default for build output.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 68.72%. Comparing base (1cb8d8c) to head (b85395a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #760 +/- ## ========================================== + Coverage 68.68% 68.72% +0.03% ========================================== Files 39 39 Lines 15186 15186 Branches 3139 3139 ========================================== + Hits 10431 10437 +6 + Misses 1702 1695 -7 - Partials 3053 3054 +1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.