File tree Expand file tree Collapse file tree 3 files changed +10
-64
lines changed Expand file tree Collapse file tree 3 files changed +10
-64
lines changed Original file line number Diff line number Diff line change 912
912
//! [static verbosity level]: level_filters#compile-time-filters
913
913
//! [instrument]: https://docs.rs/tracing-attributes/latest/tracing_attributes/attr.instrument.html
914
914
//! [flags]: #crate-feature-flags
915
- #![ cfg_attr( not( feature = "std" ) , no_std) ]
915
+
916
+ #![ no_std]
916
917
#![ cfg_attr( docsrs, feature( doc_cfg) , deny( rustdoc:: broken_intra_doc_links) ) ]
917
918
#![ doc(
918
919
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/main/assets/logo-type.png" ,
941
942
while_true
942
943
) ]
943
944
944
- #[ cfg( not ( feature = "std" ) ) ]
945
- extern crate alloc ;
945
+ #[ cfg( feature = "std" ) ]
946
+ extern crate std ;
946
947
947
948
// Somehow this `use` statement is necessary for us to re-export the `core`
948
949
// macros on Rust 1.26.0. I'm not sure how this makes it work, but it does.
@@ -980,7 +981,6 @@ pub mod field;
980
981
pub mod instrument;
981
982
pub mod level_filters;
982
983
pub mod span;
983
- pub ( crate ) mod stdlib;
984
984
pub mod subscriber;
985
985
986
986
#[ doc( hidden) ]
Original file line number Diff line number Diff line change 317
317
//! [`follows_from`]: Span::follows_from()
318
318
//! [guard]: Entered
319
319
//! [parent]: #span-relationships
320
+
320
321
pub use tracing_core:: span:: { Attributes , Id , Record } ;
321
322
322
- use crate :: stdlib:: {
323
+ use crate :: {
324
+ dispatcher:: { self , Dispatch } ,
325
+ field, Metadata ,
326
+ } ;
327
+ use core:: {
323
328
cmp, fmt,
324
329
hash:: { Hash , Hasher } ,
325
330
marker:: PhantomData ,
326
331
mem,
327
332
ops:: Deref ,
328
333
} ;
329
- use crate :: {
330
- dispatcher:: { self , Dispatch } ,
331
- field, Metadata ,
332
- } ;
333
334
334
335
/// Trait implemented by types which have a span `Id`.
335
336
pub trait AsId : crate :: sealed:: Sealed {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments