Cargo Features

volo-thrift has no features set by default.

[dependencies]
volo-thrift = { version = "0.10.7", features = ["multiplex", "unsafe-codec", "unsafe_unchecked"] }
multiplex

multiplex is unstable and we don't provide backward compatibility

Affects transport::multiplex

unsafe-codec

unsafe-codec can achieve better performance for thrift binary protocol, but may cause undefined behavior if the thrift message is malformed.

unsafe_unchecked

This will use unwrap_unchecked instead of unwrap in some places.

Enables unsafe_unchecked of volo