deps: disable default features for solana-sbpf in solana-transaction-context crate#7575
Conversation
|
@joncinque I discovered this issue while trying out the changes merged (and later reverted) in #7492. This is unfortunately a pretty big deal for us and would be amazing if we could include this in the upcoming 3.0.0 releases! |
|
@Lichtso Thank you so much for the review! It seems my first solution didn't quite work and I actually have to set For now, I've just enabled the Edit: it seems I can compile fine with |
|
How exactly are you consuming the |
|
I have a separate project, which depends on some crates from this repository and of which only
IIUC you are correct that feature flags are consolidated, however only crates being compiled are considered.
Since I am only building crates where the Does this make sense? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #7575 +/- ##
=======================================
Coverage 83.4% 83.4%
=======================================
Files 812 812
Lines 365102 365102
=======================================
+ Hits 304650 304682 +32
+ Misses 60452 60420 -32 🚀 New features to boost your workflow:
|
| solana-rent = { workspace = true } | ||
| solana-runtime = { workspace = true } | ||
| solana-sbpf = { workspace = true } | ||
| solana-sbpf = { workspace = true, features = ["jit"] } |
|
@Lichtso I guess this is ready to be merged 🎉 |
Problem
The
solana-sbpfdependency in thesolana-transaction-contextcrate (added in #5871) implicitly enables the default features which include thejitfeature ofsolana-sbpfand thus a transitive dependency to therandandgetrandomcrates. This also extends to e.g.solana-transaction-status-client-typeswhich depends onsolana-transaction-context.Summary of Changes
Set
default-features = falsefor thesolana-sbpfdependency at the workspace level, and explicitly enable thejitfeature all crates usingsolana-sbpfexcept thesolana-transaction-contextcrate.Fixes #