Skip to content

Commit

Permalink
Use the correct crate name in tracing_android_trace's readme (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab authored Nov 19, 2024
1 parent 81c86ff commit cde245e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 2 additions & 3 deletions android_trace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ Significant changes are documented in [the changelog][].

Add a dependency on Android Trace:

```toml
[target.'cfg(target_os = "android")'.dependencies]
android_trace = "0.1.0"
```sh
cargo add android_trace --target 'cfg(target_os = "android")'
```

The main entry point to the library is [AndroidTrace][], which stores function pointers to each available NDK function:
Expand Down
9 changes: 4 additions & 5 deletions tracing_android_trace/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,18 @@ Significant changes are documented in [the changelog][].

## Quickstart

Add a dependency on Android Trace (and on [`tracing_subscriber`][]).
Add a dependency on Tracing Android Trace (and on [`tracing_subscriber`][]).

```toml
[target.'cfg(target_os = "android")'.dependencies]
android_trace = "0.1.0"
```sh
cargo add tracing_android_trace --target 'cfg(target_os = "android")'
```

You can then add an Android Tracing layer to the registry subscriber:

```rust,no_run
use tracing_subscriber::prelude::*;
fn main(){
fn main() {
tracing_subscriber::registry()
.with(tracing_android_trace::AndroidTraceLayer::new())
.try_init()
Expand Down

0 comments on commit cde245e

Please sign in to comment.