mod.rs 270 B

123456789101112
  1. pub mod accounts;
  2. pub mod context;
  3. pub mod docs;
  4. pub mod error;
  5. pub mod program;
  6. pub mod spl_interface;
  7. pub fn tts_to_string<T: quote::ToTokens>(item: T) -> String {
  8. let mut tts = proc_macro2::TokenStream::new();
  9. item.to_tokens(&mut tts);
  10. tts.to_string()
  11. }