-
Notifications
You must be signed in to change notification settings - Fork 39
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
Mithril-client-lib: Gate snapshot download & message computation behind a feature #1344
Conversation
Test Results 3 files ±0 30 suites ±0 7m 27s ⏱️ +6s Results for commit c1b9afb. ± Comparison against base commit d02447f. This pull request removes 1 and adds 1 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
35cfe76
to
a980484
Compare
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.
LGTM 👍
a980484
to
5e03472
Compare
306fadf
to
51fa12b
Compare
51fa12b
to
8e7a064
Compare
- This feature is disabled by default - A `full` feature is also added to enable it and any other features that we would add in the future
This will allow to pass the features when building mithril-client.
This is a temporary fix to avoid red nix CI.
8e7a064
to
3c52f84
Compare
FYI @scarmuega, @falcucci you might need to add the |
…/feature_for_snapshot_download Mithril-client-lib: Gate snapshot download & message computation behind a feature
…/feature_for_snapshot_download Mithril-client-lib: Gate snapshot download & message computation behind a feature
…/feature_for_snapshot_download Mithril-client-lib: Gate snapshot download & message computation behind a feature
Content
This PR gates the snapshot download and snapshot message computation of the mithril-client library behind a
fs
feature.This feature is disabled by default because it simpler to enable a feature than to disable a default feature.
The doc is updated to add "Available on crate feature fs only" labels, ie:
But for those labels to show we need to trick cargo since this features is still unstable.
For that we took inspiration from tokio, a major crate that use this feature, cf their main toml (for how to trick doc rs to add a rustc flag that will be used to enable the feature) and their dedicated doc macros.
To test the the labels locally you need to:
cfg_attr(docsrs
conditions from thelib.rs
rustup default nightly
)cargo doc --no-deps -p mithril-client --open --all-features
Pre-submit checklist
Comments
CI scripts had to be adapted to use the feature to trigger the tests and to include the gated functions in the doc.
Issue(s)
Relates to #1311