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

Use cargo as the dependency resolver #13

Open
nc7s opened this issue Aug 27, 2022 · 1 comment
Open

Use cargo as the dependency resolver #13

nc7s opened this issue Aug 27, 2022 · 1 comment

Comments

@nc7s
Copy link

nc7s commented Aug 27, 2022

Hi, this project is of great help in packaging. I find that cargo-tree has been integrated into cargo, and thinking of it, it's the best dependency resolver - the one we actually use!

It may be such a process: deserialize Cargo.toml as cargo::util::toml::TomlManifest, .to_real_manifest() into cargo::core::manifest::Manifest, then cargo::core::resolver::resolve() it into a cargo::core::resolver::Resolve, which has the resolved dependency tree.

Then use the data to find what is outdated, what is not in Debian archive yet, etc.

EDIT: Or, "hijack" cargo tree.

@jamessan
Copy link
Contributor

The problem using the resolved dependencies, as I discovered, is that it's greedy. We really want to work off the relationships described in Cargo.toml, since that gives us the lower bound the project needs.

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

No branches or pull requests

2 participants