chore: remove dependency on "atty" (#7725)

Signed-off-by: luofucong <luofc@foxmail.com>
This commit is contained in:
LFC
2026-02-26 17:58:01 +08:00
committed by GitHub
parent 0c30bf1a10
commit 5eac4f10aa
16 changed files with 45 additions and 116 deletions

View File

@@ -35,7 +35,7 @@ tower.workspace = true
vec1 = "1.12"
[dev-dependencies]
criterion = "0.4"
criterion.workspace = true
hyper-util = { workspace = true, features = ["tokio"] }
rand.workspace = true
tempfile.workspace = true

View File

@@ -27,7 +27,7 @@ snafu.workspace = true
tokio.workspace = true
[dev-dependencies]
criterion = "0.7.0"
criterion.workspace = true
tokio.workspace = true
[[bench]]

View File

@@ -49,7 +49,7 @@ uuid.workspace = true
[dev-dependencies]
common-test-util.workspace = true
criterion = "0.4"
criterion.workspace = true
rand.workspace = true
rand_chacha = "0.9"
tempfile.workspace = true

View File

@@ -48,7 +48,7 @@ common-meta = { workspace = true, features = ["testing"] }
common-test-util.workspace = true
mito2 = { workspace = true, features = ["test"] }
common-wal = { workspace = true }
criterion = { version = "0.4", features = ["async", "async_tokio"] }
criterion = { workspace = true, features = ["async", "async_tokio"] }
mur3 = "0.1"
common-function = { workspace = true }
partition = { workspace = true }

View File

@@ -13,8 +13,9 @@
// limitations under the License.
use std::hash::Hasher;
use std::hint::black_box;
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use criterion::{Criterion, criterion_group, criterion_main};
use fxhash::FxHasher;
use mur3::Hasher128;

View File

@@ -92,7 +92,7 @@ uuid.workspace = true
common-function.workspace = true
common-meta = { workspace = true, features = ["testing"] }
common-test-util.workspace = true
criterion = { version = "0.4", features = ["async", "async_tokio"] }
criterion = { workspace = true, features = ["async", "async_tokio"] }
dotenv.workspace = true
log-store.workspace = true
mito-codec = { workspace = true, features = ["testing"] }

View File

@@ -12,7 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use std::hint::black_box;
use criterion::{Criterion, criterion_group, criterion_main};
use mito2::compaction::run::{
Item, Ranged, SortedRun, find_overlapping_items, find_sorted_runs, merge_seq_files, reduce_runs,
};

View File

@@ -12,10 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::hint::black_box;
use std::str::FromStr;
use std::sync::Arc;
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use criterion::{Criterion, criterion_group, criterion_main};
use datatypes::arrow;
use datatypes::arrow::array::{ArrayRef, RecordBatch, TimestampMillisecondArray};
use datatypes::arrow::datatypes::{DataType, Field, Schema, TimeUnit};

View File

@@ -12,11 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::hint::black_box;
use std::sync::Arc;
use api::v1::value::ValueData;
use api::v1::{Mutation, OpType, Row, Rows, SemanticType};
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use criterion::{Criterion, criterion_group, criterion_main};
use datatypes::data_type::ConcreteDataType;
use datatypes::schema::ColumnSchema;
use mito2::memtable::simple_bulk_memtable::SimpleBulkMemtable;

View File

@@ -30,7 +30,7 @@ store-api.workspace = true
table.workspace = true
[dev-dependencies]
criterion = "0.5"
criterion.workspace = true
rand = "0.8"
[[bench]]

View File

@@ -12,10 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::hint::black_box;
use std::sync::Arc;
use std::vec;
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use criterion::{Criterion, criterion_group, criterion_main};
use datatypes::arrow::array::{ArrayRef, Int32Array, StringArray, TimestampMillisecondArray};
use datatypes::arrow::datatypes::{DataType, Field, Schema, TimeUnit};
use datatypes::arrow::record_batch::RecordBatch;

View File

@@ -65,7 +65,7 @@ yaml-rust = "0.4"
[dev-dependencies]
catalog = { workspace = true, features = ["testing"] }
criterion = { version = "0.4", features = ["html_reports"] }
criterion = { workspace = true, features = ["html_reports"] }
rayon = "1.0"
serde = { version = "1.0", features = ["derive"] }
session = { workspace = true, features = ["testing"] }

View File

@@ -12,9 +12,10 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use std::hint::black_box;
use std::sync::Arc;
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use criterion::{Criterion, criterion_group, criterion_main};
use pipeline::error::Result;
use pipeline::{Content, Pipeline, PipelineContext, SchemaInfo, parse, setup_pipeline};
use serde_json::Deserializer;

View File

@@ -13,8 +13,9 @@
// limitations under the License.
use std::collections::BTreeMap;
use std::hint::black_box;
use criterion::{Criterion, black_box, criterion_group, criterion_main};
use criterion::{Criterion, criterion_group, criterion_main};
use servers::error::Result;
use servers::http::loki::parse_loki_labels;