Merge pull request #118 from thenorili/filename-collision

Avoid filename collision in the monorepo structure
This commit is contained in:
Pavan Kumar Sunkara 2023-11-10 10:50:55 +00:00 committed by GitHub
commit 2422bcd089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View File

@ -55,7 +55,7 @@ println!("{}", color_spantrace::colorize(&span_trace));
## Example ## Example
This example is taken from `examples/usage.rs`: This example is taken from `examples/color-spantrace-usage.rs`:
```rust ```rust
use tracing::instrument; use tracing::instrument;

View File

@ -45,17 +45,17 @@
//! //!
//! ## Output Format //! ## Output Format
//! //!
//! Running `examples/usage.rs` from the `color-spantrace` repo produces the following output: //! Running `examples/color-spantrace-usage.rs` from the `color-spantrace` repo produces the following output:
//! //!
//! <pre><font color="#4E9A06"><b></b></font> cargo run --example usage //! <pre><font color="#4E9A06"><b></b></font> cargo run --example color-spantrace-usage
//! <font color="#4E9A06"><b> Finished</b></font> dev [unoptimized + debuginfo] target(s) in 0.04s //! <font color="#4E9A06"><b> Finished</b></font> dev [unoptimized + debuginfo] target(s) in 0.04s
//! <font color="#4E9A06"><b> Running</b></font> `target/debug/examples/usage` //! <font color="#4E9A06"><b> Running</b></font> `target/debug/examples/color-spantrace-usage`
//! ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ //! ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SPANTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
//! //!
//! 0: <font color="#F15D22">usage::two</font> //! 0: <font color="#F15D22">color-spantrace-usage::two</font>
//! at <font color="#75507B">examples/usage.rs</font>:<font color="#75507B">18</font> //! at <font color="#75507B">examples/color-spantrace-usage.rs</font>:<font color="#75507B">18</font>
//! 1: <font color="#F15D22">usage::one</font> with <font color="#34E2E2">i=42</font> //! 1: <font color="#F15D22">color-spantrace-usage::one</font> with <font color="#34E2E2">i=42</font>
//! at <font color="#75507B">examples/usage.rs</font>:<font color="#75507B">13</font></pre> //! at <font color="#75507B">examples/color-spantrace-usage.rs</font>:<font color="#75507B">13</font></pre>
//! //!
//! [`tracing_error::SpanTrace`]: https://docs.rs/tracing-error/*/tracing_error/struct.SpanTrace.html //! [`tracing_error::SpanTrace`]: https://docs.rs/tracing-error/*/tracing_error/struct.SpanTrace.html
//! [`color-backtrace`]: https://github.com/athre0z/color-backtrace //! [`color-backtrace`]: https://github.com/athre0z/color-backtrace