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 912912//! [static verbosity level]: level_filters#compile-time-filters
913913//! [instrument]: https://docs.rs/tracing-attributes/latest/tracing_attributes/attr.instrument.html
914914//! [flags]: #crate-feature-flags
915- #![ cfg_attr( not( feature = "std" ) , no_std) ]
915+
916+ #![ no_std]
916917#![ cfg_attr( docsrs, feature( doc_cfg) , deny( rustdoc:: broken_intra_doc_links) ) ]
917918#![ doc(
918919 html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/main/assets/logo-type.png" ,
941942 while_true
942943) ]
943944
944- #[ cfg( not ( feature = "std" ) ) ]
945- extern crate alloc ;
945+ #[ cfg( feature = "std" ) ]
946+ extern crate std ;
946947
947948// Somehow this `use` statement is necessary for us to re-export the `core`
948949// 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;
980981pub mod instrument;
981982pub mod level_filters;
982983pub mod span;
983- pub ( crate ) mod stdlib;
984984pub mod subscriber;
985985
986986#[ doc( hidden) ]
Original file line number Diff line number Diff line change 317317//! [`follows_from`]: Span::follows_from()
318318//! [guard]: Entered
319319//! [parent]: #span-relationships
320+
320321pub use tracing_core:: span:: { Attributes , Id , Record } ;
321322
322- use crate :: stdlib:: {
323+ use crate :: {
324+ dispatcher:: { self , Dispatch } ,
325+ field, Metadata ,
326+ } ;
327+ use core:: {
323328 cmp, fmt,
324329 hash:: { Hash , Hasher } ,
325330 marker:: PhantomData ,
326331 mem,
327332 ops:: Deref ,
328333} ;
329- use crate :: {
330- dispatcher:: { self , Dispatch } ,
331- field, Metadata ,
332- } ;
333334
334335/// Trait implemented by types which have a span `Id`.
335336pub trait AsId : crate :: sealed:: Sealed {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments