Closed steveklabnik closed 9 years ago
Just so I have a better understanding of what you're looking for, what's an example of another piece of data you'd like from the 'rest of the information'?
Well, right now, you have all of this: https://github.com/frewsxcv/rust-crates-index/blob/master/src/lib.rs#L29-L47
but the dependency map only includes the names https://github.com/frewsxcv/rust-crates-index/blob/master/src/lib.rs#L92
any of those other columns would be useful, for example, if I wanted to only look at certain versions instead of literally everything.
Ah gotcha. Thanks for the clarification, I'll look into this
:+1:
it's also possible that instead of using dependency_map, I should be just creating them directly or something. but it seemed like that method was the main entry point
Just published 0.2.0
I attempted to make it more general purpose. Instead of having just a dependency_map method, one would do something like:
let index = Index::new("some-directory".into());
if !index.exists() {
index.clone().unwrap();
}
let crate_ = index.crates().nth(0).unwrap();
let version = crate_.latest_version();
let _ = version.deps; // vec of dependencies here (more than just names)
See the docs linked from the README for more info. If you have any suggestions, let me know
... any interest in exposing the rest of the information? I'm tempted to use this crate, but I need all the info.