Cargo Crate Metadata

For usage from build-script.

Utility functions that returns current crate metadata as result of call cargo metadata.

Example

Cargo.toml: ```toml

...

[package.metadata] foo = "bar"

...

```

build.rs ```rust extern crate serde; extern crate serdejson; extern crate cratemetadata;

use serde::Deserialize;

fn main() { let metadata = cratemetadata::cratemetadata::().unwrap(); assert_eq!("bar", &metadata.packages.first().unwrap().metadata.unwrap().foo); }

[derive(Deserialize, Debug)]

struct MyMeta { pub foo: String, } ```