From 51963990636f8ddb2fe0ae607a67c96dff62195e Mon Sep 17 00:00:00 2001
From: Thoren Paulson <3453006+thoren-d@users.noreply.github.com>
Date: Fri, 15 Mar 2024 14:20:01 -0700
Subject: [PATCH] Replace use of AtomicU64 with AtomicUsize. (#28)
This should be sufficient as std requires pointer-sized atomic support.
Fixes #27
(cherry picked from commit 7e2625ab4aeeef2f0ef9bde9d6258dd181c04472)
---
Cargo.toml | 12 ++++++------
src/lib.rs | 25 +++++++++++++------------
2 files changed, 19 insertions(+), 18 deletions(-)
diff --git a/Cargo.toml b/Cargo.toml
index 34f4008..55b5445 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,15 +15,15 @@ repository = "https://github.com/thoren-d/tracing-chrome"
exclude = ["/doc"]
[dependencies]
-serde_json = "1.0.93"
-tracing-core = "0.1.30"
-tracing-subscriber = "0.3.16"
+serde_json = "1.0.114"
+tracing-core = "0.1.32"
+tracing-subscriber = "0.3.18"
[dev-dependencies]
-criterion = "0.4.0"
-rayon = "1.6.1"
-tracing = "0.1.37"
+criterion = "0.5.1"
+rayon = "1.9.0"
+tracing = "0.1.40"
[[bench]]
diff --git a/src/lib.rs b/src/lib.rs
index 2a5b47e..e46a55d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -12,7 +12,7 @@ use std::{
marker::PhantomData,
path::Path,
sync::{
- atomic::{AtomicU64, Ordering},
+ atomic::{AtomicUsize, Ordering},
Arc, Mutex,
},
};
@@ -26,8 +26,8 @@ use std::{
};
thread_local! {
- static OUT: RefCell