Skip to content
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

v2.2: Remove ignored default-features key from Cargo.toml files (backport of #4878) #4962

Closed
wants to merge 1 commit into from

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Feb 13, 2025

Problem

default-features is ignored for solana-program, and other sdk dependencies, since default-features was not specified for workspace.dependencies.solana-program.

Summary of Changes

Remove default-features key from Cargo.toml files.


This is an automatic backport of pull request #4878 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner February 13, 2025 04:13
@steviez
Copy link

steviez commented Feb 13, 2025

Justification for BP - current tip of v2.2 spits out these warning when building:

warning: /.../src/solana/transaction-status-client-types/Cargo.toml: `default-features` is ignored for solana-signature, since `default-features` was not specified for `workspace.dependencies.solana-signature`, this could become a hard error in the future
warning: /.../src/solana/account-decoder/Cargo.toml: `default-features` is ignored for solana-program, since `default-features` was not specified for `workspace.dependencies.solana-program`, this could become a hard error in the future
warning: /.../src/solana/svm/Cargo.toml: `default-features` is ignored for solana-program, since `default-features` was not specified for `workspace.dependencies.solana-program`, this could become a hard error in the future
warning: /.../src/solana/inline-spl/Cargo.toml: `default-features` is ignored for solana-pubkey, since `default-features` was not specified for `workspace.dependencies.solana-pubkey`, this could become a hard error in the future
warning: /.../src/solana/rpc-client/Cargo.toml: `default-features` is ignored for solana-program, since `default-features` was not specified for `workspace.dependencies.solana-program`, this could become a hard error in the future
warning: /.../src/solana/perf/Cargo.toml: `default-features` is ignored for solana-pubkey, since `default-features` was not specified for `workspace.dependencies.solana-pubkey`, this could become a hard error in the future
warning: /.../src/solana/quic-client/Cargo.toml: `default-features` is ignored for solana-pubkey, since `default-features` was not specified for `workspace.dependencies.solana-pubkey`, this could become a hard error in the future

@steviez steviez force-pushed the mergify/bp/v2.2/pr-4878 branch from aae1aca to 527f473 Compare February 13, 2025 17:32
@steviez
Copy link

steviez commented Feb 13, 2025

Rebased on tip of v2.2 to pick up 997abca for Windows CI

@t-nelson
Copy link

is this not the opposite of what we want to do? should instead not use the workspace dependency declaration and instead use a minimal features declaration

@LucasSte
Copy link

is this not the opposite of what we want to do? should instead not use the workspace dependency declaration and instead use a minimal features declaration

Do you mean listing the features separately for each crate? I believe the original intent of removing the default features was to avoid the warning when building.

@t-nelson
Copy link

the warning is irrelevant. my question is whether the default feature were intentionally removed for these specifications and that if so, we are resolving the warning in the wrong direction. that is, these specifications should not be using the workspace dependency declaration, but their own with the subset of features required

@LucasSte
Copy link

the warning is irrelevant. my question is whether the default feature were intentionally removed for these specifications and that if so, we are resolving the warning in the wrong direction. that is, these specifications should not be using the workspace dependency declaration, but their own with the subset of features required

@joncinque and @kevinheavey Any thoughts on using a subset of features for these SDK crates?

@joncinque
Copy link

joncinque commented Feb 17, 2025

I agree with Trent here, this was done incorrectly. Rather than removing default-features = false from the individual crates dependency declarations, we should be adding default-features = false to the workspace declaration, like with

solana-connection-cache = { path = "connection-cache", version = "=2.2.0", default-features = false }

@steviez
Copy link

steviez commented Mar 5, 2025

I'll do the approach that was discussed by Trent & Jon. So, I'm going to back this commit out of master in #5153. This means we shouldn't BP this so closing this out

@steviez steviez closed this Mar 5, 2025
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.

5 participants