-
Notifications
You must be signed in to change notification settings - Fork 52
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
Create a proper eclass for crates #195
Comments
I'm working towards this. I'm actually tackling this on Yocto first. You can see an example recipe here: starlab-io/meta-rust@112d40a And you can see the rest of the commits here: https://github.com/starlab-io/meta-rust/commits/crate-fetch Its not totally done yet. But the main tree eclass does fetch crates to |
Oh and we can't use |
What files does |
Great! There's some problem though. Looks like it lists all dependencies in
Yep, it creates |
I don't disagree that the dependencies become quite big. But the only way to get things in tree is that we need to let the package manager download the files until I don't think ebuilds that build cargo packages should be made by hand. They should be made by a tool. see https://github.com/cardoe/cargo-ebuild that I'm working on to generate ebuilds. You can see an example ebuild for rustfmt here: https://github.com/cardoe/gentoo/tree/rustfmt |
Maybe local registries from rust-lang/cargo#2361 could be useful here |
@gentoo90 We're working on this in rust-lang/cargo#2857 |
Now that we have the necessary versions in the tree, I took a swag at doing this. Please checkout https://github.com/cardoe/gentoo/tree/rustfmt |
Pretty sure I broke the build of cargo with this change so I'll have to work on it some more. |
Well |
cargo-ebuild 0.1.2 should produce ebuilds for things published on crates.io that work with these changes. |
Alright. I believe everything is updated. @gentoo90 if you want to take a peek and tell me what you think of my branch? I didn't notice you had done the work already until this morning and could have probably saved myself some time using your changes. |
this can be closed |
Prototype: https://github.com/suhr/badumz/blob/master/eclass/cargo-utils.eclass
Also relevant: https://github.com/gentoo/gentoo/blob/master/eclass/cargo.eclass
Unresolved questions:
distfiles
cargo fetch
with other unpacks (git, archives)cast @cardoe
The text was updated successfully, but these errors were encountered: