feat: appflowy_web build (#4302)

* chore: create web folder

* fix: support lib-dispatch and notification compiling to wasm

* refactor: wasm

* refactor: call async evnet

* chore: add web ci

* ci: fix

* ci: fix

* ci: fix

---------

Co-authored-by: nathan <nathan@appflowy.io>
This commit is contained in:
Kilu.He
2024-01-06 11:50:05 +08:00
committed by GitHub
parent 89370b4a55
commit 79c912219d
49 changed files with 4801 additions and 123 deletions

View File

@ -4,6 +4,8 @@ version = "0.1.0"
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
chrono = { workspace = true, default-features = false, features = ["clock"] }
@ -15,6 +17,8 @@ async-trait.workspace = true
md5 = "0.7.0"
anyhow.workspace = true
walkdir = "2.4.0"
zip = "0.6.6"
tempfile = "3.8.1"
validator = "0.16.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
zip = "0.6.6"

View File

@ -1,7 +1,9 @@
pub use async_trait;
pub mod box_any;
#[cfg(not(target_arch = "wasm32"))]
pub mod file_util;
pub mod future;
pub mod ref_map;
pub mod util;