Skip to content

Commit b9f6e2d

Browse files
committed
fix: cgf_attr
1 parent 969ab9a commit b9f6e2d

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "fq"
3-
version = "0.0.4"
3+
version = "0.0.5"
44
authors = ["QEDK <[email protected]>"]
55
edition = "2024"
66
description = "A fast and simple ring-buffer-based single-producer, single-consumer queue with no dependencies. You can use this to write Rust programs with low-latency message passing."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ this to write Rust programs with low-latency message passing.
99
Add this to your `Cargo.toml`:
1010
```TOML
1111
[dependencies]
12-
fq = "0.0.4"
12+
fq = "0.0.5"
1313
```
1414

1515
## Quickstart

src/lib.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,14 @@ bench but performance will still be affected based on the core type and cache co
6666
provided in the [benches](benches/bench.rs) directory and can be run with `cargo bench`. Contributions via
6767
PRs for additional benchmarks are welcome.
6868
*/
69-
#![cfg_attr(nightly, feature(stdarch_aarch64_prefetch))]
69+
#![cfg_attr(
70+
all(nightly, target_arch = "aarch64"),
71+
feature(stdarch_aarch64_prefetch)
72+
)]
7073
use core::alloc::Layout;
7174
use core::cell::UnsafeCell;
7275
use core::marker::PhantomData;
73-
use core::mem::MaybeUninit;
76+
use core::mem::{MaybeUninit, size_of};
7477
use core::ptr;
7578
use core::sync::atomic::{AtomicUsize, Ordering};
7679
use std::alloc::{alloc, dealloc, handle_alloc_error};

0 commit comments

Comments
 (0)