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

Implement async trait DataStore using maybe-async-await macro #725

Merged
merged 5 commits into from
Jun 11, 2024

Conversation

phklive
Copy link
Contributor

@phklive phklive commented Jun 3, 2024

In this PR I add conditional async for the DataStore trait using the maybe-async-await macro.

@phklive phklive force-pushed the phklive-maybe-async-await branch from dd64839 to 0425631 Compare June 11, 2024 10:22
@phklive phklive marked this pull request as ready for review June 11, 2024 10:37
@phklive phklive requested a review from bobbinth June 11, 2024 10:37
@@ -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
Copy link
Contributor Author

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?

Copy link
Contributor

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.

Copy link
Contributor

@bobbinth bobbinth left a 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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

@phklive phklive Jun 11, 2024

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
Copy link
Contributor

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.

@phklive
Copy link
Contributor Author

phklive commented Jun 11, 2024

@bobbinth created a new issue regarding docs: #743

@bobbinth bobbinth merged commit 6ce65fe into next Jun 11, 2024
11 checks passed
@bobbinth bobbinth deleted the phklive-maybe-async-await branch June 11, 2024 16:04
@bobbinth bobbinth mentioned this pull request Jun 12, 2024
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.

Add Asynchronous Support to DataStore Trait Methods
2 participants