Skip to content

[librt] Add librt.internal API versioning with backward compat#20221

Merged
JukkaL merged 3 commits intomasterfrom
librt-api-version
Nov 12, 2025
Merged

[librt] Add librt.internal API versioning with backward compat#20221
JukkaL merged 3 commits intomasterfrom
librt-api-version

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Nov 11, 2025

This lets us add new API features by adding more functions to the capsule and the module namespace without breaking backward compatibility.

We shouldn't use the capsule if the installed version is too old, since we could be calling functions via uninitialized pointers.

Note that this is a breaking change in the librt.internal ABI.

…bility

This lets us add new API features by adding more functions to the capsule
and the module namespace without breaking backward compatibility.

We shouldn't use the capsule if the installed version is too old, since
we could be calling functions via uninitialized pointers.
@JukkaL
Copy link
Copy Markdown
Collaborator Author

JukkaL commented Nov 11, 2025

This requires a librt release after merging.

@JukkaL JukkaL requested a review from ilevkivskyi November 11, 2025 15:55
Copy link
Copy Markdown
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

Good idea!

@JukkaL
Copy link
Copy Markdown
Collaborator Author

JukkaL commented Nov 11, 2025

I guess this will also require an ABI version update.

@JukkaL
Copy link
Copy Markdown
Collaborator Author

JukkaL commented Nov 11, 2025

Similar to #20194, this requires a temporary CI breakage and releasing a new version of librt. I'm planning to merge this and release a new librt version tomorrow (Wed).

@ilevkivskyi
Copy link
Copy Markdown
Member

Yeah, sure, go ahead when ready.

@JukkaL JukkaL merged commit c2ee586 into master Nov 12, 2025
10 of 14 checks passed
@JukkaL JukkaL deleted the librt-api-version branch November 12, 2025 14:16
JukkaL added a commit that referenced this pull request Nov 12, 2025
Includes #20221 (which breaks backward compatibility).
JukkaL added a commit that referenced this pull request Nov 12, 2025
Includes #20221 (which breaks backward compatibility).
@JukkaL JukkaL mentioned this pull request Nov 13, 2025
@github-project-automation github-project-automation bot moved this from Todo to Done in GC-Content-Calculator Dec 12, 2025
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.

3 participants