From e79d59583d8a086cb93eeb316adef6ab369d55e8 Mon Sep 17 00:00:00 2001 From: Gerard Klijs Date: Sat, 20 Feb 2021 11:43:45 +0100 Subject: [PATCH] update dependencies --- Cargo.toml | 26 +++++++++++++------------- README.md | 6 +++--- RELEASE_NOTES.md | 9 +++++++-- docker-compose.yaml | 6 +++--- tests/blocking/kafka_producer.rs | 2 +- 5 files changed, 27 insertions(+), 22 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index fcae054..260634d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "schema_registry_converter" -version = "2.0.1" +version = "2.0.2" authors = ["Gerard Klijs "] include = ["src/**/*", "Cargo.toml"] description = "Encode/decode data from/to kafka using the Confluent Schema Registry" @@ -22,13 +22,13 @@ kafka_test = [] default = ["futures"] [dependencies.byteorder] -version = "^1.3" +version = "^1.4" [dependencies.failure] version = "^0.1" [dependencies.reqwest] -version = "^0.10" +version = "^0.11" features = ["json"] [dependencies.serde] @@ -39,11 +39,11 @@ features = ["derive"] version = "^1.0" [dependencies.avro-rs] -version = "^0.11" +version = "^0.13" optional = true [dependencies.bytes] -version = "^0.5" +version = "^1.0" optional = true [dependencies.futures] @@ -51,15 +51,15 @@ version = "^0.3" optional = true [dependencies.integer-encoding] -version = "^2.1" +version = "^3.0" optional = true [dependencies.logos] -version = "^0.11" +version = "^0.12" optional = true [dependencies.protofish] -version = "^0.2" +version = "^0.3" optional = true [dependencies.url] @@ -67,15 +67,15 @@ version = "^2" optional = true [dependencies.valico] -version = "^3.4" +version = "^3.5" optional = true [dev-dependencies] -mockito = "^0.27.0" -rdkafka = { version = "^0.23.1", features = ["cmake-build"] } -rand = "^0.7.3" +mockito = "^0.29.0" +rdkafka = { version = "^0.25.0", features = ["cmake-build"] } +rand = "^0.8.3" test_utils = {path = "test_utils"} -tokio = { version = "^0.2.22", features = ["macros"] } +tokio = { version = "^1.2.0", features = ["macros"] } [package.metadata.docs.rs] all-features = true diff --git a/README.md b/README.md index 02e1346..33f89ee 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ To use it to convert using avro async use: ```toml [dependencies] -schema_registry_converter = { version = "2.0.1", features = ["avro"] } +schema_registry_converter = { version = "2.0.2", features = ["avro"] } ``` ...and see the [docs](https://docs.rs/schema_registry_converter) for how to use it. @@ -44,14 +44,14 @@ All the converters also have a blocking (non async) version, in that case use so ```toml [dependencies] -schema_registry_converter = { version = "2.0.1", default-features = false, features = ["avro", "blocking"]} +schema_registry_converter = { version = "2.0.2", default-features = false, features = ["avro", "blocking"]} ``` If you need to use both in a project you can use something like, but have to be weary you import the correct paths depending on your use. ```toml [dependencies] -schema_registry_converter = { version = "2.0.1", features = ["avro", "blocking"]} +schema_registry_converter = { version = "2.0.2", features = ["avro", "blocking"]} ``` # Example with consumer and producer using Avro diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index a6e0cce..aaeb010 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,9 @@ ## Release notes +### 2.0.2 + +Updated dependencies + ### 2.0.1 Maintenance release with mainly updated dependencies, making the blocking sr settings cloneable and no longer needs `kafka_test` feature to use both blocking and async in the same project. @@ -14,7 +18,7 @@ Another major change is by default support for async. To use the new version of the library, and continue to use it in a blocking way like it was before, you need to use the library like: ```toml -schema_registry_converter = { version = "2.0.1", default-features = false, features = ["avro", "blocking"]} +schema_registry_converter = { version = "2.0.2", default-features = false, features = ["avro", "blocking"]} ``` Also the Converters are moved to the blocking module, and to create the converters you need a SrSettings object, which can be created with just the schema registry url. @@ -62,5 +66,6 @@ instead of the `encode` function on the encoder. #### Contributors - [@cbzehner](https://github.com/cbzehner) +- [@j-halbert](https://github.com/j-halbert) - [@kitsuneninetails](https://github.com/kitsuneninetails) -- [@j-halbert](https://github.com/j-halbert) \ No newline at end of file +- [@naamancurtis](https://github.com/naamancurtis) \ No newline at end of file diff --git a/docker-compose.yaml b/docker-compose.yaml index 32fd236..924bec1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -2,7 +2,7 @@ version: '2' services: zookeeper: - image: confluentinc/cp-zookeeper:5.5.1 + image: confluentinc/cp-zookeeper:6.1.0 hostname: zookeeper container_name: zookeeper ports: @@ -12,7 +12,7 @@ services: ZOOKEEPER_TICK_TIME: 2000 broker: - image: confluentinc/cp-server:5.5.1 + image: confluentinc/cp-server:6.1.0 hostname: broker container_name: broker depends_on: @@ -37,7 +37,7 @@ services: CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous' schema-registry: - image: confluentinc/cp-schema-registry:5.5.1 + image: confluentinc/cp-schema-registry:6.1.0 hostname: schema-registry container_name: schema-registry depends_on: diff --git a/tests/blocking/kafka_producer.rs b/tests/blocking/kafka_producer.rs index 4fdb946..953001f 100644 --- a/tests/blocking/kafka_producer.rs +++ b/tests/blocking/kafka_producer.rs @@ -35,7 +35,7 @@ impl<'a> RecordProducer { timestamp: None, headers: None, }; - self.producer.send(fr, 0); + self.producer.send_result(fr).unwrap(); } }