-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathbuf.gen.yaml
39 lines (39 loc) · 1.84 KB
/
buf.gen.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
version: v1
managed:
enabled: true
plugins:
- plugin: buf.build/community/neoeinstein-prost:v0.4.0
out: src/gen
opt:
- compile_well_known_types
- extern_path=.google.protobuf=::pbjson_types
- file_descriptor_set
- plugin: buf.build/community/neoeinstein-prost-serde:v0.3.1
out: src/gen
- plugin: buf.build/community/neoeinstein-tonic:v0.4.1
out: src/gen
opt:
- no_server=false
- compile_well_known_types
- extern_path=.google.protobuf=::pbjson_types
# Exclude it from non-tonic builds (so we can use the rest in Wasm)
- client_mod_attribute=xmtp.identity.api.v1=#[cfg(not(target_arch = "wasm32"))]
- client_mod_attribute=xmtp.message_api.v1=#[cfg(not(target_arch = "wasm32"))]
- client_mod_attribute=xmtp.mls.api.v1=#[cfg(not(target_arch = "wasm32"))]
- client_mod_attribute=xmtp.mls_validation.v1=#[cfg(not(target_arch = "wasm32"))]
- client_mod_attribute=xmtp.xmtpv4=#[cfg(not(target_arch = "wasm32"))]
- client_mod_attribute=xmtp.xmtpv4.payer_api=#[cfg(not(target_arch = "wasm32"))]
- client_mod_attribute=xmtp.xmtpv4.message_api=#[cfg(not(target_arch = "wasm32"))]
- server_mod_attribute=xmtp.identity.api.v1=#[cfg(not(target_arch = "wasm32"))]
- server_mod_attribute=xmtp.mls_validation.v1=#[cfg(not(target_arch = "wasm32"))]
- server_mod_attribute=xmtp.message_api.v1=#[cfg(not(target_arch = "wasm32"))]
- server_mod_attribute=xmtp.mls.api.v1=#[cfg(not(target_arch = "wasm32"))]
- server_mod_attribute=xmtp.xmtpv4=#[cfg(not(target_arch = "wasm32"))]
- server_mod_attribute=xmtp.xmtpv4.payer_api=#[cfg(not(target_arch = "wasm32"))]
- server_mod_attribute=xmtp.xmtpv4.message_api=#[cfg(not(target_arch = "wasm32"))]
- name: prost-crate
out: .
strategy: all
opt:
- include_file=src/gen/mod.rs
- gen_crate