pub fn generate_crate_access(unique_id: &str, def_crate: &str) -> TokenStream {
	if ::std::env::var("CARGO_PKG_NAME").unwrap() == def_crate {
		quote::quote!( crate )
	} else {
		let mod_name = generate_hidden_includes_mod_name(unique_id);
		quote::quote!( self::#mod_name::hidden_include )
	}
}
/// Generates the access to the `srml-support` crate.
Generates the access to the `srml-support` crate.
Generates the access to the ` srml - support ` crate .
pub fn generate_crate_access(unique_id: &str, def_crate: &str) -> TokenStream {
	if ::std::env::var("CARGO_PKG_NAME").unwrap() == def_crate {
		quote::quote!( crate )
	} else {
		let mod_name = generate_hidden_includes_mod_name(unique_id);
		quote::quote!( self::#mod_name::hidden_include )
	}
}
pub fn generate_crate_access ( unique_id : & str , def_crate : & str ) -> TokenStream { if :: std :: env :: var ( " " ) . unwrap ( ) == def_crate { quote :: quote ! ( crate ) } else { let mod_name = generate_hidden_includes_mod_name ( unique_id ) ; quote :: quote ! ( self mod_name hidden_include ) } }
Generates the access to the `srml-support` crate.
Generates the access to the ` srml - support ` crate .
unique_id
&str
def_crate
&str
unique_id
&str
def_crate
&str