Skip to content

Commit

Permalink
chore(deps): bump minitrace,toml,auto_enums,bit_flags,... (risingwave…
Browse files Browse the repository at this point in the history
…labs#8682)

Signed-off-by: TennyZhuang <zty0826@gmail.com>
  • Loading branch information
TennyZhuang authored Mar 21, 2023
1 parent 0e8f518 commit 870ba34
Show file tree
Hide file tree
Showing 9 changed files with 141 additions and 166 deletions.
280 changes: 126 additions & 154 deletions Cargo.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"signal",
] }
tokio-stream = "0.1"
toml = "0.5"
toml = "0.7"
tracing = "0.1"
tracing-opentelemetry = { version = "0.17", optional = true }
tracing-subscriber = "0.3.16"
Expand Down
6 changes: 3 additions & 3 deletions src/common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ arc-swap = "1"
arrow-array = "34"
arrow-schema = "34"
async-trait = "0.1"
auto_enums = "0.7"
bitflags = "1.3.2"
auto_enums = "0.8"
bitflags = "2"
byteorder = "1"
bytes = "1"
chrono = { version = "0.4", default-features = false, features = [
Expand Down Expand Up @@ -75,7 +75,7 @@ tokio = { version = "0.2", package = "madsim-tokio", features = [
"time",
"signal",
] }
toml = "0.5"
toml = "0.7"
tonic = { version = "0.2", package = "madsim-tonic" }
tracing = "0.1"
url = "2"
Expand Down
2 changes: 2 additions & 0 deletions src/common/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
// limitations under the License.

pub mod hummock {
#![expect(clippy::disallowed_methods, reason = "used by bitflags!")]

use bitflags::bitflags;
bitflags! {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
//! We have a `Serializer` and a `Deserializer` for each schema of `Row`, which can be reused
//! until schema changes

#![expect(clippy::disallowed_methods, reason = "used by bitflags!")]

use std::collections::BTreeMap;
use std::sync::Arc;

Expand All @@ -38,6 +40,7 @@ use crate::row::Row;
// }

bitflags! {
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
struct Flag: u8 {
const EMPTY = 0b_1000_0000;
const OFFSET8 = 0b01;
Expand Down Expand Up @@ -133,7 +136,7 @@ impl Serializer {
let mut row_bytes = Vec::with_capacity(
5 + self.encoded_column_ids.len() + encoding.offsets.len() + encoding.buf.len(), /* 5 comes from u8+u32 */
);
row_bytes.put_u8(encoding.flag.bits);
row_bytes.put_u8(encoding.flag.bits());
row_bytes.put_u32_le(self.datum_num);
row_bytes.extend(&self.encoded_column_ids);
row_bytes.extend(&encoding.offsets);
Expand Down Expand Up @@ -182,7 +185,7 @@ impl ValueRowDeserializer for Deserializer {
Flag::OFFSET8 => 1,
Flag::OFFSET16 => 2,
Flag::OFFSET32 => 4,
_ => return Err(ValueEncodingError::InvalidFlag(flag.bits)),
_ => return Err(ValueEncodingError::InvalidFlag(flag.bits())),
};
let datum_num = encoded_bytes.get_u32_le() as usize;
let offsets_start_idx = 4 * datum_num;
Expand Down
2 changes: 1 addition & 1 deletion src/storage/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ normal = ["workspace-hack"]
[dependencies]
arc-swap = "1"
async-trait = "0.1"
auto_enums = { version = "0.7", features = ["futures"] }
auto_enums = { version = "0.8", features = ["futures03"] }
await-tree = "0.1.1"
bytes = { version = "1", features = ["serde"] }
crossbeam = "0.8.1"
Expand Down
2 changes: 1 addition & 1 deletion src/storage/src/table/batch_table/storage_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ impl<S: StateStore, SD: ValueRowSerde> StorageTableInner<S, SD> {
}))
.await?;

#[auto_enum(futures::Stream)]
#[auto_enum(futures03::Stream)]
let iter = match iterators.len() {
0 => unreachable!(),
1 => iterators.into_iter().next().unwrap(),
Expand Down
2 changes: 1 addition & 1 deletion src/tests/state_cleaning_test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ serde_with = "2"
tokio = { version = "0.2", package = "madsim-tokio" }
tokio-postgres = "0.7.7"
tokio-stream = { version = "0.1", features = ["fs"] }
toml = "0.4"
toml = "0.7"
tracing = "0.1"

[target.'cfg(not(madsim))'.dependencies]
Expand Down
4 changes: 1 addition & 3 deletions src/workspace-hack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ publish = false
ahash = { version = "0.8" }
anyhow = { version = "1", features = ["backtrace"] }
arrayvec = { version = "0.7", default-features = false, features = ["std"] }
auto_enums = { version = "0.7", features = ["futures"] }
aws-sdk-s3 = { version = "0.21", features = ["native-tls"] }
aws-smithy-client = { version = "0.51", default-features = false, features = ["native-tls", "rustls"] }
aws-types = { version = "0.51", default-features = false, features = ["hardcoded-credentials"] }
Expand Down Expand Up @@ -112,8 +111,7 @@ zstd-sys = { version = "2", default-features = false, features = ["legacy", "std
ahash = { version = "0.8" }
anyhow = { version = "1", features = ["backtrace"] }
arrayvec = { version = "0.7", default-features = false, features = ["std"] }
auto_enums = { version = "0.7", features = ["futures"] }
auto_enums_derive = { version = "0.7", default-features = false, features = ["futures", "std"] }
auto_enums = { version = "0.8", features = ["futures03"] }
aws-sdk-s3 = { version = "0.21", features = ["native-tls"] }
aws-smithy-client = { version = "0.51", default-features = false, features = ["native-tls", "rustls"] }
aws-types = { version = "0.51", default-features = false, features = ["hardcoded-credentials"] }
Expand Down

0 comments on commit 870ba34

Please sign in to comment.