Repository navigation
fix(eql-bindings): keep SchemaVersion::CURRENT on v3, and ready the crate changelogs #2020
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
Open
coderdan
wants to merge
12
commits into
next
Choose a base branch
from
docs/fold-unreleased-changelogs
base: next
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f55d7f4
docs(crates): file unreleased changelog entries under their versions
coderdan 8eabc86
docs(changeset): say that the generic SchemaVersion breaks Rust code
coderdan 458b82d
docs(changeset): release the SchemaVersion break as an EQL major
coderdan 98e6e8d
docs(stack-profile): file two old changelog entries under their versions
coderdan ea2ed87
docs(stack-encrypt-derive): add a changelog with the 0.3.0 changes
coderdan b59ef57
fix(eql-bindings): plain SchemaVersion::CURRENT is v3 again
coderdan 9e0378e
docs(stack-encrypt): write 0.3.0 as one upgrade from 0.2.0
coderdan 5dda64c
docs(stack-kms,stack-encrypt-jsonpath): drop dates and stale claims
coderdan 225ee86
docs(eql-bindings): say the inherent SchemaVersion::default() is new
coderdan 89d5f00
docs(crates): one heading scheme in stack-kms, no dates on 0.44.0
coderdan 5add7bf
docs(eql-bindings): file the Unreleased entries under 3.1.0 and 3.0.0
coderdan 28336b3
Merge next into docs/fold-unreleased-changelogs
coderdan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Important. The changeset now says the
SchemaVersionchange breaks Rust code, but it still asks for aminorrelease.eql-bindingsis at 3.0.6 and moves in lockstep with@cipherstash/eql, so the break would ship as 3.1.0, which Cargo treats as compatible. A crate that depends oneql-bindings = "3"and writeslet v = SchemaVersion::CURRENT;stops building after a plaincargo update, with no warning. Fix: release it as a major, or remove the break.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.
Fixed in b59ef57 by removing the break, so the changeset stays
minorand EQL goes to 3.1.0.CURRENTand an inherentdefault()are now onSchemaVersion<3>alone, as 3.0.6 had them.let v = SchemaVersion::CURRENT;andSchemaVersion::default()compile again and give v3. Onnextthey fail with E0284.Default, so the v4 types build theirs withv4::SchemaVersion::default(). The encryption test crate's one call tov4::SchemaVersion::CURRENTnow callsdefault().crates/eql-bindings/tests/schema_version.rspins both: plainCURRENTanddefault()give v3, andSchemaVersion<4>andv4::SchemaVersiongive v4.SchemaVersionstill means v3, and how to name v4.An earlier commit on this branch, 458b82d, made the bump
major. b59ef57 reverts that.Checks:
cargo test -p eql-bindings --all-features(245 passed), clippy-D warningswith and without features,cargo fmt --check,cargo test -p eql-codegen(206 passed), and theeql-encryption-testscrate (192 passed, 63 ignored).