Skip to content

feat(rust): add dedicated TCP/TLS producer and consumer examples#2820

Open
atharvalade wants to merge 2 commits intoapache:masterfrom
atharvalade:rust-tcp-tls-examples
Open

feat(rust): add dedicated TCP/TLS producer and consumer examples#2820
atharvalade wants to merge 2 commits intoapache:masterfrom
atharvalade:rust-tcp-tls-examples

Conversation

@atharvalade
Copy link
Contributor

@atharvalade atharvalade commented Feb 26, 2026

Which issue does this PR close?

Closes #2810

Rationale

Users had no dedicated TLS examples in examples/rust/, making TLS configuration discoverable only through CLI args and source code.

What changed?

No dedicated TCP/TLS examples existed despite full TLS support in the Rust SDK. Users had to discover --tcp-tls-enabled, --tcp-tls-domain, and --tcp-tls-ca-file flags by reading source.

Added tcp-tls-producer and tcp-tls-consumer examples using IggyClientBuilder with .with_tls_enabled(true), .with_tls_domain("localhost"), and .with_tls_ca_file("core/certs/iggy_ca_cert.pem"). Updated Cargo.toml with example entries and args.rs with stream/topic name mappings.

Local Execution

Passed. cargo fmt --check and cargo clippy -p iggy_examples --examples both clean.

AI Usage

  1. Opus 4.6
  2. guided by existing getting-started examples and IggyClientBuilder API
  3. Compiled and linted locally, verified code follows existing patterns exactly
  4. Yes

@atharvalade atharvalade reopened this Feb 26, 2026
@atharvalade
Copy link
Contributor Author

atharvalade commented Feb 26, 2026

Resolved

Use IggyClientBuilder TLS options with custom CA certs from core/certs/
@atharvalade atharvalade force-pushed the rust-tcp-tls-examples branch from 8ff433e to 9d6bcda Compare February 26, 2026 17:37
@atharvalade atharvalade changed the title Add dedicated TCP/TLS producer and consumer examples for Rust SDK feat(rust): add dedicated TCP/TLS producer and consumer examples Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rust SDK: Add dedicated TCP/TLS examples

1 participant