Skip to content

feat!: Use portable atomic so we can run on esp32#107

Open
rklaehn wants to merge 7 commits into
mainfrom
esp32-compat
Open

feat!: Use portable atomic so we can run on esp32#107
rklaehn wants to merge 7 commits into
mainfrom
esp32-compat

Conversation

@rklaehn

@rklaehn rklaehn commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Use portable atomic so we can run on esp32

Also don't use iroh without default features so we don't inherit ring. None of these changes should be a problem for the normal desktop platforms.

Use iroh without default features so we don't inherit ring
Comment thread Cargo.toml Outdated
Comment thread irpc-iroh/Cargo.toml
# default-features = false drops irpc's `noq_endpoint_setup` (rcgen + noq/rustls-ring,
# both ring) — test-only cert utilities not needed by the iroh transport. Keep the
# real RPC features. Required for the ring-free Xtensa ESP32 build.
irpc = { version = "0.17.0", path = "..", default-features = false, features = ["rpc", "spans", "stream", "derive"] }

@Frando Frando Jul 1, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe spans should be defined as a feature on irpc-iroh and passed through to irpc Same for tracing-opentelemetry I think.

Also let's reword the LLM comment here IMO.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need any comment. We should make it the default to include iroh with no default features for all library crates.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But should we unconditionally enable the spans feature for iprc? Or should that be gated on a spans feature in irpc-iroh (on by default) that forwards it to irpc? I think yes.

@rklaehn
rklaehn requested review from Frando and dignifiedquire July 9, 2026 08:33
rklaehn added 2 commits July 10, 2026 12:39
Importing a crate with default features false should be the default, it
does not need a comment.
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.

3 participants