Skip to content

Commit

Permalink
Add a compile error when building with fs for wasm32-unknown-unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
er-azh authored and Lonami committed Dec 23, 2024
1 parent 7beea7d commit 49a17d7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/grammers-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ pub mod parsers;
pub mod types;
pub(crate) mod utils;

#[cfg(all(feature = "fs", target_arch = "wasm32", target_os = "unknown"))]
compile_error!("The `fs` feature is not supported on wasm32-unknown-unknown.");

pub use client::{Client, Config, InitParams, SignInError};
pub use types::{button, reply_markup, ChatMap, InputMedia, InputMessage, Update};

Expand Down

0 comments on commit 49a17d7

Please sign in to comment.