-
Notifications
You must be signed in to change notification settings - Fork 60
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
Implement async
trait DataStore
using maybe-async-await
macro
#725
Conversation
dd64839
to
0425631
Compare
@@ -37,8 +38,8 @@ lint: format fix clippy ## Runs all linting tasks at once (Clippy, fixing, forma | |||
# --- docs ---------------------------------------------------------------------------------------- | |||
|
|||
.PHONY: doc | |||
doc: ## Generates & checks documentation | |||
$(WARNINGS) cargo doc --all-features --keep-going --release | |||
doc: ## Generates & checks documentation |
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.
FYI @bobbinth the miden base does not pass the doc command + doc command is not in CI should we add it and make the repo pass?
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.
Yes - that would be good. But if it adds a lot of work, I'd do it in a different PR.
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.
Looks good! Thank you! I left 2 small comments inline. After these are addressed, we can merge.
Also, let's update the changelog.
Makefile
Outdated
@@ -8,17 +8,18 @@ help: | |||
|
|||
WARNINGS=RUSTDOCFLAGS="-D warnings" | |||
DEBUG_ASSERTIONS=RUSTFLAGS="-C debug-assertions" | |||
ALL_FEATURES_BUT_ASYNC=--features concurrent,default,std,testing,serde |
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.
Do we need to list default
and std
features here? Isn't default
enabled by default and std
implied by default
?
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.
Indeed you are right.
Removed std and default from the var.
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.
We do not need to list default it's always on ( except if we use --no-default-features
)
@@ -37,8 +38,8 @@ lint: format fix clippy ## Runs all linting tasks at once (Clippy, fixing, forma | |||
# --- docs ---------------------------------------------------------------------------------------- | |||
|
|||
.PHONY: doc | |||
doc: ## Generates & checks documentation | |||
$(WARNINGS) cargo doc --all-features --keep-going --release | |||
doc: ## Generates & checks documentation |
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.
Yes - that would be good. But if it adds a lot of work, I'd do it in a different PR.
In this PR I add conditional
async
for the DataStore trait using the maybe-async-await macro.