Skip to content

Commit 636e448

Browse files
authored
Merge pull request #547 from belltoy/fix/snappy-dep
Remove snappyer from default dependency
2 parents cef61de + 158734b commit 636e448

File tree

5 files changed

+29
-13
lines changed

5 files changed

+29
-13
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
- 4.0.0
4+
- Remove `snappyer` from default dependency [PR#547](https://github.com/kafka4beam/brod/pull/547).
5+
Starting from `kafka_protocol-4.0`, it no longer requires compression libraries as rebar dependencies.
6+
Now `brod-4.0` has it removed too.
7+
For more compression options, see [kafka_protocol/README](https://github.com/kafka4beam/kafka_protocol/blob/master/README.md#compression-support)
8+
39
- 3.19.1
410
- Made brod-cli to work on OTP 26. [PR#582](https://github.com/kafka4beam/brod/pull/582)
511
- `--ssl` option is now mandatory if TLS is to be used (previously it can be derived from `--cacertfile` option)

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Why "brod"? [http://en.wikipedia.org/wiki/Max_Brod](http://en.wikipedia.org/wiki
2525
- Pick latest supported version when sending requests to kafka.
2626
- Direct APIs for message send/fetch and cluster inspection/management without having to start clients/producers/consumers.
2727
- A escriptized command-line tool for message send/fetch and cluster inspection/management.
28-
- Configurable compression library. `snappy` compression is supported by default.
28+
- Configurable compression library. No compression is supported by default for both producers and consumers.
2929
For more compression options, see [kafka_protocol/README](https://github.com/kafka4beam/kafka_protocol/blob/master/README.md#compression-support)
3030

3131
## Building and testing
@@ -114,6 +114,19 @@ two-level supervision trees.
114114
To use producers or consumers, you have to start at least one client that
115115
will manage them.
116116

117+
### Compression
118+
119+
Brod does not dependent on any compression/decompression implementation by default.
120+
To enable them, you must add the compression application as dependency in your project's rebar.config.
121+
122+
For example:
123+
124+
```erlang
125+
{deps, [
126+
{snappyer, "1.2.9"}
127+
]}.
128+
```
129+
117130
### Start clients by default
118131

119132
You may include client configs in `sys.config` have them started by default

rebar.config

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
{deps, [ {kafka_protocol, "4.1.5"}
2-
, {snappyer, "1.2.9"}
3-
]}.
1+
{deps, [{kafka_protocol, "4.1.5"}]}.
42
{project_plugins, [{coveralls, "~> 2.2.0"}, {rebar3_lint, "~> 3.2.5"}]}.
53
{edoc_opts, [{preprocess, true}, {macros, [{build_brod_cli, true}]}]}.
64
{erl_opts, [warnings_as_errors, warn_unused_vars,warn_shadow_vars,warn_obsolete_guard,debug_info]}.
@@ -9,8 +7,9 @@
97
deprecated_functions]}.
108
{profiles, [
119
{brod_cli, [
12-
{deps, [ {docopt, {git, "https://github.com/zmstone/docopt-erl.git", {branch, "0.1.3"}}}
10+
{deps, [ {docopt, {git, "https://github.com/zmstone/docopt-erl.git", {tag, "0.1.3"}}}
1311
, {jsone, "1.7.0"}
12+
, {snappyer, "1.2.9"}
1413
]},
1514
{erl_opts, [warnings_as_errors, {d, build_brod_cli}]},
1615
{escript_name, brod_cli},
@@ -23,11 +22,12 @@
2322
]}
2423
]}]},
2524
{test, [
26-
{deps, [ {docopt, {git, "https://github.com/zmstone/docopt-erl.git", {branch, "0.1.3"}}}
25+
{deps, [ {docopt, {git, "https://github.com/zmstone/docopt-erl.git", {tag, "0.1.3"}}}
2726
, {hut, "1.3.0"}
2827
, {jsone, "1.7.0"}
2928
, {meck, "0.9.2"}
3029
, {proper, "1.4.0"}
30+
, {snappyer, "1.2.9"}
3131
, {snabbkaffe, {git, "https://github.com/kafka4beam/snabbkaffe.git", {branch, "1.0.10"}}}
3232
]},
3333
{erl_opts, [warnings_as_errors, {d, build_brod_cli}]}

rebar.lock

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{"1.2.0",
22
[{<<"crc32cer">>,{pkg,<<"crc32cer">>,<<"0.1.8">>},1},
3-
{<<"kafka_protocol">>,{pkg,<<"kafka_protocol">>,<<"4.1.5">>},0},
4-
{<<"snappyer">>,{pkg,<<"snappyer">>,<<"1.2.9">>},0}]}.
3+
{<<"kafka_protocol">>,{pkg,<<"kafka_protocol">>,<<"4.1.5">>},0}]}.
54
[
65
{pkg_hash,[
76
{<<"crc32cer">>, <<"C6C2275C5FB60A95F4935D414F30B50EE9CFED494081C9B36EBB02EDFC2F48DB">>},
8-
{<<"kafka_protocol">>, <<"D15E64994A8CA99716AB47DB4132614359AC1BFA56D6C5B4341FDC1AA4041518">>},
9-
{<<"snappyer">>, <<"9CC58470798648CE34C662CA0AA6DAAE31367667714C9A543384430A3586E5D3">>}]},
7+
{<<"kafka_protocol">>, <<"D15E64994A8CA99716AB47DB4132614359AC1BFA56D6C5B4341FDC1AA4041518">>}]},
108
{pkg_hash_ext,[
119
{<<"crc32cer">>, <<"251499085482920DEB6C9B7AADABF9FB4C432F96ADD97AB42AEE4501E5B6F591">>},
12-
{<<"kafka_protocol">>, <<"C956C9357FEF493B7072A35D0C3E2BE02AA5186C804A412D29E62423BB15E5D9">>},
13-
{<<"snappyer">>, <<"18D00CA218AE613416E6EECAFE1078DB86342A66F86277BD45C95F05BF1C8B29">>}]}
10+
{<<"kafka_protocol">>, <<"C956C9357FEF493B7072A35D0C3E2BE02AA5186C804A412D29E62423BB15E5D9">>}]}
1411
].

src/brod.app.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[{description,"Apache Kafka Erlang client library"},
44
{vsn,"git"},
55
{registered,[]},
6-
{applications,[kernel,stdlib,kafka_protocol,snappyer]},
6+
{applications,[kernel,stdlib,kafka_protocol]},
77
{env,[]},
88
{mod, {brod, []}},
99
{modules,[]},

0 commit comments

Comments
 (0)