pilota icon indicating copy to clipboard operation
pilota copied to clipboard

Make `pilota.rust_wrapper_arc` annotation wrapper Arc outside

Open Millione opened this issue 2 years ago • 0 comments

Feature Request

Motivation

Can pilota.rust_wrapper_arc annotation support wrapper Arc like this:

struct B {
  1: required list<string> a(pilota.rust_wrapper_arc="inner"),
  2: required list<string> b(pilota.rust_wrapper_arc="outer"),
}

Generated:

pub struct B {
  a: ::std::collections::Vec<::std::sync::Arc<::pilota::FastStr>>,
  b: ::std::sync::Arc<::std::collections::Vec<::pilota::FastStr>>,
}

Millione avatar Mar 28 '23 15:03 Millione