use std::collections::HashMap; #[derive(RustcDecodable, Debug)] pub struct Metadata { pub packages: Vec, resolve: Option<()>, pub version: usize, } #[derive(RustcDecodable, Debug)] pub struct Package { name: String, version: String, id: String, source: Option<()>, dependencies: Vec, pub targets: Vec, features: HashMap>, manifest_path: String, } #[derive(RustcDecodable, Debug)] pub struct Dependency { name: String, source: Option, req: String, kind: Option, optional: bool, uses_default_features: bool, features: Vec>, target: Option<()>, } #[allow(non_camel_case_types)] #[derive(RustcDecodable, Debug)] pub enum Kind { dylib, test, bin, lib, } #[derive(RustcDecodable, Debug)] pub struct Target { pub name: String, pub kind: Vec, src_path: String, }