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

Upgrade smol_str to 0.3 #196

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

jberryman
Copy link
Collaborator

Also upgrade schemars to our compatible fork that contains just a version bump.

This was motivated by: https://linear.app/hasura/issue/ENG-1279/try-to-move-to-rkyv since rkyv only supports smol_str 0.2 or 0.3 it seems...

  • RFC
  • Specification updates
    • Changelog
    • Specification pages
    • Tutorial pages
    • reference/types.md
  • Implement your feature in the reference connector
  • Generate test cases in ndc-test if appropriate
  • Does your feature add a new capability?
    • Update specification/capabilities.md in the specification
    • Check the capability in ndc-test

Comment on lines +28 to +32

[patch.crates-io]
# So we can bump the smol_str dependency, since rkyv only supports smol_str>=0.2 :(
schemars = { git = 'https://github.com/hasura/schemars.git', branch = "v0" }

Copy link
Collaborator

Choose a reason for hiding this comment

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

Will this actually work? From what I read in the cargo docs, this patch is not applied to consumers of this library, as all patches need to be defined at the top level.

Remember that [patch] is applicable transitively but can only be defined at the top level so we consumers of my-library have to repeat the [patch] section if necessary.
Source

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm I thought I needed this to build the library in isolation, but it seems not. anyway I realized I should probably keep this as a draft until I have something we'd want to merge in v3-engine

Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems to me like these patches should be applied in the engine codebase because that's where the deps need bumping to be able to use rkyv, no?

@jberryman jberryman marked this pull request as draft November 26, 2024 15:48
Also upgrade schemars to our compatible fork that contains just a
version bump.

This was motivated by: https://linear.app/hasura/issue/ENG-1279/try-to-move-to-rkyv
since rkyv only supports smol_str 0.2 or 0.3 it seems...
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