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 dependencies #2353

Merged
merged 2 commits into from
Mar 5, 2023
Merged

Upgrade dependencies #2353

merged 2 commits into from
Mar 5, 2023

Conversation

mkrasnitski
Copy link
Collaborator

@mkrasnitski mkrasnitski commented Mar 4, 2023

Update serenity's dependencies to the latest major versions. This requires a breaking change to the signature of serenity::json::from_str. This is to ensure the soundness of calling simd_json::from_str, which is unsafe, in that it might modify the underlying string such that it no longer contains valid UTF-8. So, if our wrapper function takes ownership of the buffer, it will be dropped at the end of the function, guaranteeing that invalid UTF-8 cannot be used afterward.

@github-actions github-actions bot added builder Related to the `builder` module. examples Related to Serenity's examples. voice Related to the `voice` module and `serenity_voice_model` crate. labels Mar 4, 2023
@github-actions github-actions bot added the gateway Related to the `gateway` module. label Mar 4, 2023
@arqunis arqunis added breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users dependencies Related to Serenity dependencies. labels Mar 5, 2023
@arqunis arqunis merged commit da28e4c into serenity-rs:next Mar 5, 2023
@mkrasnitski mkrasnitski deleted the updep branch March 5, 2023 01:31
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request May 18, 2023
Update Serenity's dependencies to the latest major versions.

This requires a breaking change to the signature of `serenity::json::from_str`.
This is to ensure the soundness of calling `simd_json::from_str`, which is
unsafe, in that it might modify the underlying string such that it no longer
contains valid UTF-8. So, if our wrapper function takes ownership of the
buffer, it will be dropped at the end of the function, guaranteeing that
invalid UTF-8 cannot be used afterward.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request May 30, 2023
Update Serenity's dependencies to the latest major versions.

This requires a breaking change to the signature of `serenity::json::from_str`.
This is to ensure the soundness of calling `simd_json::from_str`, which is
unsafe, in that it might modify the underlying string such that it no longer
contains valid UTF-8. So, if our wrapper function takes ownership of the
buffer, it will be dropped at the end of the function, guaranteeing that
invalid UTF-8 cannot be used afterward.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Sep 21, 2023
Update Serenity's dependencies to the latest major versions.

This requires a breaking change to the signature of `serenity::json::from_str`.
This is to ensure the soundness of calling `simd_json::from_str`, which is
unsafe, in that it might modify the underlying string such that it no longer
contains valid UTF-8. So, if our wrapper function takes ownership of the
buffer, it will be dropped at the end of the function, guaranteeing that
invalid UTF-8 cannot be used afterward.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Oct 17, 2023
Update Serenity's dependencies to the latest major versions.

This requires a breaking change to the signature of `serenity::json::from_str`.
This is to ensure the soundness of calling `simd_json::from_str`, which is
unsafe, in that it might modify the underlying string such that it no longer
contains valid UTF-8. So, if our wrapper function takes ownership of the
buffer, it will be dropped at the end of the function, guaranteeing that
invalid UTF-8 cannot be used afterward.
mkrasnitski added a commit to mkrasnitski/serenity that referenced this pull request Oct 24, 2023
Update Serenity's dependencies to the latest major versions.

This requires a breaking change to the signature of `serenity::json::from_str`.
This is to ensure the soundness of calling `simd_json::from_str`, which is
unsafe, in that it might modify the underlying string such that it no longer
contains valid UTF-8. So, if our wrapper function takes ownership of the
buffer, it will be dropped at the end of the function, guaranteeing that
invalid UTF-8 cannot be used afterward.
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
Update Serenity's dependencies to the latest major versions.

This requires a breaking change to the signature of `serenity::json::from_str`.
This is to ensure the soundness of calling `simd_json::from_str`, which is
unsafe, in that it might modify the underlying string such that it no longer
contains valid UTF-8. So, if our wrapper function takes ownership of the
buffer, it will be dropped at the end of the function, guaranteeing that
invalid UTF-8 cannot be used afterward.
arqunis pushed a commit to arqunis/serenity that referenced this pull request Oct 24, 2023
Update Serenity's dependencies to the latest major versions.

This requires a breaking change to the signature of `serenity::json::from_str`.
This is to ensure the soundness of calling `simd_json::from_str`, which is
unsafe, in that it might modify the underlying string such that it no longer
contains valid UTF-8. So, if our wrapper function takes ownership of the
buffer, it will be dropped at the end of the function, guaranteeing that
invalid UTF-8 cannot be used afterward.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change The public API is changed, resulting in miscompilations or unexpected new behaviour for users builder Related to the `builder` module. dependencies Related to Serenity dependencies. examples Related to Serenity's examples. gateway Related to the `gateway` module. voice Related to the `voice` module and `serenity_voice_model` crate.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants