target_spec_json

Function target_spec_json 

Source
pub fn target_spec_json() -> &'static str
Expand description

Gets a valid target spec JSON from rustc.

To avoid any hardcoded value, this fetches x86_64-unknown-none target spec JSON directly from rustc, as Cargo shouldn’t know the JSON schema.