Devolutions / conan-rs

A Rust wrapper of the conan C/C++ package manager (conan.io) to simplify usage in build scripts
Apache License 2.0
34 stars 11 forks source link

Add a method for accessing the list of dependencies #3

Closed cquintana-verbio closed 4 years ago

cquintana-verbio commented 4 years ago

This PR adds a dependencies() method, which allows the user to access the list of dependencies.

Even though one can access a dependency by using the get_dependency(&self, name: &str), there is no way to access the existing dependencies list, as the struct member is private.

Also, maybe the project could benefit of running cargo fmt in order to apply the common rust formatting standards. I've not done it as it would generate a pretty big PR with mostly format changes, and would difficult the review of the main added code.