• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 use proc_macro::TokenStream;
2 use std::path::Path;
3 
4 #[proc_macro]
ensure_proc_macro_data_exists(_input: TokenStream) -> TokenStream5 pub fn ensure_proc_macro_data_exists(_input: TokenStream) -> TokenStream {
6     let path = Path::new(env!("CARGO_MANIFEST_DIR")).join("proc_macro_data.txt");
7     assert!(path.exists(), "not found: {}", path.display());
8 
9     proc_macro_helper::ensure_helper_data_exists();
10 
11     TokenStream::new()
12 }
13