pub fn template_raze_metadata(template_path: &str) -> RazeMetadata {
  let dir = make_basic_workspace();
  let (mut fetcher, _server, _index_dir) = dummy_raze_metadata_fetcher();

  // Always render basic metadata
  fetcher.set_metadata_fetcher(Box::new(DummyCargoMetadataFetcher {
    metadata_template: Some(template_path.to_string()),
  }));

  fetcher.fetch_metadata(dir.as_ref(), None, None).unwrap()
}
/// Generate RazeMetadata from a cargo metadata template
Generate RazeMetadata from a cargo metadata template
Generate RazeMetadata from a cargo metadata template
pub fn template_raze_metadata(template_path: &str) -> RazeMetadata {
  let dir = make_basic_workspace();
  let (mut fetcher, _server, _index_dir) = dummy_raze_metadata_fetcher();
  // Always render basic metadata
  fetcher.set_metadata_fetcher(Box::new(DummyCargoMetadataFetcher {
    metadata_template: Some(template_path.to_string()),
  }));
  fetcher.fetch_metadata(dir.as_ref(), None, None).unwrap()
}
pub fn template_raze_metadata ( template_path : & str ) -> RazeMetadata { let dir = make_basic_workspace ( ) ; let ( mut fetcher , _server , _index_dir ) = dummy_raze_metadata_fetcher ( ) ; // Always render basic metadata fetcher . set_metadata_fetcher ( Box :: new ( DummyCargoMetadataFetcher { metadata_template : Some ( template_path . to_string ( ) ) , } ) ) ; fetcher . fetch_metadata ( dir . as_ref ( ) , None , None ) . unwrap ( ) }
Generate RazeMetadata from a cargo metadata template
Generate RazeMetadata from a cargo metadata template
template_path
&str
template_path
&str