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"]