Skip to content

Commit 1cf28bb

Browse files
authored
chore: reduce warnings when compiling non-wasm (#1796)
<!-- ELLIPSIS_HIDDEN --> > [!IMPORTANT] > Add conditional compilation for `aws_cred_bridge` in `lib.rs` to reduce non-WASM compile errors. > > - **Compilation**: > - Add `#[cfg(target_arch = "wasm32")]` to `aws_cred_bridge` module in `lib.rs` to prevent compile errors when not targeting WebAssembly. > > <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=BoundaryML%2Fbaml&utm_source=github&utm_medium=referral)<sup> for bf9dbb4. It will automatically update as commits are pushed.</sup> <!-- ELLIPSIS_HIDDEN -->
1 parent b848358 commit 1cf28bb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • engine/baml-schema-wasm/src

engine/baml-schema-wasm/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#[cfg(target_arch = "wasm32")]
12
pub(crate) mod aws_cred_bridge;
23

34
#[cfg(target_arch = "wasm32")]

0 commit comments

Comments
 (0)