Skip to content

chore: feature cleanup#1236

Merged
chris-olszewski merged 4 commits intomainfrom
olszewski/chore_feature_cleanup
Apr 28, 2026
Merged

chore: feature cleanup#1236
chris-olszewski merged 4 commits intomainfrom
olszewski/chore_feature_cleanup

Conversation

@chris-olszewski
Copy link
Copy Markdown
Member

@chris-olszewski chris-olszewski commented Apr 25, 2026

What was changed

Make temporalio-sdk feature forwarding explicit so SDK users can opt out of optional lower-level dependencies with default-features = false. Most of this boiled down to disabling default features when declaring dependencies on in-repo crates.

Why?

Give Rust SDK users full control of what underlying features get enabled. Building on top of core-based-sdk was too coarse as end users in other languages can't specify Cargo level features as they can in Rust.

Checklist

  1. Closes N/A

  2. How was this tested:
    CI

  3. Any docs updates needed?
    Updated README

Comment thread crates/common/Cargo.toml
"dep:ringbuf",
"dep:futures-channel",
]
core-telemetry-bridge = ["dep:ringbuf", "dep:futures-channel"]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Splitting this out so we can allow Rust SDK users to opt out of prometheus/envconfig

categories = ["development-tools"]
exclude = ["machine_coverage/*"]
rust-version = "1.88.0" # due to cargo msrv find
# due to cargo msrv find
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Comment move as my TOML formatter claims that inline # comments should start at column 80 which looks horrible.

Comment thread crates/sdk/Cargo.toml

[features]
default = []
antithesis_assertions = ["temporalio-sdk-core/antithesis_assertions"]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I didn't see any real reason why this needed to be surfaced to the SDK crate.

@chris-olszewski chris-olszewski marked this pull request as ready for review April 25, 2026 18:53
@chris-olszewski chris-olszewski requested a review from a team as a code owner April 25, 2026 18:53
Comment thread crates/common/Cargo.toml

[features]
history_builders = ["rand"]
history_builders = ["dep:rand"]
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

P sure dep: prefix is required here

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.

2 participants