Skip to content

JSON formatted application build details provided by the Cargo.toml file.

License

Notifications You must be signed in to change notification settings

webbrandon/build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build

JSON formatted application build details provided by the Cargo.toml file.


Usage

Add the following to your Cargo.toml file (Edit the version if needed.):

build = "*"

Methods
build_as_json() -> String
Returns a JSON response formatted to the 1.1 specification that is in a String format for transit.

Example

extern crate build;

fn main(){
  let details = build::build_as_json();
  println!("{}", details);
}

To see it in action run (I pipe to jq to make it pretty!):

cargo run | jq

About

JSON formatted application build details provided by the Cargo.toml file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages