From 0e00678933a9220843ee5f77e8d5ed8566816378 Mon Sep 17 00:00:00 2001 From: Yu Li Date: Wed, 27 Nov 2024 17:22:29 +0800 Subject: [PATCH] chore(volo-thrift): add missing feature `unsafe_unchecked` Signed-off-by: Yu Li --- volo-thrift/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/volo-thrift/Cargo.toml b/volo-thrift/Cargo.toml index b0f63e1a..d177d44a 100644 --- a/volo-thrift/Cargo.toml +++ b/volo-thrift/Cargo.toml @@ -56,3 +56,5 @@ multiplex = [] # unsafe-codec can achieve better performance for thrift binary protocol, but may cause undefined behavior # if the thrift message is malformed. unsafe-codec = [] +# This will use unwrap_unchecked instead of unwrap in some places. +unsafe_unchecked = ["volo/unsafe_unchecked"]