We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18ee8b1 commit 4d37832Copy full SHA for 4d37832
1 file changed
volo-build/src/thrift_backend.rs
@@ -756,6 +756,16 @@ impl pilota_build::CodegenBackend for VoloThriftBackend {
756
.map(|a| {
757
let ty = self.inner.codegen_item_ty(a.ty.kind.clone());
758
let ident = self.cx().rust_name(a.def_id); // use the rust name as string format which will escape the keyword
759
+ let ty = if let Some(RustWrapperArc(true)) = self
760
+ .cx()
761
+ .tags(a.tags_id)
762
+ .as_ref()
763
+ .and_then(|tags| tags.get::<RustWrapperArc>())
764
+ {
765
+ format!("::std::sync::Arc<{ty}>")
766
+ } else {
767
+ format!("{ty}")
768
+ };
769
let ty = if a.kind == rir::FieldKind::Optional {
770
format!("::std::option::Option<{ty}>")
771
} else {
0 commit comments