Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the correct crate name in tracing_android_trace's readme #15

Merged
merged 3 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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