From cde245e8bb8e01c16e9860429006ddb4912a53f7 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Tue, 19 Nov 2024 08:02:50 +0000 Subject: [PATCH] Use the correct crate name in `tracing_android_trace`'s readme (#15) --- android_trace/README.md | 5 ++--- tracing_android_trace/README.md | 9 ++++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/android_trace/README.md b/android_trace/README.md index c4e8ac4..2544cc0 100644 --- a/android_trace/README.md +++ b/android_trace/README.md @@ -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: diff --git a/tracing_android_trace/README.md b/tracing_android_trace/README.md index 9b31d9c..feabfe5 100644 --- a/tracing_android_trace/README.md +++ b/tracing_android_trace/README.md @@ -39,11 +39,10 @@ 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: @@ -51,7 +50,7 @@ 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()