Improve compile times by splitting out rsx-hotreload from rsx (#2971)
* fix imports, migrate over rsx-hotreload
This commit is contained in:
1 parent
b67122dd2a
commit
463e67cd12
41 files changed
+188
-190
No files matched your search
@@ -1,8 +1,5 @@
|
||||
#![allow(unused)]
|
||||
|
||||
#[cfg(feature = "hot_reload")]
|
||||
use internment::Intern;
|
||||
|
||||
use proc_macro2::TokenStream as TokenStream2;
|
||||
use std::{fmt::Debug, hash::Hash};
|
||||
use syn::{
|
||||
@@ -11,14 +8,6 @@ use syn::{
|
||||
Ident,
|
||||
};
|
||||
|
||||
/// interns a object into a static object, reusing the value if it already exists
|
||||
#[cfg(feature = "hot_reload")]
|
||||
pub(crate) fn intern<T: Eq + Hash + Send + Sync + ?Sized + 'static>(
|
||||
s: impl Into<Intern<T>>,
|
||||
) -> &'static T {
|
||||
s.into().as_ref()
|
||||
}
|
||||
|
||||
/// Parse a raw ident and return a new ident with the r# prefix added
|
||||
pub fn parse_raw_ident(parse_buffer: &ParseBuffer) -> syn::Result<Ident> {
|
||||
// First try to parse as a normal ident
|
||||
|
||||
Reference in new issue
Block a user