Added wasm implementations for formattedtext

This commit is contained in:
2023-09-20 14:23:46 -07:00
parent c237e9d5ec
commit 470c3a49ed
4 changed files with 72 additions and 52 deletions

12
src/formattedtext/mod.rs Normal file
View File

@ -0,0 +1,12 @@
mod formattedtext;
pub use formattedtext::FormattedText;
// Select write implementation by target system
cfg_if::cfg_if! {
if #[cfg(target_family = "unix")] {
mod unix_backend;
} else if #[cfg(target_arch = "wasm32")] {
mod wasm_backend;
}
}