| Crates.io | schema-registry-client |
| lib.rs | schema-registry-client |
| version | 0.4.1 |
| created_at | 2025-04-16 03:38:43.021758+00 |
| updated_at | 2025-08-23 23:27:37.801906+00 |
| description | Serialize/deserialize data to/from Kafka using the Confluent Schema Registry |
| homepage | https://github.com/rayokota/rust-schema-registry-client |
| repository | https://github.com/rayokota/rust-schema-registry-client |
| max_upload_size | |
| id | 1635770 |
| size | 670,602 |
A fully asynchronous Rust client library for interacting with the Confluent Schema Registry.
rust-schema-registry-client provides a Schema Registry client, along with serdes (serializers/deserializers) for
Avro, Protobuf, and JSON Schema.
This library can be used with rust-rdkafka but does not depend on it.
AvroSerializer and AvroDeserializer - serdes that use apache-avroProtobufSerializer and ProtobufDeserializer - serdes that use prost and prost-reflectJsonSerializer and JsonDeserializer - serdes that use jsonschemaAdd this to your Cargo.toml:
[dependencies]
schema-registry-client = { version = "0.4.1" }
The following features are available:
rules-cel - enables data quality rules using CELrules-encryption-awskms - enables CSFLE rules using AWS KMSrules-encryption-azurekms - enables CSFLE rules using Azure Key Vaultrules-encryption-gcpkms - enables CSFLE rules using Google Cloud KMSrules-encryption-hcvault - enables CSFLE rules using HashiCorp Vaultrules-encryption-localkms - enables CSFLE rules using a local KMS (for testing)rules-jsonata - enables schema migration rules using JSONataFor example, to use CSFLE with the AWS KMS, add this to your Cargo.toml:
[dependencies]
schema-registry-client = { version = "0.4.0", features = ["rules-encryption-awskms"] }
You can find examples in the examples folder. To run them:
cargo run --example <example_name> -- <example_args>
Further information can be found in this blog.