instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tokio-rs__bytes__288 | tokio-rs/bytes | 288 | defect | 79e4b2847f27137faaf149d116a352cbeae47fd1 | 329948b7aa3907aa3b56b5d4c1147e9a5bc07bb1 | Remove IntoBuf/FromBuf | As consequence we remove Buf::collect and instead place it only into Chain.
This makes user to collect underlying bytes harder as can be illustrated with VecDeque
Closes #196 | diff --git a/ci/azure-cross-compile.yml b/ci/azure-cross-compile.yml
index cdcc197a2..62840f552 100644
--- a/ci/azure-cross-compile.yml
+++ b/ci/azure-cross-compile.yml
@@ -37,6 +37,7 @@ jobs:
- script: |
git clone https://github.com/rust-embedded/cross.git
cd cross
+ git reset --hard fb1c... | 5 | 5 | 3 | [{"id": "G0", "claim": "The cross CI jobs fail because the cross-patch no longer applies (git apply fails at src/docker.rs), so the patch file needs fixing or the CI needs to check out a known-good cross commit before git apply.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "pre_existi... | null |
tokio-rs__bytes__316 | tokio-rs/bytes | 316 | defect | 59aea9e8719d8acff18b586f859011d3c52cfcde | 2b0ef018c71ec9a48dc40a83980b4697efd2232e | implicitly grow BytesMut; add BufMutExt::chain_mut | This brings `BytesMut` in line with `Vec<u8>` behavior.
**Note** this PR also fixes an existing bug in `BytesMut::bytes_mut` that exposes invalid slices.
In order to fix a test, `BufMutExt::chain_mut` is provided. Withou this,
it is not possible to chain two `&mut [u8]`.
Closes #170 | diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 416e1fb7e..81bd54079 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -37,7 +37,7 @@ jobs:
parameters:
name: nightly
# Pin nightly to avoid being impacted by breakage
- rust_version: nightly-2019-09-25
+ rust_version: nightly-2... | 4 | 3 | 1 | [{"id": "G0", "claim": "The doc comment on BufMutExt::chain_mut should use the American English spelling \"adapter\" instead of \"adaptor\", to match the rest of the docs.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "BytesMut::bytes_mut's new im... | null |
tokio-rs__bytes__346 | tokio-rs/bytes | 346 | defect | 8ae3bb2104fda9a02d55ac5635974ca1b5a49ebb | 0db53a6f86b24b04de43732ef81c3d97b6ba0127 | Fix Bytes when Vec pointer's LSB is set | This separates the `SharedVtable` into 3:
- `PromotableEvenVtable`: The original `SharedVtable`, which will
promote the `Vec` to `Shared` on the first clone, and is selected when
the `Vec`'s pointer has the LSB unset.
- `PromotableOddVtable`: Similar to the `PromotableEvenVtable`, but
selected when the `Ve... | diff --git a/src/bytes.rs b/src/bytes.rs
index e2f08b57e..854195dbf 100644
--- a/src/bytes.rs
+++ b/src/bytes.rs
@@ -731,20 +731,23 @@ impl From<Vec<u8>> for Bytes {
let slice = vec.into_boxed_slice();
let len = slice.len();
let ptr = slice.as_ptr();
-
- assert!(
- ptr as us... | 2 | 1 | 0 | [{"id": "G0", "claim": "The is_empty special case above in `impl From<Vec<u8>> for Bytes` can now be removed, since the low bit is being tracked properly.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The debug_assert! code left commented out... | null |
tokio-rs__bytes__433 | tokio-rs/bytes | 433 | defect | ced050730c7a5f9d322c0cf9aedea67f16151e90 | 00b6d89f656b08fd3a2bfd5f4a7cdcfdef10d5ec | Switch `BufMut::bytes_mut` from `MaybeUninit` to `&mut UninitSlice`, a type ownec by `bytes` for this purpose | The way `BufMut` uses `MaybeUninit` can lead to unsoundness.
This replaces `MaybeUnit` with a type owned by `bytes` so we can ensure the usage patterns are sound.
Refs: #328 | diff --git a/src/buf/buf_mut.rs b/src/buf/buf_mut.rs
index 026bcad02..005f405fe 100644
--- a/src/buf/buf_mut.rs
+++ b/src/buf/buf_mut.rs
@@ -1,12 +1,8 @@
-use crate::buf::{limit, Chain, Limit};
+use crate::buf::{limit, Chain, Limit, UninitSlice};
#[cfg(feature = "std")]
use crate::buf::{writer, Writer};
-use core::... | 6 | 5 | 0 | [{"id": "G0", "claim": "The `as_ptr` method is almost useless because the returned `*const u8` cannot be read from or written to (only the address can be compared, hashed, debugged), and this should be documented somehow.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {... | null |
tokio-rs__bytes__450 | tokio-rs/bytes | 450 | defect | 54f5ced6c58c47f721836a9444654de4c8d687a1 | f9128577fe6854282491750121506aeb8a0e9579 | Rename Buf/BufMut, methods to chunk/chunk_mut | The `bytes()` / `bytes_mut()` name implies the method returns the full
set of bytes represented by `Buf`/`BufMut`. To rectify this, the methods
are renamed to `chunk()` and `chunk_mut()` to reflect the partial nature
of the returned byte slice.
Additionally, `bytes_vectored()` is renamed `chunk_vectored()`.
Cl... | diff --git a/benches/buf.rs b/benches/buf.rs
index 4b5d2864a..6dc8516dd 100644
--- a/benches/buf.rs
+++ b/benches/buf.rs
@@ -53,7 +53,7 @@ impl Buf for TestBuf {
assert!(self.pos <= self.buf.len());
self.next_readlen();
}
- fn bytes(&self) -> &[u8] {
+ fn chunk(&self) -> &[u8] {
if... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new vectored method should be named `chunks_vectored` rather than `chunk_vectored`, for consistency with the other renamed plural-returning methods.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__bytes__486 | tokio-rs/bytes | 486 | defect | 2428c152a67c06057a98d9d29b08389cb3429c1f | 3d2b2653c58c604d014f683f47fed986a3c7b70c | Clarify BufPut::put_int behavior | * writes low bytes, discards high bytes
* panics if `nbytes` is greater than 8 | diff --git a/src/buf/buf_mut.rs b/src/buf/buf_mut.rs
index 844474fb9..9f2249e2c 100644
--- a/src/buf/buf_mut.rs
+++ b/src/buf/buf_mut.rs
@@ -696,7 +696,7 @@ pub unsafe trait BufMut {
self.put_slice(&n.to_le_bytes()[0..nbytes]);
}
- /// Writes a signed n-byte integer to `self` in big-endian byte order... | 1 | 1 | 1 | [{"id": "G0", "claim": "The doc comment on put_int_le wrongly says it writes in big-endian byte order; it should say little-endian.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__bytes__487 | tokio-rs/bytes | 487 | defect | 2428c152a67c06057a98d9d29b08389cb3429c1f | 5be075cb4f6cca807c09bafea30f5769b6cfc8cd | BufMut::put_bytes(self, val, cnt) | Equivalent to
```
for _ in 0..cnt {
self.put_u8(val);
}
```
but may work faster.
Name and signature is chosen to be consistent with `ptr::write_bytes`.
Include three specializations:
* `Vec<u8>`
* `&mut [u8]`
* `BytesMut`
`BytesMut` and `&mut [u8]` specializations use `ptr::write`, `Vec<u8>`
... | diff --git a/src/buf/buf_mut.rs b/src/buf/buf_mut.rs
index 844474fb9..a5a7ee749 100644
--- a/src/buf/buf_mut.rs
+++ b/src/buf/buf_mut.rs
@@ -254,6 +254,32 @@ pub unsafe trait BufMut {
}
}
+ /// Put `cnt` bytes `val` into `self`.
+ ///
+ /// Logically equivalent to calling `self.put_u8(val)` `cn... | 1 | 1 | 0 | [{"id": "G0", "claim": "The documentation of `put_bytes` should document its panic behaviour in a `# Panics` section (that the function panics if there is not enough remaining capacity in `self`), as provided in the reviewer's suggestion block.", "category": "documentation", "verdict": "supported", "priority": "P2", "s... | null |
tokio-rs__bytes__515 | tokio-rs/bytes | 515 | defect | ebc61e5af14cd9b436ba880cf19e849b05a04c29 | 50ecafe83c38153b873973cda445d93606ae8ff6 | Appease miri | Rewrote the ledger in `test_bytes_vec_alloc.rs` to not piss off miri. The ledger is now a table within the allocator, which seems to satisfy miri. The old solution was to bundle an extra usize into the beginning of each allocation and then index past the start when deallocating data to get the size.
~There is one ja... | diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 00a4414eb..24b9cae9e 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -11,7 +11,7 @@ on:
env:
RUSTFLAGS: -Dwarnings
RUST_BACKTRACE: 1
- nightly: nightly-2021-04-13
+ nightly: nightly-2021-11-5
defaults:
run:
dif... | 2 | 2 | 1 | [{"id": "G0", "claim": "The nightly toolchain pin in ci.yml is broken for this PR's code: the job fails on the very old original pin, and paolobarbolini later suggested the pin `nightly-2021-11-05` to fix the mistyped `nightly-2021-11-5`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "... | null |
tokio-rs__bytes__547 | tokio-rs/bytes | 547 | defect | 068ed41bc02c21fe0a0a4d8e95af8a4668276f5d | b5e67e32fd627fa7b2d4c744630a5f60e8fa7808 | Add conversion from Bytes to Vec<u8> | Fixed #427
This PR adds conversion for `Bytes`, which is parallel to #543, which adds conversion for `BytesMut`.
This PR supersedes #151
Signed-off-by: Jiahao XU [Jiahao_XU@outlook.com](mailto:Jiahao_XU@outlook.com) | diff --git a/run_tests.sh b/run_tests.sh
new file mode 100755
index 000000000..98085f2fa
--- /dev/null
+++ b/run_tests.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+
+set -euxo pipefail
+
+cargo nextest run --all-features
+
+#export MIRIFLAGS="-Zmiri-strict-provenance"
+cargo +nightly miri test --all-features
+
+export ASAN_OPTION... | 5 | 5 | 2 | [{"id": "G0", "claim": "The purpose of the newly added run_tests.sh convenience script was questioned, implying it does not belong in the PR.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Use the standard `slice::to_vec` method instead of `slic... | null |
tokio-rs__bytes__597 | tokio-rs/bytes | 597 | defect | 74b04c7aae5fd7e73f4283774eab0ef72a26a8a7 | c818d8b5abf8f89b56fbdf581593beacb798d43f | Implement BufMut for `&mut [MaybeUninit<u8>]` | This will allow using BufMut without having to initialise memory
first. In particular, this will allow simple integration with tokio:
#![feature(maybe_uninit_slice)]
use tokio::io::AsyncReadExt;
let mut tokio_file = /* ... */;
let mut buf = [MaybeUninit::uninit(); 4096];
let len = tokio... | diff --git a/src/buf/buf_mut.rs b/src/buf/buf_mut.rs
index 685fcc76b..b2f2d8cc3 100644
--- a/src/buf/buf_mut.rs
+++ b/src/buf/buf_mut.rs
@@ -1419,6 +1419,41 @@ unsafe impl BufMut for &mut [u8] {
}
}
+unsafe impl BufMut for &mut [core::mem::MaybeUninit<u8>] {
+ #[inline]
+ fn remaining_mut(&self) -> usize ... | 2 | 2 | 2 | [{"id": "G0", "claim": "BufMut::put_slice for `&mut [MaybeUninit<u8>]` panics whenever `src.len() < self.len()`, because it calls `copy_from_slice` on the whole remaining chunk, which requires equal lengths.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "cla... | null |
tokio-rs__bytes__617 | tokio-rs/bytes | 617 | defect | 16cc574feae9057f9550f7802bb768ab0db759ab | cf0477b787917171d6123356f54c7fe2cdb0e9ff | add specialized `Buf::chunks_vectored` for `Take` | The `h2` crate uses `Take` around the data frames to enforce a maximum frame size, which breaks vectored writes since `Take` doesn't provide a specialized `chunks_vectored` that calls the underlying `chunks_vectored`.
To make this work with truncating individual `IoSlice`s, I needed to resort to a tiny bit of `unsaf... | diff --git a/src/buf/take.rs b/src/buf/take.rs
index a16a434ee..0eff707b7 100644
--- a/src/buf/take.rs
+++ b/src/buf/take.rs
@@ -152,4 +152,24 @@ impl<T: Buf> Buf for Take<T> {
self.limit -= len;
r
}
+
+ #[cfg(feature = "std")]
+ fn chunks_vectored<'a>(&'a self, dst: &mut [std::io::IoSlice<... | 2 | 2 | 1 | [{"id": "G0", "claim": "The TODO comment about removing `unsafe` should be updated to mention that `IoSlice::advance` has been stabilized in Rust 1.81.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The implementation writes to the extra unused sl... | null |
tokio-rs__bytes__643 | tokio-rs/bytes | 643 | defect | 72cbb92e0e53680c67c27b56fabbe1f3ed5dbae9 | 579219ed981ec5d2c8c7647f4657ed8178a81d1d | add `Bytes::is_unique` | Closes #533
This adds the `is_unique` method to `Bytes`. It checks reference count when backed by (effectively) `Arc<Vec<u8>>`, returns true when backed by a vec, and returns false for static slices | diff --git a/src/bytes.rs b/src/bytes.rs
index 9fed3d287..2f7ffc630 100644
--- a/src/bytes.rs
+++ b/src/bytes.rs
@@ -208,6 +208,42 @@ impl Bytes {
self.len == 0
}
+ /// Returns true if this is the only reference to the data.
+ ///
+ /// Always returns false if the data is backed by a static sli... | 5 | 3 | 1 | [{"id": "G0", "claim": "The author is unsure whether the `Relaxed` ordering used to load `ref_cnt` inside `is_unique` is correct.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "If `is_unique` returns true there is no guarantee the data is still uniq... | null |
tokio-rs__bytes__674 | tokio-rs/bytes | 674 | defect | 99584cc10d66cb6880a20c5ac9b9a960f9c17823 | c0403745d5b8bd1ae0dfcfea298fa90dc73ea5a4 | Remove redundant reserve call | *Note: Miri is currently failing in CI, but is fixed by https://github.com/tokio-rs/bytes/pull/673*
We're calling `reserve` twice because `put_u8` already calls it.
1. put_u8 [calls put_slice](https://github.com/tokio-rs/bytes/blob/46289278f52a26c12298779f4aaebad1dcb26d35/src/buf/buf_mut.rs#L323)
2. BytesMut::pu... | diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs
index 734f4df92..1b4a4d9ae 100644
--- a/src/bytes_mut.rs
+++ b/src/bytes_mut.rs
@@ -1283,9 +1283,7 @@ impl Extend<u8> for BytesMut {
// TODO: optimize
// 1. If self.kind() == KIND_VEC, use Vec::extend
- // 2. Make `reserve` inline-able
... | 2 | 1 | 1 | [{"id": "G0", "claim": "Removing the 'Make `reserve` inline-able' TODO may be premature because the optimization it describes may not have been resolved yet.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added that calls `extend` w... | null |
tokio-rs__bytes__732 | tokio-rs/bytes | 732 | defect | 291df5acc94b82a48765e67eeb1c1a2074539e68 | 216366f433b8eb647a4ad74cb8e30dc673ea524a | Apply sign extension when decoding int | This PR fixes a regression introduced in #280.
During the removal of the `byteorder` crate all conversions between `Buf`/`BufMut` and primitive integer types were replaced with std implementations (`from_be_bytes`, `from_le_bytes`, `to_be_bytes`, `to_le_bytes` etc.). When dealing with variable length signed integers... | diff --git a/src/buf/buf_impl.rs b/src/buf/buf_impl.rs
index c44d4fb38..9ef464075 100644
--- a/src/buf/buf_impl.rs
+++ b/src/buf/buf_impl.rs
@@ -66,6 +66,12 @@ macro_rules! buf_get_impl {
}};
}
+// https://en.wikipedia.org/wiki/Sign_extension
+fn sign_extend(val: u64, nbytes: usize) -> i64 {
+ let shift = (8... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a couple of \"simpler\" test cases, like those reported in the issue, above the existing assertions in test_get_int so readers can understand more quickly what it is testing.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__bytes__742 | tokio-rs/bytes | 742 | defect | c45697ce4230777aa8467db7ef91e89f282a539f | d3b6798d764d9619b947e7a0940f7375841c79c9 | feat: Bytes::from_owner | Introduces `Bytes::from_owner`, allowing the creation of a bytes object from another `AsRef<[u8]>` object which is responsible for the ownership of the exposed byte slice.
The core use case is to safely construct from mapped memory.
```rust
use memmap2::Map;
let file = File::open("upload_bundle.tar.gz")?;
le... | diff --git a/src/bytes.rs b/src/bytes.rs
index 8d7abd040..26d712ec8 100644
--- a/src/bytes.rs
+++ b/src/bytes.rs
@@ -116,6 +116,7 @@ pub(crate) struct Vtable {
pub to_mut: unsafe fn(&AtomicPtr<()>, *const u8, usize) -> BytesMut,
/// fn(data)
pub is_unique: unsafe fn(&AtomicPtr<()>) -> bool,
+ pub chea... | 16 | 12 | 3 | [{"id": "G0", "claim": "An acquire load on the ref-count must be performed in the old_cnt == 1 case before running the owner's destructor, to synchronize with other threads concurrently dropping the ref-count.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "c... | null |
tokio-rs__bytes__780 | tokio-rs/bytes | 780 | defect | 141cbc22cbd04c4f3cf3d2af0a0f449322918d69 | 280a0c4b39453b21d02f6a74a33caccb7bdf5134 | Guarantee address in `slice()` for empty slices. | This should close #779. | diff --git a/src/bytes.rs b/src/bytes.rs
index e2c187cc1..891777771 100644
--- a/src/bytes.rs
+++ b/src/bytes.rs
@@ -400,10 +400,6 @@ impl Bytes {
len,
);
- if end == begin {
- return Bytes::new();
- }
-
let mut ret = self.clone();
ret.len = end - beg... | 1 | 1 | 0 | [{"id": "G0", "claim": "For an empty slice, the returned Bytes needlessly holds a refcount to the allocation; the reviewer asks that this case go through `new_empty_with_ptr` instead.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__bytes__803 | tokio-rs/bytes | 803 | defect | 4b53a29eb26716592ef2f00f925ef58ccb182e61 | 222ce86fcc1c634e5615493e050a19b656091a4c | fix: `BytesMut` only reuse if src has remaining | prevent stack overflow in this case:
```rs
let mut buf = BytesMut::new();
buf.put(&[] as &[u8]);
```
closes #802 | diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs
index 333a0ae1e..663ba9557 100644
--- a/src/bytes_mut.rs
+++ b/src/bytes_mut.rs
@@ -1203,7 +1203,7 @@ unsafe impl BufMut for BytesMut {
Self: Sized,
{
// When capacity is zero, try reusing allocation of `src`.
- if self.capacity() == 0 {
+ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The empty-source check should be hoisted to the top of `put` with an early return (as in the suggested block) instead of being ANDed onto the zero-capacity condition.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Move the ne... | null |
tokio-rs__bytes__818 | tokio-rs/bytes | 818 | defect | 804ee6d039bdea017f0f3faf91806c9771d7e555 | d0c0702121fb9f8836a20ecc5431d7b0e1527359 | Implement `BytesMut::extend_from_within` (#817) | Closes #817.
- [x] Implement `BytesMut::extend_from_within`
- [x] Implement tests for `BytesMut::extend_from_within`
@Darksonn, can you take a look at this? | diff --git a/src/bytes.rs b/src/bytes.rs
index 441ca80d7..faad6488a 100644
--- a/src/bytes.rs
+++ b/src/bytes.rs
@@ -367,34 +367,7 @@ impl Bytes {
/// Requires that `begin <= end` and `end <= self.len()`, otherwise slicing
/// will panic.
pub fn slice(&self, range: impl RangeBounds<usize>) -> Self {
- ... | 6 | 6 | 1 | [{"id": "G0", "claim": "Use one unsafe block per line of code in extend_from_within instead of a single large unsafe block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Remove the spurious spaces after 'SAFETY' in all safety comments.", "categ... | null |
tokio-rs__console__364 | tokio-rs/console | 364 | defect | e4eff4d1c95259ac3a46f21c910fcc2c2f96004f | 98395f5011196ee96334d3d9a93f08dc3483e05f | chore: update Tonic and Prost dependencies | This branch updates the console crates' dependency on `tonic` to v0.8.0
and `prost` to 0.11.0.
In addition, I've added a [`cargo xtask`][xtask] command for manually
regenerating the generated protobuf bindings.
This is necessary as the current approach, regenerating the bindings in
an integration test, does no... | diff --git a/.cargo/config b/.cargo/config
index 16f1e73ac..f2ea191eb 100644
--- a/.cargo/config
+++ b/.cargo/config
@@ -1,2 +1,5 @@
[build]
-rustflags = ["--cfg", "tokio_unstable"]
\ No newline at end of file
+rustflags = ["--cfg", "tokio_unstable"]
+
+[alias]
+xtask = "run --manifest-path ./xtask/Cargo.toml --"
\ No... | 2 | 1 | 0 | [{"id": "G0", "claim": "Remove the blank line the PR added between the `eprintln!(\"protos regenerated!\");` call and `Ok(())` in xtask/src/main.rs (empty suggestion block anchored on the added blank line 62).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim":... | null |
tokio-rs__console__494 | tokio-rs/console | 494 | defect | 8269b5fc58aefb6f73eb9da8d178032c26e99028 | 705c4f8bb088f2e9996b481e2ecbbc878905169a | test: make sure do not ignore the UI tests | Found it from https://github.com/tokio-rs/console/actions/runs/6988785469/job/19016699616?pr=493.
If the binary does not exist, it will ignore the test cases.
After this change, it will bail out an error.
I moved it to integration tests dir, we don't need to build the binary manually. | diff --git a/tokio-console/src/config.rs b/tokio-console/src/config.rs
index cdc2e8dab..7e2fd2f6e 100644
--- a/tokio-console/src/config.rs
+++ b/tokio-console/src/config.rs
@@ -778,18 +778,6 @@ mod tests {
Config::command().debug_assert()
}
- #[test]
- // You can use `TRYCMD=overwrite` to overwrit... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use a single-file module rather than a directory for the UI test: change tokio-console/tests/ui/mod.rs to tokio-console/tests/ui.rs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__io-uring__120 | tokio-rs/io-uring | 120 | defect | 94d9efea3626cfd5e4ec8e4ea405c84e93a4fdfa | fb6b2213d1ce85b783d0ec02a504993b275dcd0c | Allow debug printing of the submission queue | When debugging programs using io_uring it can be useful to check the
state of the submission queue. To make that easier I've added an
implementation of Debug on Entry and SubmissionQueue.
I'm not 100% sure I implemented this correctly so I'd appreciate a code review. I also added a test that just prints the queue ... | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 5f4adf37..adecda05 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -28,6 +28,7 @@ fn main() -> anyhow::Result<()> {
tests::queue::test_nop(&mut ring, &test)?;
tests::queue::test_queue_split(&mut ring, &test)?;... | 1 | 1 | 0 | [{"id": "G0", "claim": "Get a `&Entry` directly in SubmissionQueue's Debug formatting instead of copying each entry out of the sqes array, thus avoiding a copy.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__io-uring__124 | tokio-rs/io-uring | 124 | defect | b5c816251a587a4caf5168049d3a39279c3f8724 | 00c3c624c9bca642835955491ae1bb37ce45b802 | Add buf_group field to Readv and RecvMsg opcodes | Follow-up to #123, this enables the use of io_uring's automatic buffer selection for those operations. | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 3421ec66..d89c1b1f 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -108,6 +108,7 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
tests::net::test_tcp_sendmsg_recvmsg(&mut ring, &test)?;
tests::net::t... | 7 | 7 | 3 | [{"id": "G0", "claim": "The new buf_group fields on Readv and RecvMsg should get a test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The CI hangs on tcp_buffer_select because the CI kernel does not support the feature, so the test should be marked un... | null |
tokio-rs__io-uring__127 | tokio-rs/io-uring | 127 | defect | 4a72c92455114d13f7c1e148c59121dffa710efe | 0948597c1ed70bf1ce7f6e3e1568c5604fd44bf0 | opcode: use u64 type for the offset | `libc::off_t` is `i64` while kernel and liburing uses an `u64`
for the `offset` field in most of the opcodes.
There are some exceptions like `IORING_OP_FILES_UPDATE` and
`IORING_OP_FALLOCATE`.
To avoid differences and casting issues (e.g. using `try_into()`
on `u64` to cast to `i64` can fail) we should follow ... | diff --git a/io-uring-test/src/tests/fs.rs b/io-uring-test/src/tests/fs.rs
index 3aaa10f1..633a67cc 100644
--- a/io-uring-test/src/tests/fs.rs
+++ b/io-uring-test/src/tests/fs.rs
@@ -561,7 +561,7 @@ pub fn test_file_cur_pos<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
let mut output = vec![0; text.len()];
... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `offset64` builder field added by the PR for the readv/writev-style opcodes should be named `offset` again.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The opcodes still taking `off64_t` — notably `fallocate`, plus madvise/... | null |
tokio-rs__io-uring__145 | tokio-rs/io-uring | 145 | defect | 9fa30e49a09dba68a4a1b097e2fde77ec1841613 | bf6595667f26a927aa2aa984a375fa515deee1e8 | add register_files_sparse | The ability to register a completely sparse file descriptor table is introduced with the 5.19 kernel.
Also, a register test module is added with a single test for the new register_files_sparse submitter method. Besides testing that the method can be run without error, it tests that unregister_files works by checking... | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index fde6ef14..71236bd7 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -73,6 +73,9 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
#[cfg(feature = "unstable")]
tests::queue::test_batch(&mut ring, &test)?... | 2 | 2 | 2 | [{"id": "G0", "claim": "As a new feature that has not been tested on CI, register_files_sparse needs to be marked unstable.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The unguarded call to test_register_files_sparse in main.rs and its unguarded defin... | null |
tokio-rs__io-uring__151 | tokio-rs/io-uring | 151 | defect | aae166577e307fd9f39d1d0401234b78b372ebb0 | 06aba94f1b4f1723b4a6f18581baf6a7f29dc054 | register_buf_ring and unregister_buf_ring | Add support for the buffer ring, available since 5.19.
Add functions register_buf_ring and unregister_buf_ring
and make public the sys::io_uring_buf struct as cqueue::io_uring_buf. | diff --git a/src/cqueue.rs b/src/cqueue.rs
index 936f02e0..221bd4d5 100644
--- a/src/cqueue.rs
+++ b/src/cqueue.rs
@@ -332,3 +332,7 @@ pub fn buffer_select(flags: u32) -> Option<u16> {
pub fn more(flags: u32) -> bool {
flags & sys::IORING_CQE_F_MORE != 0
}
+
+#[cfg(feature = "unstable")]
+#[allow(non_camel_case_... | 2 | 2 | 2 | [{"id": "G0", "claim": "The sys::io_uring_buf type alias should not be published directly; provide a stable API wrapper around the codegen layout instead (as done for other types in types.rs).", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for... | null |
tokio-rs__io-uring__175 | tokio-rs/io-uring | 175 | defect | 54bf4beb3146d275ff1e1b1f15677c14c0da37df | 19b4b1d68319a5217caf6723a9ad9e28bf3875ac | opcode: add support for IORING_MSG_SEND_FD | This introduces a new `MsgRingSendFd` operation in order to wrap the combination of `IORING_OP_MSG_RING` plus `IORING_MSG_SEND_FD` (available since 6.0). | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index f7c203ff..fe99c46d 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -70,6 +70,7 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
tests::queue::test_queue_split(&mut ring, &test)?;
tests::queue::test_de... | 4 | 4 | 1 | [{"id": "G0", "claim": "The test may be wrong: the destination ring has only a fixed file list of length 1 (so only slot [0] exists) while the test sends to destination slot [1], and nothing reports the operation as failed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id"... | null |
tokio-rs__io-uring__191 | tokio-rs/io-uring | 191 | defect | dcf6a124926cfb32bc94ff0b617bba6844bf54b6 | 66d6006aadb61423e0e13d16af8c933889488c4d | opcode: add support for IORING_POLL_ADD_MULTI | Adds a `multi` optional field to the `PollAdd` opcode. | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 74c705fa..99b1c509 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -122,6 +122,8 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
tests::poll::test_eventfd_poll(&mut ring, &test)?;
tests::poll::test_e... | 1 | 1 | 1 | [{"id": "G0", "claim": "Documentation is needed for the newly added multi-shot `multi` field of `PollAdd`, whose doc hunk only notes that multi-shot mode is available since 5.13 without explaining it.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__io-uring__192 | tokio-rs/io-uring | 192 | defect | 3c85218dfdbf858f34b489832769b71cfca91a70 | 3be5f1b9820209e7c24b899b58fd7388d258dc15 | types: add RecvMsgOut helper structure | This introduces a `RecvMsgOut` structure which allows consumers to
safely parse the buffered result from a multishot `IORING_OP_RECVMSG`
completion event. | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 79663f56..c7bf5344 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -123,6 +123,7 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
#[cfg(not(feature = "ci"))]
tests::net::test_tcp_recv_multi(&mut ring,... | 6 | 5 | 2 | [{"id": "G0", "claim": "The multishot receive operation should be conveyed by a new opcode (e.g. RecvMsgMulti) rather than by flags on the existing RecvMsg opcode.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should wait (submit_and_wait(3)) a... | null |
tokio-rs__io-uring__193 | tokio-rs/io-uring | 193 | defect | 3c85218dfdbf858f34b489832769b71cfca91a70 | 931d04720b7cf158a0741b11bd90fc967f28a411 | opcode: add optional fixed_buf to SendZc | The SendZc opcode now takes an optional fixed_buf parameter. Specify it as builder.fixed_buf(Some(id)) as a value of 0 is a valid fixed buffer index. | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 79663f56..c93d1739 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -107,6 +107,7 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
tests::net::test_tcp_writev_readv(&mut ring, &test)?;
tests::net::test... | 2 | 2 | 1 | [{"id": "G0", "claim": "The separate SendZcFixed opcode should be dropped in favor of an optional fixed-buffer capability on SendZc (an optional method/parameter), using Option for buf_index so that a valid buf_index of 0 can be distinguished from 'not set'.", "category": "design", "verdict": "supported", "priority": "... | null |
tokio-rs__io-uring__201 | tokio-rs/io-uring | 201 | defect | 6785e666869993f81414a5cfad501ef714c742e9 | 17487afc9ac1e631a283cb65f3cd7791cbfdaecf | opcode: add RecvMsgMulti | Adds the RecvMsgMulti opcode.
Updated the unit test to use it.
Also fixes the RecvMsg handling of the seq.flags field. It wouldn't have handled a fixed file descriptor.
Also improves the documentation to RecvMsg, to better describe the buf_group parameter and the *Multi* aspect of the operation. | diff --git a/io-uring-test/src/tests/net.rs b/io-uring-test/src/tests/net.rs
index 07314fa2..b33a56f7 100644
--- a/io-uring-test/src/tests/net.rs
+++ b/io-uring-test/src/tests/net.rs
@@ -1292,16 +1292,11 @@ pub fn test_udp_recvmsg_multishot<S: squeue::EntryMarker, C: cqueue::EntryMarker
msghdr.msg_namelen = 32;
... | 2 | 1 | 0 | [{"id": "G0", "claim": "The msg parameter of the new RecvMsgMulti opcode does not strictly need to be a mutable pointer (*mut libc::msghdr); it should be *const instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The #[derive(Debug)] attribute on the... | null |
tokio-rs__io-uring__225 | tokio-rs/io-uring | 225 | defect | 0a8d5d16d2248f2b68aa8ab54b502524363cafb6 | 9f5f1aa64fd44180b71e621a88d8337a8d893d5a | Add support for IORING_REGISTER_SYNC_CANCEL | Adds a new Submitter method, register_sync_cancel which can be used to synchronously cancel operations.
Additionally, this adds AsyncCancelFlags used to configure cancellation.
I didn't integrate the `AsyncCancelFlags` with the `opcode::AsyncCancel` in this PR, mostly because I haven't needed it but I can either do... | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index f806f159..9cf7ff17 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -77,7 +77,8 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
// register
tests::register::test_register_files_sparse(&mut ring, &test... | 7 | 7 | 3 | [{"id": "G0", "claim": "The public API of register_sync_cancel should be reconsidered: whether to take a Duration or a Timespec, whether callers should pass impl UseFixed instead of a raw fd plus AsyncCancelFlags, and whether timeout: None should wait indefinitely.", "category": "design", "verdict": "supported", "prior... | null |
tokio-rs__io-uring__228 | tokio-rs/io-uring | 228 | defect | f5f32c46a6b9918fbeb5fe9ffab9c0821c5e7cb8 | fa3a7401c75f1a64edb7f553362e31a7d9e3f6a4 | Added option to use SendZc for connectionless streams. | With this changes we can set destination address. It is usefull when working with connectionless UDP, like `.send_to()`.
```
let std = SocketAddrV6::new(Ipv6Addr::new(1, 2, 3, 4, 5, 6, 7, 8), 9876, 11, 12);
let dest_addr = SockAddr::from(std);
let sendzc = opcode::SendZc::new(Fd(self.as_raw_fd()), buf.as_ptr(), buf... | diff --git a/src/opcode.rs b/src/opcode.rs
index ca563a73..6346c922 100644
--- a/src/opcode.rs
+++ b/src/opcode.rs
@@ -1660,6 +1660,8 @@ opcode!(
/// previously registered buffer. The buffer need not be aligned with the start of the
/// registered buffer.
buf_index: Option<u16> = None,
+ ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The new dest_addr/dest_addr_len fields on SendZc need documentation and tests.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test's strict ordered assertions on cqes may be too strict because the kernel may not guarantee the... | null |
tokio-rs__io-uring__257 | tokio-rs/io-uring | 257 | defect | cc8060a7b5c72cacab10ee288061785d1f5dd56e | 5ac4c4d04a8ee2149bf9f558ef69d86735bf99d9 | Fix broken RecvMsgOut parsing | The current parsing doesn't actually let the buffer ever be truncated and instead errors out immediately. This PR fixes it to only ever out when the buffer is smaller than the header. This implementation matches liburing's validation: https://github.com/axboe/liburing/blob/c44319a6bfb9953b430325227a94136690c19c33/src/i... | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 6192e202..9d6bb0e8 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -132,6 +132,7 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
tests::net::test_shutdown(&mut ring, &test)?;
tests::net::test_socket(... | 9 | 8 | 3 | [{"id": "G0", "claim": "Add a regression test for the RecvMsgOut parsing fix.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Check a flag to skip the truncation test on CI, since it fails on CI's kernel.", "category": "testing", "verdict": "supported", ... | null |
tokio-rs__io-uring__272 | tokio-rs/io-uring | 272 | defect | 8910e9a373ef6162b7c872afd555ca14ef81d1e4 | 8b81bc1a94aa36c3b87346f0b241866837121407 | opcode: add Futex{Wake,Wait,Waitv} | These opcodes are available since Linux 6.7, and are mentioned by #253. `FutexWaitV` expects a new struct `futex_waitv` which is available in linux-raw-sys. An opaque type is added to the main crate to avoid polling in the dependency.
See:
- `IORING_OP_FUTEX_{WAIT,WAKE}`: https://github.com/torvalds/linux/commit/19... | diff --git a/Cargo.lock b/Cargo.lock
index 8b8e86da..c992ea74 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -360,6 +360,7 @@ dependencies = [
"anyhow",
"io-uring",
"libc",
+ "linux-raw-sys 0.6.4",
"once_cell",
"semver",
"socket2",
@@ -436,6 +437,12 @@ version = "0.4.7"
source = "registry+https://github.com/r... | 2 | 2 | 1 | [{"id": "G0", "claim": "Types missing in libc (here the opaque futex_waitv) should be exported from the sys mod, as done for OpenHow and Timespec, rather than defined in types.rs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The futex tests should use ... | null |
tokio-rs__io-uring__296 | tokio-rs/io-uring | 296 | defect | a4b65d0189592076cd17a137fc2e967e399d15ed | 6bd3d99e49de8280c0175570b73a99b817464830 | Update for recent kernels (up to 6.10) | Updated for new capabilities in kernels 6.8, 6.9, 6.10 including FixedFdInstall, FTruncate operations as well as bundled recv and send.
Added check for bundled send and recv feature flag (available from kernel 6.10).
Implemented tests accordingly. | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 7a72380c..fb191428 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -103,6 +103,8 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
#[cfg(not(feature = "ci"))]
tests::fs::test_statx(&mut ring, &test)?;
... | 6 | 4 | 0 | [{"id": "G0", "claim": "The doc comment typo \"variajnt\" on RecvBundle should read \"variant\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The FTruncate opcode should be renamed Ftruncate to be consistent with Fallocate and Fadvise.", "catego... | null |
tokio-rs__io-uring__315 | tokio-rs/io-uring | 315 | defect | 7ad4f7fd06798169f3b0527b9ce1e07e4cb027df | 0162241dfb01af8f5acb504fb57db0fc7977b3a8 | Add SubmitArgs::min_wait_usec (kernel 6.12) | This requires the bindings to be updated (see https://github.com/tokio-rs/io-uring/issues/311). | diff --git a/io-uring-test/src/main.rs b/io-uring-test/src/main.rs
index 088c774f..830307d8 100644
--- a/io-uring-test/src/main.rs
+++ b/io-uring-test/src/main.rs
@@ -115,6 +115,7 @@ fn test<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
tests::timeout::test_timeout_cancel(&mut ring, &test)?;
tests::timeout... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `min_wait_usec` setter takes no reference, so it need not introduce a new `<'new>` lifetime parameter or rebuild `SubmitArgs` in its signature.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__io-uring__320 | tokio-rs/io-uring | 320 | defect | 3373e51cefc3011bc5627d5b26ab07529f570131 | 2a9d3fe072c66e6e7872696c70d060f6da660a71 | Add setsockopt | See discussion at https://github.com/tokio-rs/io-uring/issues/293 | diff --git a/io-uring-test/src/tests/net.rs b/io-uring-test/src/tests/net.rs
index 8a3d3053..0cfa5000 100644
--- a/io-uring-test/src/tests/net.rs
+++ b/io-uring-test/src/tests/net.rs
@@ -1498,11 +1498,64 @@ pub fn test_socket<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
assert_eq!(cqes.len(), 1);
assert_e... | 3 | 2 | 1 | [{"id": "G0", "claim": "The pull request should add a test for the new SetSockOpt opcode.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "SetSockOpt::build should write the optval pointer via the sqe's `.optval` field instead of `sqe.__bindgen_anon_6.bin... | null |
tokio-rs__io-uring__325 | tokio-rs/io-uring | 325 | defect | 4181a8a78c4a76077da53047c29540a2dba8f5c7 | e6e96c9992950496cee1b6f2f4b185fa37c72cca | feat: Support Bind and Listen opcodes | Closes #318 | diff --git a/io-uring-test/src/tests/net.rs b/io-uring-test/src/tests/net.rs
index a8aef6be..f2d90f82 100644
--- a/io-uring-test/src/tests/net.rs
+++ b/io-uring-test/src/tests/net.rs
@@ -1469,19 +1469,20 @@ pub fn test_socket<S: squeue::EntryMarker, C: cqueue::EntryMarker>(
require!(
test;
test.p... | 2 | 2 | 0 | [{"id": "G0", "claim": "Changing test_socket to open TCP (STREAM) sockets instead of UDP leaves the preceding 'Open a UDP socket' comment describing behavior the code no longer has.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A test should be a... | null |
tokio-rs__io-uring__349 | tokio-rs/io-uring | 349 | defect | a934f54141c584f6866e5b8445c12d73553d6e67 | 6e50a2815ffa7ccb3d374a46029ec39df302ca38 | Handle overflown cqes when IORING_FEAT_NODROP supported | According to description about `IORING_FEAT_NODROP` in [man page](https://man7.org/linux/man-pages/man2/io_uring_setup.2.html) , when `IORING_FEAT_NODROP` is enabled and CQ overflows, the kernel buffers completion events internally but doesn't automatically flush them when CQ space becomes available. We must explicitly... | diff --git a/Cargo.lock b/Cargo.lock
index d2ed70d2..2170d4db 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -286,6 +286,7 @@ dependencies = [
"sc",
"slab",
"socket2",
+ "tempfile",
]
[[package]]
diff --git a/Cargo.toml b/Cargo.toml
index ecf580b2..e2f0c074 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -36,3 +36,4... | 4 | 3 | 2 | [{"id": "G0", "claim": "It would be necessary to take a fresh look at the SQPOLL overflow handling code so that it conforms to the more recent kernel behavior.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "A test should be added for the overflow ha... | null |
tokio-rs__io-uring__355 | tokio-rs/io-uring | 355 | defect | 98fc322be6ce9d276f1e37aafa5f7f0c1f04ec19 | ea192328317f04930abbb46ecff6052c5779b089 | Add `submitter.buf_ring_register_with_flags` and `buffer_more()` CQE flag test | Closes #312
EDIT: Deprecates `submitter.buf_ring_register` in favor of `submitter.buf_ring_register_with_flags`
Also re-exports `IOU_PBUF_RING_INC` & `IOU_PBUF_RING_MMAP`
Suspect the flags were there from `IOU_PBUF_RING_MMAP` whenever that was added. | diff --git a/io-uring-test/src/tests/register_buf_ring.rs b/io-uring-test/src/tests/register_buf_ring.rs
index 9c91ebe3..0eb3c401 100644
--- a/io-uring-test/src/tests/register_buf_ring.rs
+++ b/io-uring-test/src/tests/register_buf_ring.rs
@@ -16,6 +16,7 @@ use std::sync::atomic::{self, AtomicU16};
type Bgid = u16; /... | 1 | 1 | 1 | [{"id": "G0", "claim": "Adding a `flags` parameter to the existing `register_buf_ring` breaks the public API; a new method should be added and the old one marked deprecated instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__io-uring__72 | tokio-rs/io-uring | 72 | defect | 8b54e339028eff9786cb48ded29e6ad472d2adee | 7c0dbeb821ea54a3fdba2ae8e3773aec0a5cd412 | Resolve &mut unsoundness | Fixes #71 and #61.
- The name `Mut` is free to be changed, I chose it to be used with code like `cqueue::Mut`, but I'll admit it doesn't give very good docs and having two types of the same name can be confusing.
- I renamed `submission`/`completion` to `submission_mut`/`completion_mut` as they return `Mut`s, and a... | diff --git a/examples/tcp_echo.rs b/examples/tcp_echo.rs
index 19f95e3b..02dbab96 100644
--- a/examples/tcp_echo.rs
+++ b/examples/tcp_echo.rs
@@ -38,7 +38,7 @@ impl AcceptCount {
}
}
- pub fn push_to(&mut self, sq: &mut squeue::AvailableQueue) {
+ pub fn push_to(&mut self, mut sq: squeue::Mut<'_>... | 3 | 3 | 3 | [{"id": "G0", "claim": "The change appears to cause a performance regression in the iai benchmarks (e.g. bench_io_uring instructions +64.4%, estimated cycles +47.1%).", "category": "performance", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Keep the original public API names ... | null |
tokio-rs__loom__262 | tokio-rs/loom | 262 | defect | d0c1e7108a0f8e0a397f3ad32a7e7e650b2db71e | f1a3740761f0f6336bb552f411f511c93f20fead | Implement Arc::try_unwrap | Fixes #261
I'm not sure if the unsafe destruction path is the best here. | diff --git a/src/sync/arc.rs b/src/sync/arc.rs
index 1e2a1c8f..7ff13c3d 100644
--- a/src/sync/arc.rs
+++ b/src/sync/arc.rs
@@ -1,7 +1,7 @@
use crate::rt;
use std::pin::Pin;
-use std::{mem, ops};
+use std::{mem, ops, ptr};
/// Mock implementation of `std::sync::Arc`.
#[derive(Debug)]
@@ -25,8 +25,30 @@ impl<T> A... | 3 | 3 | 1 | [{"id": "G0", "claim": "Add `#[track_caller]` to `try_unwrap` so that the `location!()` passed to `get_mut` points at the callsite in user code.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment explaining why the unsafe pointer-reading b... | null |
tokio-rs__mini-redis__119 | tokio-rs/mini-redis | 119 | defect | b1e365b62fd056653f5a883798317df3fdbfcf49 | a08f2acf5d9a70a56d99eade96b662dea9787bf2 | collect all clients to one single folder | After reading every line of code in this repo, I think the names of our three clients (`client.rs`, `buffer.rs`, `blocking_client.rs`) can be less confusing for me (and maybe other green hands) if they are unified.
So in this PR, I re-org the `src/` and `tests/` to make them more clear:
```
├── src
│ ├── bin
... | diff --git a/examples/hello_world.rs b/examples/hello_world.rs
index 34d2ae82..ce455d1f 100644
--- a/examples/hello_world.rs
+++ b/examples/hello_world.rs
@@ -13,12 +13,12 @@
#![warn(rust_2018_idioms)]
-use mini_redis::{client, Result};
+use mini_redis::{clients, Result};
#[tokio::main]
pub async fn main() -> ... | 3 | 3 | 0 | [{"id": "G0", "claim": "Having to write `clients::connect` is a bit awkward (the associated free function is not the most ergonomic way to connect).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Perhaps `connect` should be a method on the `Client` type ... | null |
tokio-rs__mini-redis__81 | tokio-rs/mini-redis | 81 | defect | b3926d40e38dd0e4880c5ddf5880b5fe4f908cdc | 99832a0a9f3c602d9bc596e409c8f76c2a1c03e4 | Replace Db Drop impl which shuts down purge task, with explicit shutdown signal | Resolves #76 | diff --git a/src/db.rs b/src/db.rs
index 2e0a0c7b..12492c04 100644
--- a/src/db.rs
+++ b/src/db.rs
@@ -4,6 +4,7 @@ use tokio::time::{self, Duration, Instant};
use bytes::Bytes;
use std::collections::{BTreeMap, HashMap};
use std::sync::{Arc, Mutex};
+use tracing::debug;
/// Server state shared across all connectio... | 3 | 3 | 1 | [{"id": "G0", "claim": "If the code in `run` panics, the `shutdown_purge_task` call may never be reached, so `db` should be wrapped in another struct whose destructor calls the method.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `run` method ... | null |
tokio-rs__mio__1037 | tokio-rs/mio | 1,037 | defect | ec0f5c9fade6709426df242d692b7c6a074c4d97 | 44320b420110c90378b9d7244ef84aac39bd90d7 | Split Event::is_hup into is_hup and is_read_hup and refer to OS selector docs | This doesn't mention Windows, I think the Windows rewrite should be merged first.
Updates #941.
Closes #1040. | diff --git a/src/event/event.rs b/src/event/event.rs
index 938ddbcce6..39e768248e 100644
--- a/src/event/event.rs
+++ b/src/event/event.rs
@@ -46,6 +46,17 @@ impl Event {
///
/// Method is available on all platforms, but not all platforms (can) use
/// this indicator.
+ ///
+ /// The table below sh... | 3 | 3 | 1 | [{"id": "G0", "claim": "The is_hup doc table is wrong — for `hup` only `EPOLLHUP` can be checked (nothing on kqueue), not `EPOLLHUP` and `EPOLLRDHUP` / `EV_EOF` — and a separate `rdhup` event, supportable on all OSes, is needed (tracking issue #1040).", "category": "documentation", "verdict": "supported", "priority": "... | null |
tokio-rs__mio__1051 | tokio-rs/mio | 1,051 | defect | cd7331ad05972f477af78157924e46869dae61f6 | f7476523a9a081b79f31c59d8e01fc3ad76287c3 | Remove Arc from Poll and Registry | This removes the `Arc` from `Poll` and `Registry` and instead used `dup(2)` on Unix to create the `Registry`, on Windows it's clones the inner `Arc<SelectorInner>`. The change forces a single poller, as `Poll::poll` takes `&mut self`, but allows for multiple registrations as `Registry::({re, de})register` takes `&self`... | diff --git a/src/lib.rs b/src/lib.rs
index 3dfab5a415..3fcba70a30 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -73,16 +73,15 @@
//!
//! // Create a poll instance
//! let mut poll = Poll::new().unwrap();
-//! let registry = poll.registry().clone();
//!
//! // Start listening for incoming connections
-//! registry.re... | 3 | 3 | 3 | [{"id": "G0", "claim": "On Windows the test added by this PR seems to get no event when a TcpListener is registered and a TcpStream is connected to it, and the author asks someone with Windows to help figure out what is wrong.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}... | null |
tokio-rs__mio__1247 | tokio-rs/mio | 1,247 | defect | 813702374da18146ce56bd4dad63029e1f8f5eef | e0ca539d4ba379e92607dffe8ab2437d12731a3a | Use accept4(2) on platforms that support it | Fixes #1213.
~~Depends on #1242.~~ | diff --git a/src/net/tcp/listener.rs b/src/net/tcp/listener.rs
index b7200a078..f8ec4da30 100644
--- a/src/net/tcp/listener.rs
+++ b/src/net/tcp/listener.rs
@@ -74,11 +74,7 @@ impl TcpListener {
/// returned along with it.
pub fn accept(&self) -> io::Result<(TcpStream, SocketAddr)> {
self.inner.do_io... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment claiming the listener's non-blocking state is inherited should be verifiable against the Microsoft accept() docs rather than an unsupported assumption.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__mio__1252 | tokio-rs/mio | 1,252 | defect | 5a3eca25dee375c7f3c17c395ccfc79c531d1570 | e97fc8e38058b6bd132cdb99f6a4a081c5a7d0bc | Expand usage of SelectorId | This expands the checks in SelectorId, adding checks for use in
event::Source::{reregister, deregister}.
In addition this moves the SelectorId to the io_source module, as its
the only user.
@dtacalau after this additional tests like in #1201 will give more consistent results :) | diff --git a/src/io_source.rs b/src/io_source.rs
index f0fa1db282..ae4d78f7c5 100644
--- a/src/io_source.rs
+++ b/src/io_source.rs
@@ -3,12 +3,12 @@ use std::ops::{Deref, DerefMut};
use std::os::unix::io::AsRawFd;
#[cfg(windows)]
use std::os::windows::io::AsRawSocket;
+#[cfg(debug_assertions)]
+use std::sync::atomic... | 1 | 1 | 0 | [{"id": "G0", "claim": "On the newly added SelectorId struct, the `#[cfg(debug_assertions)]` attribute should come before `#[derive(Debug)]` so the conditional compilation is more visible than the derived trait.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
tokio-rs__mio__1295 | tokio-rs/mio | 1,295 | defect | aaa243cf6dd62a0dfde34da903e4320ac4e387cd | 51898f4230a01fda801445b0329eba0b8f156c79 | Add support for illumos target | As the master branch counterpart to the 0.6.x PR (#1294), this adds support for the Solaris-like (but distinct) `illumos` target. When support is [merged](https://github.com/rust-lang/rust/pull/71145) into rust, it would be nice for mio to be immediately usable. | diff --git a/src/poll.rs b/src/poll.rs
index e4cd804afe..64462819f6 100644
--- a/src/poll.rs
+++ b/src/poll.rs
@@ -174,6 +174,7 @@ use std::{fmt, io};
/// | NetBSD | [kqueue] |
/// | OpenBSD | [kqueue] |
/// | Solaris | [epoll] |
+/// | illumos | [epoll] |
/// | Windows | [IOCP]... | 5 | 3 | 2 | [{"id": "G0", "claim": "The `assert_close_on_exec_flag` test must be gated with `#[cfg(target_os = \"android\")]` instead of `linux`, since with this change `O_CLOEXEC` is still used on Android, where the `O_CLOEXEC`/`EPOLL_CLOEXEC` equality still needs to be checked.", "category": "correctness", "verdict": "supported"... | null |
tokio-rs__mio__1304 | tokio-rs/mio | 1,304 | defect | 36c610ddaec77b37c3a02219d5f0340e7dbe06e3 | 9b7dedb92425e66874ab391188cdd4465e705504 | Windows: Fix afd::POLL_ABORT and POLL_CONNECT_FAIL handling | This does two things:
1. POLL_ABORT is considered both read_closed and write_closed, much like EPOLLHUP.
2. POLL_ABORT and POLL_CONNECT_FAIL events are properly handled by the edge-triggered-event emulation.
Fixes #1303. | diff --git a/src/sys/windows/event.rs b/src/sys/windows/event.rs
index b166c2ed8f..36cb07e565 100644
--- a/src/sys/windows/event.rs
+++ b/src/sys/windows/event.rs
@@ -14,26 +14,31 @@ pub fn token(event: &Event) -> Token {
Token(event.data as usize)
}
+pub(crate) const READABLE_FLAGS: u32 =
+ afd::POLL_RECEIV... | 4 | 2 | 2 | [{"id": "G0", "claim": "Unsure about the fix, the reviewer questions whether afd::POLL_ABORT should trigger is_read_closed and asks piscisaureus to rule on the AFD event mapping.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the Window... | null |
tokio-rs__mio__1351 | tokio-rs/mio | 1,351 | defect | 784d6ffeab9df9ee2f47e3cec787577c740088c5 | 086251c49dc3ec5dba1483980bc0023a9ea4ee94 | Add windows NamedPipe | Tokio needs windows named pipe support in order to upgrade to Mio 0.7. I thought I would take a quick initial stab at this.
It is based on https://github.com/bbqsrc/mio-named-pipes, but simplified some. Instead of shoehorning this into the `Source` trait, I dod registration in `new`. Also, since the `Registration` ... | diff --git a/Cargo.toml b/Cargo.toml
index e0e1a21b4..558bba9d4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -49,6 +49,8 @@ ntapi = "0.3"
[dev-dependencies]
env_logger = { version = "0.6.2", default-features = false }
net2 = "0.2.33"
+futures-test = "0.3"
+rand = "0.4"
[package.metadata.docs.rs]
all-featur... | 30 | 23 | 8 | [{"id": "G0", "claim": "The module-level docs of named_pipe.rs are outdated (carried over from the old mio-named-pipes crate) and should be moved to the `NamedPipe` type, which is the only exported item.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim... | null |
tokio-rs__mio__1356 | tokio-rs/mio | 1,356 | defect | 784d6ffeab9df9ee2f47e3cec787577c740088c5 | 395602589d80c16f5ac466c44e4d8b952403713e | Add unix::pipe | Adds one new function: unix::pipe, which is a wrapper around the pipe(2)
system call, and two new types: Sender and Receiver, wrappers around the
file descriptors.
This is a port of https://github.com/Thomasdezeeuw/mio-pipe, commit
8c3025edf128e90733e95327d88493887b93fcdd.
Closes #1354. | diff --git a/Cargo.toml b/Cargo.toml
index e0e1a21b41..628e46ecff 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -30,6 +30,7 @@ publish = false
default = []
os-poll = []
os-util = []
+pipe = ["os-poll"]
tcp = []
udp = []
uds = []
diff --git a/ci/azure-test-stable.yml b/ci/azure-test-stable.yml
index 06c412a561..7219... | 1 | 1 | 1 | [{"id": "G0", "claim": "Naming the pipe handles `Receiver` and `Sender` directly under `mio::unix` is unclear; they should live in a `unix::pipe` module or be named `unix::PipeReceiver`/`unix::PipeSender`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__mio__1368 | tokio-rs/mio | 1,368 | defect | a5381b3e477ece2ef0db57adafad145746bd33cb | 542df028c6dbd21d2ef6a5a3cbb979275ebf2cb8 | Drop net2 dev-dependency | Now that we have out own TcpSocket builder inside of mio, just add a set_linger method to it and switch away from net2.
This doesn't bring socket2 in and hopefully will stop all the recurring "please switch from net2 to socket2" reports | diff --git a/Cargo.toml b/Cargo.toml
index 5206a4436d..1aac35a55a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -47,7 +47,6 @@ ntapi = "0.3"
[dev-dependencies]
env_logger = { version = "0.6.2", default-features = false }
-net2 = "0.2.33"
rand = "0.4"
[package.metadata.docs.rs]
diff --git a/src/net/tcp/sock... | 3 | 3 | 0 | [{"id": "G0", "claim": "In the Unix `set_linger`, the `?` on the `syscall!` is unnecessary — `map(|_| ())` would do.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `use` statements inside the new Windows `set_linger` should be moved up with ... | null |
tokio-rs__mio__1375 | tokio-rs/mio | 1,375 | defect | d40494bf6a9d5437207671282aa1be6b93a964cd | e423e09514dfd38e08a45a04ae8073a3cdc6b77c | Add SO_REUSEPORT support for TCP socket | Tokio's `TcpSocket` doesn't currently support setting SO_REUSEPORT.
This PR is to add this functionality (talked with @carllerche ).
Only enabling it for unix systems (except Solaris). | diff --git a/src/net/tcp/socket.rs b/src/net/tcp/socket.rs
index a91f665a7..25b62d76c 100644
--- a/src/net/tcp/socket.rs
+++ b/src/net/tcp/socket.rs
@@ -82,6 +82,16 @@ impl TcpSocket {
sys::tcp::set_reuseaddr(self.sys, reuseaddr)
}
+ /// Sets the value of `SO_REUSEPORT` on this socket.
+ /// Only ... | 4 | 3 | 1 | [{"id": "G0", "claim": "Add a `pub fn reuse_port(&self) -> io::Result<bool>` getter so the `SO_REUSEPORT` value can be retrieved, mirroring the setter this PR adds.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "illumos does not expose `SO_REUSEPORT`, so... | null |
tokio-rs__mio__1385 | tokio-rs/mio | 1,385 | defect | 27fbd5f04bb5f52a4d1c358cf0c04c6074a3d46b | 845bed73e021b3e80865468b7069a91c3732c09e | net: add `TcpSocket::{set, get}_keepalive` | This commit adds methods to `TcpSocket` to enable/disable TCP keepalive,
and set the keepalive idle time, probe interval, and retries, when the
OS supports configuring those values.
Because of how TCP keepalive is configured in Winsock, it's necessary to
use a builder-type API: the interval and idle time are set ... | diff --git a/src/net/tcp/socket.rs b/src/net/tcp/socket.rs
index f3e27c370..f64c3c10a 100644
--- a/src/net/tcp/socket.rs
+++ b/src/net/tcp/socket.rs
@@ -106,6 +106,33 @@ impl TcpSocket {
sys::tcp::set_linger(self.sys, dur)
}
+ /// Sets whether keepalive messages are enabled to be sent on this socket.... | 2 | 2 | 2 | [{"id": "G0", "claim": "Setting both `SO_KEEPALIVE` and the timeout option in one `set_keepalive` conflates distinct OS options; they should be exposed separately as the OS provides them.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "On Windows the over... | null |
tokio-rs__mio__1387 | tokio-rs/mio | 1,387 | defect | f5017fae8a3d3bb4b4cada25b01a2d76a406badc | c8e0b9cec08160dd09a2f1b8464c3b7a6d39dc1d | Support setting SO_LINGER on TcpSocket | Because tokio `TcpStream` and mio `TcpStream` now use `std::net::TcpStream` as the underlying stream, there isn't a way to set linger options.
I'm aware of #1381 and the dislike of duplicating features. This is the last functionality I need.
The plan is to convert the stream by calling `as_raw_fd()` and set the l... | diff --git a/src/net/tcp/socket.rs b/src/net/tcp/socket.rs
index b43690b248..249505a992 100644
--- a/src/net/tcp/socket.rs
+++ b/src/net/tcp/socket.rs
@@ -106,6 +106,11 @@ impl TcpSocket {
sys::tcp::set_linger(self.sys, dur)
}
+ /// Gets the value of `SO_LINGER` on this socket
+ pub fn get_linger(... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test case for set_linger(None) (clearing the linger value) to tests/tcp_socket.rs.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__mio__1429 | tokio-rs/mio | 1,429 | defect | 0fef0d61ade20be45eb670eb3786af0e06e59f63 | 80409f8139b2345d3802b6db606e57cfdd907f08 | Remove deprecated features | Fixes #1382 | diff --git a/Cargo.toml b/Cargo.toml
index e4158eba70..382793f24f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,7 +6,7 @@ name = "mio"
# - Update CHANGELOG.md.
# - Update doc URL.
# - Create git tag
-version = "0.7.7"
+version = "0.8.0-dev"
license = "MIT"
authors = [
"Carl Lerche <me@c... | 1 | 1 | 0 | [{"id": "G0", "claim": "In Cargo.toml the version should be set to `0.8.0` (without the `-dev` suffix) together with `publish = false`, following the Tokio convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
tokio-rs__mio__1528 | tokio-rs/mio | 1,528 | defect | 3ca57f34b164b017093bf98d430dcd6eb9da4988 | b86c7d915481be805c2fefcfe8c3fb3438c1f36c | Remove cfg attributes for Solaris | We never really supported Solaris, we pretended it implemented epoll,
but it never did see https://github.com/tokio-rs/mio/issues/1152. As no
one ever committed to being a maintainer for the port I'm removing it
now with this commit.
Instead replace it with illumuos on the CI, which we do support (as it
supports... | diff --git a/Cargo.toml b/Cargo.toml
index 15ab7adfe6..eebf857e4c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -62,9 +62,9 @@ targets = [
"aarch64-linux-android",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
- "x86_64-pc-solaris",
"x86_64-unknown-dragonfly",
"x86_64-unknown-freebsd",
+ "x86_64-unkno... | 1 | 1 | 0 | [{"id": "G0", "claim": "Drop the trailing comma after `target_os = \"linux\"` in the reformatted `#[cfg(any(...))]` attributes in src/sys/unix/selector/mod.rs (`target_os = \"linux\",))` -> `target_os = \"linux\"))`), as suggested for both the `mod epoll;` and the `pub(crate) use` attributes.", "category": "maintainabi... | null |
tokio-rs__mio__1630 | tokio-rs/mio | 1,630 | defect | 236fc31abf58bfcb8ed66b9ae2ce570acb911e77 | f251907b5ed9cf40bdc8232581972eaa2dcfe1c7 | net/uds: add methods to connect/bind with a socket address | This enhances `connect` and `bind` logic for Unix Domain Sockets (UDS), by adding methods which allow to directly use a socket address. This mirrors similar features which already exist in `mio` for TCP and UDP sockets. | diff --git a/src/net/uds/listener.rs b/src/net/uds/listener.rs
index 37e8106d89..eeffe042ed 100644
--- a/src/net/uds/listener.rs
+++ b/src/net/uds/listener.rs
@@ -13,11 +13,16 @@ pub struct UnixListener {
}
impl UnixListener {
- /// Creates a new `UnixListener` bound to the specified socket.
+ /// Creates a n... | 2 | 1 | 0 | [{"id": "G0", "claim": "CI runs the clippy linting job on an unpinned toolchain, so new warnings appearing in newer toolchain versions may silently break master and block unrelated PRs, and the linting toolchain should be pinned.", "category": "maintainability", "verdict": "opposed", "priority": "P2", "scope": "pre_exi... | null |
tokio-rs__mio__1749 | tokio-rs/mio | 1,749 | defect | f499958c05982a5bc01aa3ab882606c2d85d8284 | 71b80e36e7c039fee136aeb3adf95a2c3784dad2 | Replace Unix SocketAddr with std version | Replaces mio::net::SocketAddr with std::os::unix::net::SocketAddr.
With this change the path based API to create the sockets ({UnixDatagram,UnixListener}::bind and UnixStream::connect) will no longer work with abstract namespaces. For that the _addr variant must be used and the address created by using SocketAddr::f... | diff --git a/src/net/mod.rs b/src/net/mod.rs
index 7d714ca00..15c405cf9 100644
--- a/src/net/mod.rs
+++ b/src/net/mod.rs
@@ -36,4 +36,4 @@ pub use self::udp::UdpSocket;
#[cfg(unix)]
mod uds;
#[cfg(unix)]
-pub use self::uds::{SocketAddr, UnixDatagram, UnixListener, UnixStream};
+pub use self::uds::{UnixDatagram, Unix... | 7 | 6 | 2 | [{"id": "G0", "claim": "The new Darwin comment in accept has grammar errors and should read \"it returns a length of 16, but an unnamed (all zero) address\" per the attached suggestion.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The reviewer w... | null |
tokio-rs__mio__1766 | tokio-rs/mio | 1,766 | defect | cc0b4fe1f66a15793ecb96410700e49073f19a7f | 9f9dc7078bfe35a60bd843f6db77d3d78723dfbb | Adding support for QNX OS | First try to enable mio to be used on QNX operating system.
Is this the right way to go about this? Once this is in acceptable form, can/should it be backported to one of the v0.8x/0.7x
We are not that familiar with mio development, so please advise.
As mio/tokio users we would appreciate if released versions ju... | diff --git a/src/sys/unix/net.rs b/src/sys/unix/net.rs
index ed58adaad7..169ebb6964 100644
--- a/src/sys/unix/net.rs
+++ b/src/sys/unix/net.rs
@@ -54,6 +54,7 @@ pub(crate) fn new_socket(domain: libc::c_int, socket_type: libc::c_int) -> io::R
target_os = "watchos",
target_os = "espidf",
target... | 6 | 4 | 2 | [{"id": "G0", "claim": "The project's CI should cover the QNX target — `cargo test` ideally, `cargo check` at minimum.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Someone with QNX knowledge should commit to maintaining the port, otherwise the QNX suppo... | null |
tokio-rs__mio__1871 | tokio-rs/mio | 1,871 | defect | 474cd245de98440d17283d3f22964cab734ffc66 | edbd897dd8b52db34552d7ba2d9b5d2745eb458a | add cygwin support | This PR adds cygwin support. It uses the POSIX poll as backend. I tried my best to fix the tests. Some of them are ignored reasonably, while some of them are not - related to the `UnixListener` and `UnixStream`. I don't understand them yet. | diff --git a/src/poll.rs b/src/poll.rs
index f21266183d..b4a83baa98 100644
--- a/src/poll.rs
+++ b/src/poll.rs
@@ -10,7 +10,8 @@
target_os = "hurd",
target_os = "nto",
target_os = "solaris",
- target_os = "vita"
+ target_os = "vita",
+ target_os = "cygwin",
)),
))]
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The cygwin ignore attributes the PR adds should carry a reason saying why the tests are ignored.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Cygwin unix-socket connect blocking has to be fixed, otherwise Mio will not... | null |
tokio-rs__mio__1895 | tokio-rs/mio | 1,895 | defect | cd972977e7a8234e62c7ba8bd4d4ec1da208e576 | 3cad5311c74c215dd52588bdb7ee5a2e9a5c6f1d | fix: peek reregister after would block | CC #1755 https://github.com/tokio-rs/tokio/issues/3789
as title, use a fix that on windows `peek` should reregister after ~either success or~ would block, so that it's behavior would be the same as on linux(see ~`peek_readiness`~`peek_ok` and `peek_would_block`).
This should fix windows peek problem, @Darksonn mi... | diff --git a/src/net/tcp/stream.rs b/src/net/tcp/stream.rs
index f3db74fab..cedb3e405 100644
--- a/src/net/tcp/stream.rs
+++ b/src/net/tcp/stream.rs
@@ -212,7 +212,10 @@ impl TcpStream {
/// Successive calls return the same data. This is accomplished by passing
/// `MSG_PEEK` as a flag to the underlying recv ... | 3 | 3 | 1 | [{"id": "G0", "claim": "Reregistering after every peek that succeeds or returns WouldBlock is an expensive operation and not the solution wanted; the author proposed handling peek specially on Windows instead (e.g. an `is_peeking` flag in `feed_event` or a Windows-only `Interest::Peek`).", "category": "design", "verdic... | null |
tokio-rs__mio__1906 | tokio-rs/mio | 1,906 | defect | 474cd245de98440d17283d3f22964cab734ffc66 | dff98df56467b9adaf9bdfc7de4a0f7ff78a573a | fix: make `Event` thread-safe with `kevent` | Fix #1905 | diff --git a/src/sys/unix/selector/kqueue.rs b/src/sys/unix/selector/kqueue.rs
index f31db35fb..39d03446d 100644
--- a/src/sys/unix/selector/kqueue.rs
+++ b/src/sys/unix/selector/kqueue.rs
@@ -323,29 +323,77 @@ impl AsRawFd for Selector {
}
}
-pub type Event = libc::kevent;
-pub struct Events(Vec<libc::kevent>)... | 2 | 2 | 2 | [{"id": "G0", "claim": "The PR should add a Send/Sync assertion test for mio::event::Event (the public event type), so that any future platform is forced to consider whether it is Send/Sync.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The PR should r... | null |
tokio-rs__mio__1921 | tokio-rs/mio | 1,921 | defect | b0578c2d166c2ebc78dfd5f70395591351ba8dde | 9b2705ec1ad6e686a217c57801a4dd7ca09abcd2 | Handle ERROR_MORE_DATA for named pipes | This MR addresses an issue where a panic occurs while attempting to read messages larger than the buffer size for Windows named pipes (this is hardcoded to 4096 bytes).
```
panicked at C:\Users\toks\mio\src\sys\windows\named_pipe.rs:900:17:
assertion `left == right` failed
left: 4096
right: 0
```
### R... | diff --git a/src/sys/windows/named_pipe.rs b/src/sys/windows/named_pipe.rs
index 8d9d16efa..eeddcbdea 100644
--- a/src/sys/windows/named_pipe.rs
+++ b/src/sys/windows/named_pipe.rs
@@ -7,8 +7,8 @@ use std::sync::{Arc, Mutex};
use std::{fmt, mem, slice};
use windows_sys::Win32::Foundation::{
- ERROR_BROKEN_PIPE, ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The hand-rolled poll-and-break loops in the new tests can use the existing `expect_events` helper instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__mio__313 | tokio-rs/mio | 313 | defect | 3da9f2c756193ca224165ed8725ec3336d04df26 | 750c948b7644a0da956a35b4b9c1e457fbeec725 | Implement level triggering for windows | The windows selector uses a linked list of currently active level-triggered events. When an event arrives and the socket is registered with level-triggered, the event is tracked in this linked list. Every call to select events will include all elements in this list. When an operation is performed on the socket such tha... | diff --git a/src/event.rs b/src/event.rs
index cc249ecfba..828789803d 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -276,9 +276,8 @@ impl fmt::Debug for EventSet {
}
}
-
// Keep this struct internal to mio
-#[derive(Copy, Clone, Debug)]
+#[derive(Copy, Clone, Eq, PartialEq, Debug)]
pub struct IoEvent {
... | 8 | 4 | 1 | [{"id": "G0", "claim": "IoEvent arguably should not be exported from the crate root but stay an internal implementation detail (asked as: how come this ended up being exported?).", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "push_event should test `is_e... | null |
tokio-rs__prost__1002 | tokio-rs/prost | 1,002 | defect | b3de938c21e9875f17e3a4c116203f9c2f8e8640 | ba9e55802a253449919814b178a4fbe38b8bdf73 | fix: include_file should handle proto without package | Fixes #1001
The solution is to do the same thing that some other tests already do manually, we need to write the include for the root package at the root level of the include file. | diff --git a/prost-build/src/lib.rs b/prost-build/src/lib.rs
index 4c5553109..e5c608869 100644
--- a/prost-build/src/lib.rs
+++ b/prost-build/src/lib.rs
@@ -1168,6 +1168,31 @@ impl Config {
let mut written = 0;
entries.sort();
+ if depth == 0 {
+ let (empty, remaining): (Vec<&Modul... | 4 | 3 | 1 | [{"id": "G0", "claim": "The problem this pull request fixes is not explained, and the reviewer asks the author to explain the problem encountered and add a minimal, reproducible example.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "unclear"}, {"id": "G1", "claim": "The depth==0 spe... | null |
tokio-rs__prost__119 | tokio-rs/prost | 119 | defect | 5f54a1be5e4a3c85734f14c3ec23a09bd9cfa609 | 794dec7da038fe58ef9b8583277fae2cebdae67b | Strip enum type prefix in default field values | Fix for #118 - If the `strip_enum_prefix` option is enabled, then default values for enum fields must have their prefixes stripped as well. | diff --git a/prost-build/src/code_generator.rs b/prost-build/src/code_generator.rs
index 323427946..5c1474ad5 100644
--- a/prost-build/src/code_generator.rs
+++ b/prost-build/src/code_generator.rs
@@ -301,7 +301,21 @@ impl <'a> CodeGenerator<'a> {
}
self.buf.push_str("\\\"");
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The stray tests/src/default_enum_value.rs file (an unimplemented!() stub) looks like it is not needed and should not be part of the pull request.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default-value prefix str... | null |
tokio-rs__prost__1274 | tokio-rs/prost | 1,274 | defect | df814bbd92a6ab75357317cff079c0e0d3991388 | e22950d5a26156f1dc370c7f160aa974207d3a2a | feat: Configure prost path via `prost_build::Config` or `#[(prost(prost_path = "::prost")]` | Add a new proc_macro attribute in `prost-derive`, which is used to let the macro implementation know about the value of
`prost_build::Config::prost_path`.
As a result, the derived messages no longer have `::prost` hardcoded in them, and the configured path to th prost crate will be referenced everywhere in the gene... | diff --git a/prost-build/src/code_generator.rs b/prost-build/src/code_generator.rs
index 018374528..1548906a1 100644
--- a/prost-build/src/code_generator.rs
+++ b/prost-build/src/code_generator.rs
@@ -257,6 +257,7 @@ impl<'b> CodeGenerator<'_, 'b> {
},
self.context.prost_path()
));
+ ... | 3 | 2 | 0 | [{"id": "G0", "claim": "prost_path is exposed both as Context::prost_path and as Config::prost_path_or_default, and the reviewer expects it on one or the other, not both.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a new test that uses a path other ... | null |
tokio-rs__prost__186 | tokio-rs/prost | 186 | defect | 60eac4beb73a4babee07f99a08b6b7c6a372cae3 | 08587c54b13a260b5182565f052a96bf4ab4218c | Implement a recursion limit | This PR implements a recursion limit, which can be disabled by not setting a Cargo feature (which is on by default). This change is technically not backwards compatible, but in practice very few programs should hit the recursion limit.
Although adding a context argument complicates the API somewhat, most clients wou... | diff --git a/Cargo.toml b/Cargo.toml
index 9adca3dde..99c76b1ef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -33,7 +33,8 @@ exclude = [
]
[features]
-default = ["prost-derive"]
+default = ["prost-derive", "recursion-limit"]
+recursion-limit = []
[dependencies]
byteorder = "1"
diff --git a/benches/benchmark.rs b/... | 12 | 10 | 4 | [{"id": "G0", "claim": "The decoding context could be simplified by passing it by value as an owned struct carrying the counter, with enter_recursion creating a new decremented context, instead of the RAII-guard design.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
tokio-rs__prost__271 | tokio-rs/prost | 271 | defect | 9ec36145802767cdece2268c05b2663dcb004e0a | f1d68c93540331ced40bda147cff517b237e10cc | Add support for `deprecated` attributes on fields. | Protobufs support `deprecated` field options. These field options allow
the field to continue to be supported, but allow for language specific
code generators to include that the field has been deprecated in the
generated code. As discussed in https://github.com/danburkert/prost/issues/221 we should considersupporti... | diff --git a/prost-build/src/code_generator.rs b/prost-build/src/code_generator.rs
index 593bba807..af6237710 100644
--- a/prost-build/src/code_generator.rs
+++ b/prost-build/src/code_generator.rs
@@ -279,6 +279,7 @@ impl<'a> CodeGenerator<'a> {
fn append_field(&mut self, msg_name: &str, field: FieldDescriptorProt... | 2 | 1 | 0 | [{"id": "G0", "claim": "Simplify the new `deprecated` helper to `field.options.as_ref().map_or(false, FieldOptions::deprecated)` instead of the nested match.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Generating `#[deprecated]` on fields for... | null |
tokio-rs__prost__343 | tokio-rs/prost | 343 | defect | 32bc87cd0b7301f6af1a338e9afd7717d0f42ca9 | 1d07c036aa3ae245bfae57220c7a9360f9b9abbe | Add support for no package declaration | I added a test for this to make sure it works as intended. I've tested it on some internal proto files and it also works and they're pretty substantial.
One thing I wasn't sure how to handle, but can be easily addressed is do we still need to error by default if there is no package defined? Could we agree on a defa... | diff --git a/prost-build/src/code_generator.rs b/prost-build/src/code_generator.rs
index 36737a0be..24f8b1133 100644
--- a/prost-build/src/code_generator.rs
+++ b/prost-build/src/code_generator.rs
@@ -65,7 +65,7 @@ impl<'a> CodeGenerator<'a> {
let mut code_gen = CodeGenerator {
config,
- ... | 3 | 1 | 0 | [{"id": "G0", "claim": "The author should explain why default_package_filename is a plain String defaulting to \"_\" instead of an Option type.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The PR is missing a test for the failure scenario where no defa... | null |
tokio-rs__prost__433 | tokio-rs/prost | 433 | defect | a4be973eaa2ec3d4ebee9bbb9ec7614afe135142 | ef1334917166aeb031f1cf3ebd56db9279f6004d | prost-build: Support generating single include file | Rebase of #123 and addresses [this issue](https://github.com/danburkert/prost/pull/333#discussion_r464741148) from abandoned #333
Fixes #395
| diff --git a/prost-build/src/lib.rs b/prost-build/src/lib.rs
index 816fd7351..3f5e32a0d 100644
--- a/prost-build/src/lib.rs
+++ b/prost-build/src/lib.rs
@@ -122,7 +122,7 @@ use std::env;
use std::ffi::{OsStr, OsString};
use std::fmt;
use std::fs;
-use std::io::{Error, ErrorKind, Result};
+use std::io::{Error, ErrorK... | 2 | 1 | 1 | [{"id": "G0", "claim": "compile_protos would be even more useful if glob support were added to it (feature tracked in #469).", "category": "enhancement", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "Tests should be added for the pull request's changes before it can be merge... | null |
tokio-rs__prost__797 | tokio-rs/prost | 797 | defect | bff66a665fc2d5a0cbb826e446f8050450cbd8a2 | 78b00f34a745836082d055b0f4ed5a95f79cab2d | Make Debug impl optional for types | See #795 for motivation. If this looks like an ok approach, I'll go ahead and add more documentation.
Where is a good place to put some tests for this behavior? | diff --git a/prost-build/src/code_generator.rs b/prost-build/src/code_generator.rs
index 9c2c0ab91..ac3a33bf0 100644
--- a/prost-build/src/code_generator.rs
+++ b/prost-build/src/code_generator.rs
@@ -188,6 +188,7 @@ impl<'a> CodeGenerator<'a> {
"#[derive(Clone, PartialEq, {}::Message)]\n",
se... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request needs tests added around the different combinations of debug impls (including the root-level debug case), since it makes large changes to codegen.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__prost__998 | tokio-rs/prost | 998 | defect | 7c04d977203c29c473b59f0aef2a280a46a0c3c6 | 0fbf16b8152b14fd444f825b1f71788ec042b816 | Handle keyword `Self` after stripping enum type prefix | Fixes #997
Relates to #179 | diff --git a/prost-build/src/code_generator.rs b/prost-build/src/code_generator.rs
index ecd21852a..675062f13 100644
--- a/prost-build/src/code_generator.rs
+++ b/prost-build/src/code_generator.rs
@@ -1191,21 +1191,27 @@ fn unescape_c_escape_string(s: &str) -> Vec<u8> {
///
/// It also tries to handle cases where the... | 7 | 7 | 1 | [{"id": "G0", "claim": "The new nested match in `strip_enum_prefix` is not very readable; the reviewer suggests assigning the stripped value to a variable first and then replacing the keywords.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It m... | null |
tokio-rs__slab__149 | tokio-rs/slab | 149 | defect | 8e65636d42635633bdb1287c6e5c3948c7b9034f | d29ff8a5fe8c7d755d25ae7a7962c5d897d9a5bb | feat: add `get_disjoint_mut` | Adds a `get_disjoint_mut` function similar to the ones on `std::slice`, `std::collections::HashMap` or even crates like [indexmap](https://github.com/indexmap-rs/indexmap/pull/238). I think its fair to say that the ecosystem is standardizing on this mechanism.
I figured that there was no point in mirroring the more ... | diff --git a/Cargo.toml b/Cargo.toml
index 9e0c186..e237215 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,7 +9,7 @@ name = "slab"
version = "0.4.9"
authors = ["Carl Lerche <me@carllerche.com>"]
edition = "2018"
-rust-version = "1.46"
+rust-version = "1.51"
license = "MIT"
description = "Pre-allocated storage for ... | 2 | 2 | 1 | [{"id": "G0", "claim": "The PR's const generics do not build on the crate's MSRV 1.46 (the cfg workaround broke when #150 removed the build script it relied on), so the author asks the maintainers to bump the MSRV to 1.51 and offers to update the PR if acceptable.", "category": "build", "verdict": "supported", "priorit... | null |
tokio-rs__slab__61 | tokio-rs/slab | 61 | defect | e6b8676a1526f9eed997c9f4db82386ba33e007c | 88147c179b37757cefd4532dcdc5bf7246e4c2a4 | Add key_of() method to calculate the key from a &T | Implements #45 but with a few differences:
* `key_for()` sounds a bit more like it finds the first value that compares equal.
* it is not `unsafe`: It doesn't do anything that requires `unsafe` internally.
* It does not return an `Option`: The option would always have to be unwrapped. If the reference doesn't poin... | diff --git a/src/lib.rs b/src/lib.rs
index a3638ca..3c99d59 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -569,6 +569,45 @@ impl<T> Slab<T> {
}
}
+ /// Get the key for an element in the slab.
+ ///
+ /// The reference must point to an element owned by the slab.
+ /// Otherwise the returned val... | 1 | 1 | 1 | [{"id": "G0", "claim": "key_of should panic instead of returning an undefined value when the reference does not point to an element owned by the slab.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__toasty__614 | tokio-rs/toasty | 614 | defect | 6abfcc348a246947d3ada99199f1bfd3ddf19cf8 | 83d78bf2f651d6e2fe8016423e45a0e5a4ae8737 | feat: automatic global model discovery with `models!(crate::*)` using the `inventory` crate | Depends on #615:
`toasty::models!` macro now supports discovering models from specific crates when the `discover` feature is enabled. You can do:
```rust
toasty::models!(crate::*); // current crate
```
or
```rust
toasty::models!(third_party_crate::*);
```
or the usual
```rust
toasty::models!(ModelA, my_mod... | diff --git a/Cargo.toml b/Cargo.toml
index 4eef9c8cd..b84b540fb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -78,6 +78,7 @@ dialoguer = "0.12"
heck = "0.5.0"
indexmap = "2.13.0"
index_vec = "0.1.4"
+inventory = "0.3.24"
jiff = "0.2.23"
lru = "0.16.3"
mysql_async = { version = "0.36.2", default-features = false, fe... | 1 | 1 | 0 | [{"id": "G0", "claim": "Asks why the macros crate's `discover` feature is optional rather than always included, and whether making it opt-in can cause problems.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__toasty__687 | tokio-rs/toasty | 687 | defect | 09ae29a597a07d32373de106a84f2dbe29adec46 | 2e2bc5f6f1700e6877bb09c8a193f2fe9437a40d | feat: add support for floats | This pr adds support for floating points, both `f32` and `f64`. | diff --git a/crates/toasty-core/src/schema/db/ty.rs b/crates/toasty-core/src/schema/db/ty.rs
index 778e7ef95..4c7a7fe90 100644
--- a/crates/toasty-core/src/schema/db/ty.rs
+++ b/crates/toasty-core/src/schema/db/ty.rs
@@ -70,6 +70,9 @@ pub enum Type {
/// An unsigned integer of `n` bytes
UnsignedInteger(u8),
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The Eq and Hash impls on Value (the manual impls this PR adds) should probably be removed, since storing Value in a HashMap can be done a different way.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
tokio-rs__tokio-metrics__100 | tokio-rs/tokio-metrics | 100 | defect | 503a3b13d39a9fcc92bee808f45644b478903526 | cd1bdf59f7b0516523096af5d9f09b2bf4f85c76 | Add metrics_rs integration for task metrics | This commit provides integration of task metrics and metrics.rs.
Resolves #71
I hope that no one was already working on this, I saw the issue was unassigned so I thought I'd give it a try.
I split the PR into two commits for easier reviewing. The first commit moves shared macros and traits to a separate module... | diff --git a/src/lib.rs b/src/lib.rs
index c45be13..02d36e6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -179,5 +179,13 @@ cfg_rt! {
)]
pub use runtime::metrics_rs_integration::{RuntimeMetricsReporter, RuntimeMetricsReporterBuilder};
+mod metrics_rs;
mod task;
+
+#[cfg(all(feature = "rt", feature = "metrics-rs-inte... | 5 | 3 | 1 | [{"id": "G0", "claim": "The metric_refs macro could derive struct_name from metrics_name by appending Ref instead of taking it as a separate identifier.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The MyMetricOp impl for (&metrics::Histogram, Vec<u64>) ... | null |
tokio-rs__tokio-metrics__104 | tokio-rs/tokio-metrics | 104 | defect | c020b81db5289343611cf2f1b794c82a9f99d6ff | 0dddf1b3db622b20c834e39073f7dcc1ba1b0039 | Integrate derived metrics with metrics.rs | The metrics-rs-integration feature allows users to automatically export metrics via the metrics.rs crate. Previously, only base metrics were included, derived metrics were excluded. This commit updates the integration to include derived metrics.
I'm not 100% convinced that this is a good idea, users could just recon... | diff --git a/src/metrics_rs.rs b/src/metrics_rs.rs
index 1ac2a45..c850c25 100644
--- a/src/metrics_rs.rs
+++ b/src/metrics_rs.rs
@@ -76,6 +76,13 @@ macro_rules! metric_refs {
),*
$(,)?
}
+ stable_derived {
+ $(
+ #[doc = $derived_doc:tt]
+ ... | 2 | 2 | 2 | [{"id": "G0", "claim": "Add a test to tests/auto_metrics.rs covering the pull request's new derived metrics.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "If there is a way, make test_no_fields_missing (or an equivalent check) also work for derived met... | null |
tokio-rs__tokio-uring__193 | tokio-rs/tokio-uring | 193 | defect | 026d57aabd3cdaa7d9134fa6c072c59beb69aa61 | 85c5f29c3b8114fc4fed7f3717aa97e094281408 | Add create_dir | This adds a `create_dir` function call to `tokio_uring::fs` and partially fixes #48.
I also renamed `tests/directory.rs` to `tests/fs_directory.rs` so the name is in sync with that of `tests/fs_file.rs`. | diff --git a/src/fs/directory.rs b/src/fs/directory.rs
index 33d5c98c..cbb35b8a 100644
--- a/src/fs/directory.rs
+++ b/src/fs/directory.rs
@@ -2,6 +2,26 @@ use crate::runtime::driver::op::Op;
use std::io;
use std::path::Path;
+/// # Examples
+///
+/// ```no_run
+/// use tokio_uring::fs::create_dir;
+///
+/// fn mai... | 2 | 2 | 0 | [{"id": "G0", "claim": "create_dir should return the io::Result directly as a one-liner, following the pattern of remove_dir and similar functions in File.rs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Mkdir::complete should end with cqe.result.map(|... | null |
tokio-rs__tokio-uring__198 | tokio-rs/tokio-uring | 198 | defect | e1b2f1a1ca48f643f01a413a28b2a609ffdcae8b | 62683fb30d618de82318291602f35792e61ac6f5 | Add method `BoundedBuf::put_slice` | Provide a generic, safe way to copy data into a buffer, possibly advancing the initialized length watermark.
This method is especially useful for `FixedBuf`, which lacks other population methods available for the foreign types.
This resolves a discussion started in https://github.com/tokio-rs/tokio-uring/pull/190#... | diff --git a/src/buf/bounded.rs b/src/buf/bounded.rs
index 73defbfd..09e953de 100644
--- a/src/buf/bounded.rs
+++ b/src/buf/bounded.rs
@@ -1,6 +1,7 @@
use super::{IoBuf, IoBufMut, Slice};
use std::ops;
+use std::ptr;
/// A possibly bounded view into an owned [`IoBuf`] buffer.
///
@@ -152,6 +153,29 @@ pub trait ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The duplicated word 'slice' in the doc comment on BoundedBuf::put_slice ('byte slice slice') should read 'slice'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__tokio-uring__199 | tokio-rs/tokio-uring | 199 | defect | 4417d636e9dc0eaa2f1fe2e0f7b4375287fd040b | e780e6440d973c4bf2324842420bdf5520822d98 | `FixedBufPool::next` | Add an async API to get buffers out of `FixedBufPool`. This is another way in which `FixedBufPool` will be more useful than `FixedBufRegistry`.
Also reorganize the shared data structures of `FixedBufPool` and `FixedBufRegistry` into separate modules for better readability and future code reuse. | diff --git a/src/buf/fixed/handle.rs b/src/buf/fixed/handle.rs
index af0eaf47..1ccda37a 100644
--- a/src/buf/fixed/handle.rs
+++ b/src/buf/fixed/handle.rs
@@ -9,7 +9,7 @@ use std::ops::{Deref, DerefMut};
use std::rc::Rc;
// Data to construct a `FixedBuf` handle from.
-pub(super) struct CheckedOutBuf {
+pub(crate) s... | 7 | 3 | 1 | [{"id": "G0", "claim": "The will_wake-based deduplication may not catch all duplicate wakers, so the waiting_on_next Vec could grow unboundedly; FrankReh asks whether the list can grow too large and proposes keeping an older waker clone (or a generation counter) in the future to find and replace stale entries by addres... | null |
tokio-rs__tokio-uring__214 | tokio-rs/tokio-uring | 214 | defect | 9b654c17201bee18df1e534451105b9673f1e38c | 995d6600acfa4c963bbe4fc0142aa47ac1fa5019 | Add support for `fallocate` and `statx` | This PR adds support for both the `IORING_OP_FALLOCATE` and the `IORING_OP_STATX` opcodes, and extends `File` to expose `fallocate()` and `statx()` methods.
A basic test which uses both `fallocate` and `statx` is included as well. | diff --git a/src/fs/file.rs b/src/fs/file.rs
index 5b6265f5..eee65263 100644
--- a/src/fs/file.rs
+++ b/src/fs/file.rs
@@ -772,6 +772,58 @@ impl File {
Op::datasync(&self.fd)?.await
}
+ /// Manipulate the allocated disk space of the file.
+ ///
+ /// The manipulated range starts at the `offset`... | 2 | 1 | 0 | [{"id": "G0", "claim": "The unsafe `Box::new(std::mem::zeroed())` in the statx op should come with a safety-contract comment explaining why the Box and unsafe are needed.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Swap the unsafe and the Box s... | null |
tokio-rs__tokio-uring__244 | tokio-rs/tokio-uring | 244 | defect | 575d864c2675863e2e69c6262846d6144f0ccc21 | b34f1a22785438e0e8538713b02e25c4dd93455e | rt: add new api for oneshot op submission and creation | This change adds a new API for creating and submitting oneshot operations. This new API is intended to obsolete the existing system, however transferring over has been left out of this PR to keep the change small.
It is intended that a similar API for multishot operations be landed in a followup PR as well. This was... | diff --git a/examples/mix.rs b/examples/mix.rs
index e55a5247..4e094019 100644
--- a/examples/mix.rs
+++ b/examples/mix.rs
@@ -41,7 +41,7 @@ fn main() {
break;
}
- let (res, b) = socket.write(b).await;
+ let (res, b) = socket.write(b)... | 6 | 2 | 0 | [{"id": "G0", "claim": "Making UnsubmittedOneshot public may let callers add bits to the sqe as they see fit, and the reviewer asks whether that is the case or whether a public method giving a mutable reference is wanted.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "... | null |
tokio-rs__tokio-uring__44 | tokio-rs/tokio-uring | 44 | defect | fe681bf18fdccf28090955b49b1415442bec54d4 | d77829394931fc313347637f828d7d0d4190c397 | fs: impl `File::read_exact_at` and `File::write_all_at` | Current API and abstractions make it possible to write these helper methods.
Fixes #41 | diff --git a/src/fs/file.rs b/src/fs/file.rs
index f841a46f..a1647e4c 100644
--- a/src/fs/file.rs
+++ b/src/fs/file.rs
@@ -170,6 +170,89 @@ impl File {
op.read().await
}
+ /// Read the exact number of bytes required to fill `buf` at the specified
+ /// offset from the file.
+ ///
+ /// This ... | 4 | 3 | 2 | [{"id": "G0", "claim": "read_exact_at should use bytes_total() instead of bytes_init() so it reads into the buffer's full uninitialized capacity, with the length limited via slice(..) if needed.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new read... | null |
tokio-rs__tokio-uring__63 | tokio-rs/tokio-uring | 63 | defect | 3e5946caf0ff0c9cfa9a46421fb6e38b25fb5e89 | 7204b291d7aef125898a9bca9e5103e4cd787fd6 | fs: remove_dir | Implements the missing `remove_dir` operation as described in #48 | diff --git a/src/driver/mod.rs b/src/driver/mod.rs
index 8805a70f..387b012e 100644
--- a/src/driver/mod.rs
+++ b/src/driver/mod.rs
@@ -13,6 +13,8 @@ mod read;
mod shared_fd;
pub(crate) use shared_fd::SharedFd;
+mod unlink_at;
+
mod util;
mod write;
diff --git a/src/driver/unlink_at.rs b/src/driver/unlink_at.rs
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The doc comment on remove_dir lacks an `# Examples` section heading before the ```no_run example.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__tokio-uring__96 | tokio-rs/tokio-uring | 96 | defect | 89a9bd7034573690977cb004223ba8a5ab37ed28 | 3095ac052d8271036e2cf96ee35b70060546bd9d | fs: implement `rename` | Implement the `rename` operation for `fs`.
This operation uses [`IORING_OP_RENAMEAT`](https://man.archlinux.org/man/io_uring_enter.2.en#IORING_OP_RENAMEAT) as the opcode for the submitted
SQE.
Both file descriptors are set to the special value `AT_FDCWD` so that
the given paths are interpreted relative to the cur... | diff --git a/src/driver/mod.rs b/src/driver/mod.rs
index 59892732..159b3dd1 100644
--- a/src/driver/mod.rs
+++ b/src/driver/mod.rs
@@ -16,6 +16,8 @@ mod read;
mod recv_from;
+mod rename_at;
+
mod send_to;
mod shared_fd;
diff --git a/src/driver/rename_at.rs b/src/driver/rename_at.rs
new file mode 100644
index 0... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a newline between the first and second line of the doc comment on src/driver/rename_at.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
tokio-rs__tracing-opentelemetry__129 | tokio-rs/tracing-opentelemetry | 129 | defect | 5e3354ec24debcfbf856bfd1eb7022459dca1e6a | cfa325bb6665466694e2734cbe5848cc122899a8 | Metrics/gauge | Motivation
The [opentelemetry](https://github.com/open-telemetry/opentelemetry-rust/blob/a7a47a745dfe9ded79ffb64722fc53847638d47a/examples/metrics-basic/src/main.rs#L112) crate actually supports Gauge metric behind otel_unstable feature.
Solution
Extend the current implementation with the treatment for the new Gau... | diff --git a/Cargo.toml b/Cargo.toml
index 5f09ff6..35c69e8 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,6 +23,8 @@ rust-version = "1.65.0"
default = ["tracing-log", "metrics"]
# Enables support for exporting OpenTelemetry metrics
metrics = ["opentelemetry/metrics","opentelemetry_sdk/metrics", "smallvec"]
+# Enab... | 5 | 5 | 0 | [{"id": "G0", "claim": "Please use spaces around '=' in the added #[cfg(feature=\"otel_unstable\")] attributes, for all of the added guards.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The gauge variants should be ordered with i64 before f64, following... | null |
tokio-rs__tracing-opentelemetry__155 | tokio-rs/tracing-opentelemetry | 155 | defect | 7f4409a935608bb89e970956217a91945f285b0f | 71ed939711b47152cfd4673156f94b459e6fbfbf | Upgrade to opentelemetry 0.24 | Waiting on:
- [ ] https://github.com/open-telemetry/opentelemetry-rust/pull/1937
| diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml
index 6a8a81a..edc0c5d 100644
--- a/.github/workflows/CI.yml
+++ b/.github/workflows/CI.yml
@@ -103,7 +103,6 @@ jobs:
- name: install cargo-minimal-versions
uses: taiki-e/install-action@cargo-minimal-versions
- name: cargo minimal-version... | 5 | 2 | 0 | [{"id": "G0", "claim": "Asks whether it is intentional that tracing-opentelemetry is versioned 0.25 while the opentelemetry crates are at 0.24, since that mismatch is a bit confusing.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The example's init_trac... | null |
tokio-rs__tracing-opentelemetry__176 | tokio-rs/tracing-opentelemetry | 176 | defect | 515fe001d1169f24e1077c7aeb92674362e7ec14 | 9c78908dbf5de77484e91d78ce974cba343c402b | adding support for setting the status of the span through SpanExt | ## Motivation
I have found that when working with `tracing` spans created by 3rd party libraries, it is incredibly difficult to set the OpenTelemetry Status of the span, which results in always having an unset span in my visualization tool.
<img width="623" alt="image" src="https://github.com/user-attachments/ass... | diff --git a/src/span_ext.rs b/src/span_ext.rs
index c89dc09..c99f374 100644
--- a/src/span_ext.rs
+++ b/src/span_ext.rs
@@ -1,5 +1,5 @@
use crate::layer::WithContext;
-use opentelemetry::{trace::SpanContext, Context, Key, KeyValue, Value};
+use opentelemetry::{trace::SpanContext, trace::Status, Context, Key, KeyValue... | 4 | 3 | 0 | [{"id": "G0", "claim": "The doc comment for set_status should keep its first line in a separate paragraph, add an empty line before the `# Examples` header, and discard the empty line at the end of the code sample.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "... | null |
tokio-rs__tracing-opentelemetry__184 | tokio-rs/tracing-opentelemetry | 184 | defect | 95f9ab97e239e5789d71b9636445d89e47612f65 | 6752932413319eb17b98059895a54d09a70f5c4b | chore: update opentelemetry dependencies to 0.27.0 | ## Motivation
New version 0.27.0 of the opentelemetry crates was recently released.
## Solution
I've updated the dependencies and fixed any outstanding compilation issues caused by breaking changes in the upstream.
Two caveats:
* I was not able to resolve the compilation issues with https://github.com/to... | diff --git a/Cargo.toml b/Cargo.toml
index 2d3467c..ae96e8a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -23,8 +23,8 @@ metrics = ["opentelemetry/metrics","opentelemetry_sdk/metrics", "smallvec"]
metrics_gauge_unstable = ["opentelemetry/otel_unstable"]
[dependencies]
-opentelemetry = { version = "0.26", default-feat... | 4 | 4 | 3 | [{"id": "G0", "claim": "benches/metrics.rs no longer compiles with opentelemetry 0.27 because NoopMeterProvider is no longer published, and a local NoopMeterProvider implementation should be added there to fix the compilation issue.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introd... | null |
tokio-rs__tracing-opentelemetry__201 | tokio-rs/tracing-opentelemetry | 201 | defect | b6701c1f971e1401d91ef7116fd4cf92c9c35989 | 892032d93c14354abd1ade3578a03bfab0a236b0 | feat: Add OpenTelemetrySpanExt methods for direct span event creation | This PR adds methods to `OpenTelemetrySpanExt` for directly adding OpenTelemetry span events, addressing the limitations of using `tracing::event!` for events with dynamic attributes.
Fixes #200
## Motivation
As discussed in issue #200, the current `tracing::event!` macro requires attribute keys to be known at c... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 18c2159..ba2ef8d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Unreleased
+### Added
+
+- Add `OpenTelemetrySpanExt::add_otel_span_event` function to allow adding OpenTelemetry
+ events directly to a `tracing::Span`, enabling the use of dynamic attrib... | 8 | 8 | 0 | [{"id": "G0", "claim": "The method name `add_otel_span_event` is verbose and should be shortened (the reviewer suggests something like `add_otel_event`).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new functions should use `impl Into<Cow<'static, ... | null |
tokio-rs__tracing-opentelemetry__205 | tokio-rs/tracing-opentelemetry | 205 | defect | 088a70052ddc2f007e924571e5be3d596a1f4d71 | 6cd59e7ef41287235e3282bc29cbc24b05b70c69 | Upgrade to otel 0.30 | <!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests.
Contributors guide: https://github.com/tokio-rs/tracing-opentelemetry/blob/master/CONTRIBUTING.md
-->
Hi, I upgraded to the newest opentelemetry 0.30 a... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index ccbb453..7252c44 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Unreleased
+### Breaking Changes
+
+- Upgrade from opentelemetry 0.29.0 to 0.30.0. Refer to the upstream
+ [changelog](https://github.com/open-telemetry/opentelemetry-rust/blob/main/opente... | 3 | 2 | 1 | [{"id": "G0", "claim": "The AsAny downcasting implementation added for the otel 0.30 update may not be fully working, as the author may have implemented the match arms wrongly.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Delete the `# 0.31.0 (May 2... | null |
tokio-rs__tracing-opentelemetry__234 | tokio-rs/tracing-opentelemetry | 234 | defect | 13f7ca2c0ad0c2e73a1a4bc6fe1765b83d9c3933 | f62c2bf7b67a0e9fc5aac933ceef42e422b0c204 | feat: allow OpenTelemetry context access from SpanRef | ## Motivation
Since `OtelData` is no longer public, there needs to be a way to access the OpenTelemetry context from other Layers and ensure that the context is created.
## Solution
Introduce `OpenTelemetryContext` that given a `SpanRef` and the `Dispatch` for the layers will get or create the OpenTelemetry co... | diff --git a/examples/otel_context.rs b/examples/otel_context.rs
new file mode 100644
index 0000000..291b0ee
--- /dev/null
+++ b/examples/otel_context.rs
@@ -0,0 +1,300 @@
+//! This example demonstrates how to use `OpenTelemetryContext` from a separate layer
+//! to access OpenTelemetry context data from tracing spans.... | 6 | 4 | 4 | [{"id": "G0", "claim": "SpanRefExt::context should take &mut self because it internally takes an exclusive lock on its extensions, which would lead users to deadlock themselves.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "unclear"}, {"id": "G1", "claim": "The context accessor should requ... | null |
tokio-rs__tracing-opentelemetry__43 | tokio-rs/tracing-opentelemetry | 43 | defect | d36955010d6d1b85c5ab9c86ccfaa4d8c6b0a32e | 194d7836f07e53a4abe1fdb3f0ef8c5bd17729af | feat: produce measurement with attributes | <!--
Thank you for your Pull Request. Please provide a description above and review
the requirements below.
Bug fixes and new features should include tests.
Contributors guide: https://github.com/tokio-rs/tracing-opentelemetry/blob/master/CONTRIBUTING.md
-->
## Motivation
<!--
Explain the context and wh... | diff --git a/src/metrics.rs b/src/metrics.rs
index da8d1ca..b6b76f7 100644
--- a/src/metrics.rs
+++ b/src/metrics.rs
@@ -1,8 +1,15 @@
use std::{collections::HashMap, fmt, sync::RwLock};
-use tracing::{field::Visit, Subscriber};
-use tracing_core::Field;
+use tracing::{
+ callsite::Identifier,
+ field::{FieldSet,... | 2 | 2 | 1 | [{"id": "G0", "claim": "The author is concerned that determining whether the event has a metrics field causes RwLock::read() to be taken on every on_event() call, and that an implementation acquiring a read lock per on_event may not be acceptable.", "category": "performance", "verdict": "supported", "priority": "P1", "... | null |
tokio-rs__tracing-opentelemetry__48 | tokio-rs/tracing-opentelemetry | 48 | defect | 42a3c73c37e810d09a0cee4b4c387dfb394dc22f | 616a71cc0a194b375fb89d91a9a0b03dd3946401 | Move off of opentelemetry in favor of separate crates. | ## Motivation
`opentelemetry` is going to be deprecated in favor of separated crates.
## Solution
Use the `opentelemetry_sdk` crate for SDK calls instead of `opentelemetry::sdk` | diff --git a/Cargo.toml b/Cargo.toml
index 9c0aeeb..d777da4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -22,10 +22,13 @@ rust-version = "1.60.0"
[features]
default = ["tracing-log", "metrics"]
# Enables support for exporting OpenTelemetry metrics
-metrics = ["opentelemetry/metrics", "smallvec"]
+metrics = ["opentele... | 2 | 2 | 1 | [{"id": "G0", "claim": "The README example should be reverted/rewritten because the sdk crate no longer has a stdout export module; the example should use the standalone opentelemetry_stdout crate as before.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "cla... | null |
tokio-rs__tracing__1017 | tokio-rs/tracing | 1,017 | defect | cb1dd95b8a67c3c69450882e8f8818546330a8ff | ab660b9611e09f8e415b65912d52a1de8670eef7 | core: remove mandatory liballoc dependency with no-std | ## Motivation
Presently, `tracing` and `tracing-core` allow disabling the Rust
standard library. However, even when used with the standard library
disabled, they still require the use of `alloc`, which means some form
of global allocator must exist. This can be a significant limitation on
some very constrained e... | diff --git a/tracing-core/Cargo.toml b/tracing-core/Cargo.toml
index 2e915afc66..9e3ae1b51f 100644
--- a/tracing-core/Cargo.toml
+++ b/tracing-core/Cargo.toml
@@ -27,7 +27,8 @@ edition = "2018"
[features]
default = ["std"]
-std = ["lazy_static"]
+alloc = []
+std = ["lazy_static", "alloc"]
[badges]
maintenance =... | 6 | 3 | 0 | [{"id": "G0", "claim": "Insert a blank line before `type Dispatchers = Vec<dispatcher::Registrar>;` (TIOLI personal-style suggestion).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Could the `lazy_static!` REGISTRY in the std `inner` module now... | null |
tokio-rs__tracing__1228 | tokio-rs/tracing | 1,228 | defect | 70ee64a96f84b90fb50aaf4a44af241df5ce284e | b06f7d83bbffcd0c81e11b1852ede2ae33640a04 | [tracing-attributes] future-proof the #[instrument] integration with async-trait | This draft PR aims to resolve #1219.
Tell me what you think ;)
It works with both the old and new version of `async-trait` (except for one doc test that failed previously, and that works with the new version). One nice thing is that the code is simpler (e.g.g no `self` renaming to `_self`, which will enable some ... | diff --git a/Cargo.toml b/Cargo.toml
index 79b600dbfb..2a72407adc 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,3 +17,6 @@ members = [
"tracing-journald",
"examples"
]
+
+[patch.crates-io]
+async-trait = { git = "https://github.com/SergioBenitez/async-trait", branch = "master" }
diff --git a/tracing-attrib... | 15 | 14 | 2 | [{"id": "G0", "claim": "Instrumenting an async-trait-generated function with #[instrument] surfaces a spurious 'unused variable' warning for the user's parameter, which the author traces to async-trait's generated `let v = v;` rebinding reported at the user's span.", "category": "correctness", "verdict": "supported", "... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.