Please consider pushing to crates.io #12

Closed
opened 2024-11-09 23:22:01 +01:00 by shchvova · 4 comments

Hi! Many people really like installing software with cargo. Like

cargo install difftastic

But currently mergiraf is not available on https://crates.io

Hi! Many people really like installing software with cargo. Like ``` cargo install difftastic ``` But currently mergiraf is not available on https://crates.io
Owner

I looked into it and I found two hurdles:

  • some of the parsers are patched (such as tree-sitter-yaml = { git = "https://github.com/wetneb/tree-sitter-yaml.git", rev = "7b5199133abceb03d6d1d8f1672f49b4f2a71442" }). It looks like they would need vendoring for the crate to be acceptable on crates.io. I was foolishly hoping that new releases of those three parsers would come soon, avoiding me the need to vendor, but clearly, as the number of supported languages grows that's wishful thinking, so I probably should go down the vendoring route like difftastic…
  • crates.io requires a GitHub account to publish there: https://github.com/rust-lang/crates.io/issues/326. I find that unfortunate: even though it doesn't look like it's a deliberate choice, it's a bit embarassing for the ecosystem and it makes me less keen to upload things there.
I looked into it and I found two hurdles: * some of the parsers are patched (such as `tree-sitter-yaml = { git = "https://github.com/wetneb/tree-sitter-yaml.git", rev = "7b5199133abceb03d6d1d8f1672f49b4f2a71442" }`). It looks like they would need vendoring for the crate to be acceptable on crates.io. I was foolishly hoping that new releases of those three parsers would come soon, avoiding me the need to vendor, but clearly, as the number of supported languages grows that's wishful thinking, so I probably should go down the vendoring route like difftastic… * crates.io requires a GitHub account to publish there: https://github.com/rust-lang/crates.io/issues/326. I find that unfortunate: even though it doesn't look like it's a deliberate choice, it's a bit embarassing for the ecosystem and it makes me less keen to upload things there.
Author

I hear you. You can set up a push mirror from Codeberg to Github. I found this link https://kaksikoivua.hashnode.dev/setting-up-a-push-mirror-from-codeberg-to-github

So you don't have to deal with the GitHub at all. You can also in settings on GitHub disable PRs and Issues etc and add links in description to forward here. Sad fact right now that GitHub provides a lot of infrastructure to libre internet. You wouldn't have to use it, but it will solve issues like this.

I hear you. You can set up a push mirror from Codeberg to Github. I found this link https://kaksikoivua.hashnode.dev/setting-up-a-push-mirror-from-codeberg-to-github So you don't have to deal with the GitHub at all. You can also in settings on GitHub disable PRs and Issues etc and add links in description to forward here. Sad fact right now that GitHub provides a lot of infrastructure to libre internet. You wouldn't have to use it, but it will solve issues like this.
Author

If you don't want to deal with GitHub and crates.io, I can help out with that part, I think.

If you don't want to deal with GitHub and crates.io, I can help out with that part, I think.
Owner

tree-sitter-xml got a new release so that's not a blocker anymore. It's up: https://crates.io/crates/mergiraf

tree-sitter-xml got a new release so that's not a blocker anymore. It's up: https://crates.io/crates/mergiraf
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: mergiraf/mergiraf#12
No description provided.