-
Notifications
You must be signed in to change notification settings - Fork 123
chore: feature cleanup #1236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: feature cleanup #1236
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ exclude = ["protos/*/.github/*"] | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
|
||
| [features] | ||
| history_builders = ["rand"] | ||
| history_builders = ["dep:rand"] | ||
| otel = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp"] | ||
| prometheus = [ | ||
| "dep:prometheus", | ||
|
|
@@ -26,12 +26,8 @@ prometheus = [ | |
| envconfig = ["dep:toml", "dep:dirs"] | ||
| serde_serialize = [] | ||
| test-utilities = ["history_builders"] | ||
| core-based-sdk = [ | ||
| "prometheus", | ||
| "envconfig", | ||
| "dep:ringbuf", | ||
| "dep:futures-channel", | ||
| ] | ||
| core-telemetry-bridge = ["dep:ringbuf", "dep:futures-channel"] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 |
||
| core-based-sdk = ["core-telemetry-bridge", "prometheus", "envconfig"] | ||
|
|
||
| [dependencies] | ||
| anyhow = "1.0" | ||
|
|
@@ -85,7 +81,10 @@ tokio = { version = "1.47", default-features = false, features = [ | |
| "rt", | ||
| ], optional = true } | ||
| toml = { version = "1.0", optional = true } | ||
| tonic = { workspace = true, default-features = false, features = ["transport", "codegen"] } | ||
| tonic = { workspace = true, default-features = false, features = [ | ||
| "transport", | ||
| "codegen", | ||
| ] } | ||
| tonic-prost = { workspace = true } | ||
| tracing = "0.1" | ||
| # TODO [rust-sdk-branch]: Is it reasonable to make this optional? | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,12 +10,15 @@ repository = "https://github.com/temporalio/sdk-rust" | |
| keywords = ["temporal", "workflow"] | ||
| categories = ["development-tools"] | ||
| exclude = ["machine_coverage/*"] | ||
| rust-version = "1.88.0" # due to cargo msrv find | ||
| # due to cargo msrv find | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Comment move as my TOML formatter claims that inline |
||
| rust-version = "1.88.0" | ||
|
|
||
| [lib] | ||
|
|
||
| [features] | ||
| default = [] | ||
| default = ["envconfig", "prometheus"] | ||
| envconfig = ["temporalio-client/envconfig", "temporalio-common/envconfig"] | ||
| prometheus = ["temporalio-common/prometheus"] | ||
| otel = [ | ||
| "dep:opentelemetry", | ||
| "dep:opentelemetry_sdk", | ||
|
|
@@ -95,7 +98,12 @@ tokio = { version = "1.47", default-features = false, features = [ | |
| ] } | ||
| tokio-util = { version = "0.7", features = ["io", "io-util"] } | ||
| tokio-stream = { version = "0.1", default-features = false } | ||
| tonic = { workspace = true, default-features = false, features = ["tls-ring", "tls-native-roots", "transport", "codegen"] } | ||
| tonic = { workspace = true, default-features = false, features = [ | ||
| "tls-ring", | ||
| "tls-native-roots", | ||
| "transport", | ||
| "codegen", | ||
| ] } | ||
| tracing = "0.1" | ||
| url = "2.5" | ||
| uuid = { version = "1.18", default-features = false, features = ["v4"] } | ||
|
|
@@ -110,11 +118,13 @@ zip = { version = "8.4", optional = true, default-features = false, features = [ | |
| [dependencies.temporalio-common] | ||
| path = "../common" | ||
| version = "0.3" | ||
| features = ["core-based-sdk", "history_builders", "test-utilities"] | ||
| default-features = false | ||
| features = ["core-telemetry-bridge", "history_builders"] | ||
|
|
||
| [dependencies.temporalio-client] | ||
| path = "../client" | ||
| version = "0.3" | ||
| default-features = false | ||
| features = ["core-based-sdk"] | ||
|
|
||
| [dependencies.temporalio-macros] | ||
|
|
@@ -139,6 +149,9 @@ hyper-util = { version = "0.1", features = [ | |
| rstest = "0.26" | ||
| semver = "1.0" | ||
| temporalio-sdk = { path = "../sdk" } | ||
| temporalio-common = { path = "../common", version = "0.3", default-features = false, features = [ | ||
| "test-utilities", | ||
| ] } | ||
| tokio = { version = "1.47", default-features = false, features = [ | ||
| "rt", | ||
| "rt-multi-thread", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -46,10 +46,12 @@ default-features = false | |
| [dependencies.temporalio-common] | ||
| path = "../common" | ||
| version = "0.3" | ||
| default-features = false | ||
|
|
||
| [dependencies.temporalio-client] | ||
| path = "../client" | ||
| version = "0.3" | ||
| default-features = false | ||
|
|
||
| [dependencies.temporalio-macros] | ||
| path = "../macros" | ||
|
|
@@ -60,9 +62,11 @@ futures = "0.3" | |
| rstest = "0.26" | ||
|
|
||
| [features] | ||
| default = [] | ||
| antithesis_assertions = ["temporalio-sdk-core/antithesis_assertions"] | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| examples = ["serde/derive", "dep:serde_json"] | ||
| default = ["envconfig", "prometheus"] | ||
| envconfig = ["temporalio-sdk-core/envconfig"] | ||
| prometheus = ["temporalio-sdk-core/prometheus"] | ||
| otel = ["temporalio-sdk-core/otel"] | ||
| examples = ["serde/derive", "dep:serde_json", "envconfig"] | ||
|
|
||
| [dependencies.serde_json] | ||
| version = "1" | ||
|
|
||
There was a problem hiding this comment.
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