1- extern crate alloc;
2-
31#[ macro_use]
42extern crate log;
5- pub use crate as graphene_core;
6- pub use num_traits;
73
4+ pub use crate as graphene_core;
85pub use ctor;
6+ pub use num_traits;
97
108pub mod animation;
119pub mod consts;
@@ -34,12 +32,12 @@ pub mod application_io;
3432pub mod registry;
3533
3634pub use context:: * ;
37- use core:: any:: TypeId ;
38- use core:: future:: Future ;
39- use core:: pin:: Pin ;
4035pub use dyn_any:: { StaticTypeSized , WasmNotSend , WasmNotSync } ;
4136pub use memo:: MemoHash ;
4237pub use raster:: Color ;
38+ use std:: any:: TypeId ;
39+ use std:: future:: Future ;
40+ use std:: pin:: Pin ;
4341pub use types:: Cow ;
4442
4543// pub trait Node: for<'n> NodeIO<'n> {
@@ -53,11 +51,11 @@ pub trait Node<'i, Input> {
5351 fn reset ( & self ) { }
5452 /// Returns the name of the node for diagnostic purposes.
5553 fn node_name ( & self ) -> & ' static str {
56- core :: any:: type_name :: < Self > ( )
54+ std :: any:: type_name :: < Self > ( )
5755 }
5856 /// Serialize the node which is used for the `introspect` function which can retrieve values from monitor nodes.
59- fn serialize ( & self ) -> Option < std:: sync:: Arc < dyn core :: any:: Any + Send + Sync > > {
60- log:: warn!( "Node::serialize not implemented for {}" , core :: any:: type_name:: <Self >( ) ) ;
57+ fn serialize ( & self ) -> Option < std:: sync:: Arc < dyn std :: any:: Any + Send + Sync > > {
58+ log:: warn!( "Node::serialize not implemented for {}" , std :: any:: type_name:: <Self >( ) ) ;
6159 None
6260 }
6361}
@@ -74,13 +72,13 @@ where
7472 TypeId :: of :: < Input :: Static > ( )
7573 }
7674 fn input_type_name ( & self ) -> & ' static str {
77- core :: any:: type_name :: < Input > ( )
75+ std :: any:: type_name :: < Input > ( )
7876 }
79- fn output_type ( & self ) -> core :: any:: TypeId {
77+ fn output_type ( & self ) -> std :: any:: TypeId {
8078 TypeId :: of :: < <Self :: Output as StaticTypeSized >:: Static > ( )
8179 }
8280 fn output_type_name ( & self ) -> & ' static str {
83- core :: any:: type_name :: < Self :: Output > ( )
81+ std :: any:: type_name :: < Self :: Output > ( )
8482 }
8583 fn to_node_io ( & self , inputs : Vec < Type > ) -> NodeIOTypes {
8684 NodeIOTypes {
@@ -121,7 +119,7 @@ impl<'i, I: 'i, O: 'i, N: Node<'i, I, Output = O> + ?Sized> Node<'i, I> for Box<
121119 ( * * self ) . eval ( input)
122120 }
123121}
124- impl < ' i , I : ' i , O : ' i , N : Node < ' i , I , Output = O > + ?Sized > Node < ' i , I > for alloc :: sync:: Arc < N > {
122+ impl < ' i , I : ' i , O : ' i , N : Node < ' i , I , Output = O > + ?Sized > Node < ' i , I > for std :: sync:: Arc < N > {
125123 type Output = O ;
126124 fn eval ( & ' i self , input : I ) -> O {
127125 ( * * self ) . eval ( input)
@@ -147,7 +145,7 @@ pub type WasmSurfaceHandle = application_io::SurfaceHandle<web_sys::HtmlCanvasEl
147145#[ cfg( feature = "wasm" ) ]
148146pub type WasmSurfaceHandleFrame = application_io:: SurfaceHandleFrame < web_sys:: HtmlCanvasElement > ;
149147
150- pub trait InputAccessorSource < ' a , T > : InputAccessorSourceIdentifier + core :: fmt:: Debug {
148+ pub trait InputAccessorSource < ' a , T > : InputAccessorSourceIdentifier + std :: fmt:: Debug {
151149 fn get_input ( & ' a self , index : usize ) -> Option < & ' a T > ;
152150 fn set_input ( & ' a mut self , index : usize , value : T ) ;
153151}
0 commit comments