Skip to content

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

Merged
hubcio merged 5 commits intoapache:masterfrom
atharvalade:rust-tcp-tls-examples
Mar 9, 2026
Merged

feat(rust): add dedicated TCP/TLS producer and consumer examples#2820
hubcio merged 5 commits intoapache:masterfrom
atharvalade:rust-tcp-tls-examples

Conversation

@atharvalade
Copy link
Copy Markdown
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
Copy Markdown
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
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 6, 2026

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.

If you need a review, please ensure CI is green and the PR is rebased on the latest master. Don't hesitate to ping the maintainers - either @core on Discord or by mentioning them directly here on the PR.

Thank you for your contribution!

@github-actions github-actions bot added the stale Inactive issue or pull request label Mar 6, 2026
@github-actions github-actions bot removed the stale Inactive issue or pull request label Mar 8, 2026
@hubcio hubcio merged commit 52afc3c into apache:master Mar 9, 2026
31 checks passed
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

3 participants