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

Clean up dependencies of ebuild #18

Closed
1 of 2 tasks
dongsupark opened this issue Oct 10, 2023 · 2 comments
Closed
1 of 2 tasks

Clean up dependencies of ebuild #18

dongsupark opened this issue Oct 10, 2023 · 2 comments
Assignees
Labels
kind/feature A feature request.

Comments

@dongsupark
Copy link
Member

dongsupark commented Oct 10, 2023

The Gentoo ebuild file has a long list of dependency crates, which includes some unnecessary libs as well.
Let's investigate how the list can be optimized.

@dongsupark dongsupark added the kind/feature A feature request. label Oct 10, 2023
@dongsupark dongsupark changed the title [RFE] clean up dependencies of ebuild clean up dependencies of ebuild Oct 11, 2023
@dongsupark dongsupark changed the title clean up dependencies of ebuild Clean up dependencies of ebuild Oct 11, 2023
@dongsupark
Copy link
Member Author

It is actually 2 different issues: optimization of feature flags in Cargo.toml (done in #20), and actually deleting unnecessary libs from Cargo.lock.

The latter is more tricky to resolve, because cargo-ebuild simply copies over all deps in Cargo.lock to an output ebuild, but rust cargo almost always assumes all libs are listed in Cargo.lock, including windows libs.
Some folks recommend calling cargo -Z avoid-dev-deps (only available in nightly), but that still does not bring any difference.

See also related discussions: rust-lang/cargo#10801, rust-lang/cargo#5133.

@dongsupark
Copy link
Member Author

Let's close, as there is no solution for the Cargo.lock issue.
Feel free to reopen if there is a way forwards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature A feature request.
Projects
None yet
Development

No branches or pull requests

1 participant