Skip to content

Downgrade prost-build to support for lower msrv #12

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

Closed
wants to merge 2 commits into from

Conversation

G8XSU
Copy link
Collaborator

@G8XSU G8XSU commented Sep 19, 2023

Depends on #11

Motivation: Such checks are best performed in backend than
having client checking empty or null value. This is also in-line
with more critical requirement for functioning of NotFound
introduced by MonitorUpdatingPersister Design.
Even though there are some popular KVStore's which do not throw
such exception on keyNotFound such as AWS-DDB (arguably the most popular one),
we can still figure out that key didn't exist if value was
returned as null or by similar means in other stores.
/// The write will succeed if the current DB version against the `key` is the same as in the request.
/// When initiating a `PutObjectRequest`, the request should contain their client-side `version`
/// for that key-value.
/// Clients are expected to store a `version` against every `key`.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto-gen changes due to prost-build downgrade.

@@ -16,7 +16,7 @@ prost = "0.11.6"
reqwest = { version = "0.11.13", features = ["rustls-tls"] }

[build-dependencies]
prost-build = { version = "0.11.3" }
Copy link
Contributor

@tnull tnull Sep 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think a downgrade of prost-build is necessary here, but to address #4 we should define an MSRV, document it in README, and pin the downstream dependency in CI to assert we can build against it.

If we go for 1.63.0, adding an MSRV CI job that runs this should do the trick:

cargo update -p petgraph --precise "0.6.3" --verbose

(See for example how LDK Node's CI does it based on an msrv flag: https://github.com/lightningdevkit/ldk-node/blob/db1b7dcc3415ac00455913b48d4b7b8ec6c2e617/.github/workflows/build.yml#L42-L45)

@G8XSU G8XSU closed this Nov 2, 2023
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.

2 participants