Skip to content

Commit

Permalink
Fix Proto vs WASM (#1157)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkysel authored Oct 21, 2024
1 parent 04c2cde commit c0793cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-webassembly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- "xmtp_mls/src/**"
- "xmtp_id/src/**"
- "xmtp_api_http/src/**"
- "xmtp_proto/**"
- "Cargo.toml"
- "Cargo.lock"
- "rust-toolchain"
Expand Down
2 changes: 2 additions & 0 deletions xmtp_proto/buf.gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ plugins:
- 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
Expand Down
2 changes: 2 additions & 0 deletions xmtp_proto/src/gen/xmtp.xmtpv4.message_api.tonic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @generated
/// Generated client implementations.
#[cfg(not(target_arch = "wasm32"))]
pub mod replication_api_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
Expand Down Expand Up @@ -217,6 +218,7 @@ pub mod replication_api_client {
}
}
/// Generated server implementations.
#[cfg(not(target_arch = "wasm32"))]
pub mod replication_api_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
Expand Down
2 changes: 2 additions & 0 deletions xmtp_proto/src/gen/xmtp.xmtpv4.payer_api.tonic.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @generated
/// Generated client implementations.
#[cfg(not(target_arch = "wasm32"))]
pub mod payer_api_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
Expand Down Expand Up @@ -121,6 +122,7 @@ pub mod payer_api_client {
}
}
/// Generated server implementations.
#[cfg(not(target_arch = "wasm32"))]
pub mod payer_api_server {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
Expand Down

0 comments on commit c0793cd

Please sign in to comment.