Skip to content

Commit

Permalink
chore: lower MSRV to 1.75 (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
andylokandy authored Aug 14, 2024
1 parent 788a458 commit d669c6b
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
fail-fast: false
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
rust: [ "1.80.1", stable, nightly ]
rust: [ "1.75", stable, nightly ]
env:
RUST_BACKTRACE: 1
steps:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## v0.7.1

- Lower MSRV to 1.75.

## v0.7.0

- Upgrade dependencies including opentelemtry and more.
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ resolver = "2"
edition = "2021"
license = "Apache-2.0"
repository = "https://github.com/fast/fastrace"
rust-version = "1.80.1"
rust-version = "1.75"

[workspace.dependencies]
# workspace dependencies
fastrace = { version = "0.7.0", path = "fastrace" }
fastrace-macro = { version = "0.7.0", path = "fastrace-macro" }
fastrace = { version = "0.7.1", path = "fastrace" }
fastrace-macro = { version = "0.7.1", path = "fastrace-macro" }

# workspace leaves
fastrace-datadog = { path = "fastrace-datadog" }
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Crates.io](https://img.shields.io/crates/v/fastrace.svg?style=flat-square&logo=rust)](https://crates.io/crates/fastrace)
[![Documentation](https://img.shields.io/docsrs/fastrace?style=flat-square&logo=rust)](https://docs.rs/fastrace/)
[![MSRV 1.80.1](https://img.shields.io/badge/MSRV-1.80.1-green?style=flat-square&logo=rust)](https://www.whatrustisit.com)
[![MSRV 1.75.0](https://img.shields.io/badge/MSRV-1.75.0-green?style=flat-square&logo=rust)](https://www.whatrustisit.com)
[![CI Status](https://img.shields.io/github/actions/workflow/status/fast/fastrace/ci.yml?style=flat-square&logo=github)](https://github.com/fast/fastrace/actions)
[![License](https://img.shields.io/crates/l/fastrace?style=flat-square)](https://github.com/fast/fastrace/blob/main/LICENSE)

Expand Down Expand Up @@ -113,9 +113,9 @@ fn main() {

Detailed results are available in [etc/benchmark-result](etc/benchmark-result).

## Supported Rust Versions (MSRV 1.80.1)
## Supported Rust Versions (MSRV 1.75.0)

Fastrace is built against the latest stable release. The minimum supported version is 1.80.1. The current Fastrace version is not guaranteed to build on Rust versions earlier than the minimum supported version.
Fastrace is built against the latest stable release. The minimum supported version is 1.75.0. The current Fastrace version is not guaranteed to build on Rust versions earlier than the minimum supported version.

## Projects using fastrace

Expand Down
2 changes: 1 addition & 1 deletion fastrace-datadog/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-datadog"
version = "0.7.0"
version = "0.7.1"

categories = ["development-tools::debugging"]
description = "Datadog reporter for fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace-futures/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-futures"
version = "0.7.0"
version = "0.7.1"

categories = ["development-tools::debugging"]
description = "Utilities for tracing `futures` with fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace-jaeger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-jaeger"
version = "0.7.0"
version = "0.7.1"

categories = ["development-tools::debugging"]
description = "Jaeger reporter for fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-macro"
version = "0.7.0"
version = "0.7.1"

categories = ["development-tools::debugging"]
description = "Attribute procedural macro for fastrace"
Expand Down
2 changes: 1 addition & 1 deletion fastrace-opentelemetry/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace-opentelemetry"
version = "0.7.0"
version = "0.7.1"

categories = ["development-tools::debugging"]
description = "Opentelemetry reporter for fastrace"
Expand Down
5 changes: 4 additions & 1 deletion fastrace/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fastrace"
version = "0.7.0"
version = "0.7.1"

categories = ["development-tools::debugging"]
description = "A high-performance timeline tracing library for Rust"
Expand All @@ -24,6 +24,9 @@ pin-project = "1.1"
rand = "0.8"
rtrb = "0.3"

# TODO: remove once_cell once MSRV is above 1.80
once_cell = "1.19"

[dev-dependencies]
async-trait = "0.1"
criterion = { version = "0.5", features = ["html_reports"] }
Expand Down
2 changes: 1 addition & 1 deletion fastrace/src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ macro_rules! func_path {
}

/// Get the full path of the function where the macro is invoked. Returns a `&'static str`.
#[deprecated(since = "0.7.0", note = "Please use `fastrace::func_path!()` instead")]
#[deprecated(since = "0.7.1", note = "Please use `fastrace::func_path!()` instead")]
#[macro_export]
macro_rules! full_name {
() => {{
Expand Down
14 changes: 7 additions & 7 deletions fastrace/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ pub mod tree;

use std::borrow::Cow;
use std::cell::RefCell;
use std::sync::LazyLock;

use once_cell::sync::Lazy;

use crate::collector::CollectTokenItem;
use crate::local::raw_span::RawSpan;
use crate::util::object_pool::Pool;
use crate::util::object_pool::Puller;
use crate::util::object_pool::Reusable;

static RAW_SPANS_POOL: LazyLock<Pool<Vec<RawSpan>>> =
LazyLock::new(|| Pool::new(Vec::new, Vec::clear));
static COLLECT_TOKEN_ITEMS_POOL: LazyLock<Pool<Vec<CollectTokenItem>>> =
LazyLock::new(|| Pool::new(Vec::new, Vec::clear));
static RAW_SPANS_POOL: Lazy<Pool<Vec<RawSpan>>> = Lazy::new(|| Pool::new(Vec::new, Vec::clear));
static COLLECT_TOKEN_ITEMS_POOL: Lazy<Pool<Vec<CollectTokenItem>>> =
Lazy::new(|| Pool::new(Vec::new, Vec::clear));
#[allow(clippy::type_complexity)]
static PROPERTIES_POOL: LazyLock<Pool<Vec<(Cow<'static, str>, Cow<'static, str>)>>> =
LazyLock::new(|| Pool::new(Vec::new, Vec::clear));
static PROPERTIES_POOL: Lazy<Pool<Vec<(Cow<'static, str>, Cow<'static, str>)>>> =
Lazy::new(|| Pool::new(Vec::new, Vec::clear));

thread_local! {
static RAW_SPANS_PULLER: RefCell<Puller<'static, Vec<RawSpan>>> = RefCell::new(RAW_SPANS_POOL.puller(512));
Expand Down

0 comments on commit d669c6b

Please sign in to comment.