Skip to content

Commit ea791d5

Browse files
mtmklevb
andauthored
Disable streaming by default (#770)
* Windows build tests * Exclude windows test flappers * Exclude windows test flappers 2 * Exclude test flappers * Added rerun-failed option * Rerun-failed retry * Rerun-failed retry * Exclude fails and flappers * Rerun-failed retry * Rerun-failed retry * Commented out excludes * Removed test excludes * Server download versions * Server download versions * Server download latest * Travis fix --------- Co-authored-by: Lev <1187448+levb@users.noreply.github.com>
1 parent 67489c3 commit ea791d5

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

CMakeLists.txt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,14 @@ option(NATS_BUILD_EXAMPLES "Build examples" ON)
4141
option(NATS_BUILD_LIBUV_EXAMPLE "Build libuv examples" OFF)
4242
option(NATS_BUILD_LIBEVENT_EXAMPLE "Build libevent examples" OFF)
4343
option(NATS_BUILD_STATIC_EXAMPLES "Statically link examples" OFF)
44-
option(NATS_BUILD_STREAMING "Build NATS Streaming" ON)
44+
45+
# Streaming is deprecated, but we still support it for now.
46+
# We will remove it in the future. If you are starting a new project,
47+
# please use JetStream. Another reason for disabling this is that
48+
# building with streaming requires protobuf-c and building on Windows
49+
# is not as straightforward as building without it.
50+
option(NATS_BUILD_STREAMING "Build NATS Streaming" OFF)
51+
4552
option(NATS_BUILD_NO_PREFIX_CONNSTS "No prefix for connection status enum" OFF)
4653
option(NATS_BUILD_LIB_STATIC "Build static library" ON)
4754
option(NATS_BUILD_LIB_SHARED "Build shared library" ON)

buildOnTravis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if [ "$1" != "gcc" ]; then
5454
fi
5555
fi
5656

57-
cmake .. $3
57+
cmake .. $3 -DNATS_BUILD_STREAMING=ON
5858
res=$?
5959
if [ $res -ne 0 ]; then
6060
exit $res

0 commit comments

Comments
 (0)