-
Notifications
You must be signed in to change notification settings - Fork 138
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
Reduce dependencies and #[macro_use] usage #438
Conversation
Instead use once_cell::sync::Lazy.
… removes the direct dependency on serde_derive.
Thumbs up for working on getting rid of
Now, the question is if anyone actually uses Another option could be to somehow try to keep he current API but mark it as deprecated. Not sure if that is doable. Especially not if we also want to get rid of I haven't reviewed your code in detail, but maybe you want to split this PR up into smaller PRs so the other changes are not blocked by the I also notice that MSRV CI is failling. Looks like the |
Oh, I didn't notice that these were part of the public API. I don't really care how it's solved 🤷🏼 I could look into what code |
I analyzed all current We then just have to keep our eyes open when we make the next release, and if there is unexpected and wide breakage, we yank, revert, and republish. Not a super big deal. Does that sound OK to you @trishume ? I can take care of all the chores of doing that if that is OK with you. The script I usedmkdir syntect-dependents
cd syntect-dependents #/usr/bin/env bash
set -o xtrace
dependents=$(for page in $(seq 1 10); do
curl -L "https://crates.io/api/v1/crates/syntect/reverse_dependencies?page=$page" | jq --raw-output '.versions | map(.crate) | flatten[]'
sleep 2 # avoid throttling
done)
echo $dependents
for crate in $dependents; do
echo "Processing $crate"
mkdir -p "$crate"
cd "$crate"
newest_version=$(curl -L https://crates.io/api/v1/crates/$crate | jq --raw-output .crate.newest_version)
echo "$newest_version"
curl -L "https://crates.io/api/v1/crates/$crate/$newest_version/download" | tar -zxf -
cd ..
sleep 2 # avoid throttling
done and then
gives no hits. |
Maybe it would be better to be less radical and at least first make a release with SCOPE_REPO marked as deprecated... Another option could be to go straight for 6.0.0, but even in that case it probably would be good manners to first make a deprecation... |
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.
I suspect actually nobody uses that feature, especially given your checking. Especially since it's only for optimizing advanced text editors. Happy to make the call to just break it without a major version bump. If anyone has their stuff broken they can come to this comment and disapprove of my recklessness.
No description provided.