Skip to content

Conversation

leniram159
Copy link
Contributor

Replace VERGEN_CARGO_FEATURES with direct checks of CARGO_FEATURE_* environment variables. Accurate reporting of features actually enabled for the crate being built.

Fixes #19123

@leniram159 leniram159 changed the title Fix: Accurate build features reporting in reth --version fix: accurate build features reporting in reth --version Oct 18, 2025
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

instead of doing this

we need to remove these from the default features

default = ["jemalloc", "otlp"]

and instead enable them properly in the binaries

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Oct 20, 2025
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

these lgtm

pending @Rjected or @shekhirin

cc @fgimenez for vis

tempfile.workspace = true

[features]
default = ["jemalloc", "otlp"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

imo this makes sense

because we make them configurable via the binary

@leniram159 leniram159 requested a review from mattsse October 20, 2025 11:54
@mattsse mattsse added M-changelog This change should be included in the changelog A-cli Related to the reth CLI labels Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-cli Related to the reth CLI M-changelog This change should be included in the changelog

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

--no-default-features build still reports jemalloc under “Build Features” (FreeBSD)

2 participants