Skip to content

Commit c0793cd

Browse files
authored
Fix Proto vs WASM (#1157)
1 parent 04c2cde commit c0793cd

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

.github/workflows/test-webassembly.yml

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- "xmtp_mls/src/**"
1111
- "xmtp_id/src/**"
1212
- "xmtp_api_http/src/**"
13+
- "xmtp_proto/**"
1314
- "Cargo.toml"
1415
- "Cargo.lock"
1516
- "rust-toolchain"

xmtp_proto/buf.gen.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ plugins:
2727
- server_mod_attribute=xmtp.message_api.v1=#[cfg(not(target_arch = "wasm32"))]
2828
- server_mod_attribute=xmtp.mls.api.v1=#[cfg(not(target_arch = "wasm32"))]
2929
- server_mod_attribute=xmtp.xmtpv4=#[cfg(not(target_arch = "wasm32"))]
30+
- server_mod_attribute=xmtp.xmtpv4.payer_api=#[cfg(not(target_arch = "wasm32"))]
31+
- server_mod_attribute=xmtp.xmtpv4.message_api=#[cfg(not(target_arch = "wasm32"))]
3032
- name: prost-crate
3133
out: .
3234
strategy: all

xmtp_proto/src/gen/xmtp.xmtpv4.message_api.tonic.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @generated
22
/// Generated client implementations.
3+
#[cfg(not(target_arch = "wasm32"))]
34
pub mod replication_api_client {
45
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
56
use tonic::codegen::*;
@@ -217,6 +218,7 @@ pub mod replication_api_client {
217218
}
218219
}
219220
/// Generated server implementations.
221+
#[cfg(not(target_arch = "wasm32"))]
220222
pub mod replication_api_server {
221223
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
222224
use tonic::codegen::*;

xmtp_proto/src/gen/xmtp.xmtpv4.payer_api.tonic.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @generated
22
/// Generated client implementations.
3+
#[cfg(not(target_arch = "wasm32"))]
34
pub mod payer_api_client {
45
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
56
use tonic::codegen::*;
@@ -121,6 +122,7 @@ pub mod payer_api_client {
121122
}
122123
}
123124
/// Generated server implementations.
125+
#[cfg(not(target_arch = "wasm32"))]
124126
pub mod payer_api_server {
125127
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
126128
use tonic::codegen::*;

0 commit comments

Comments
 (0)