π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
rust: update repository layout docs
Prateek Sunal920ebd277df6
diff --git a/rust/README.md b/rust/README.mdindex df6e28ab72..9b341fd7ad 100644--- a/rust/README.md+++ b/rust/README.md@@ -48,11 +48,26 @@ rust/β βββ Cargo.tomlβ βββ Cargo.lockβ-βββ core/ # Pure Rust business logic+βββ core/ # Pure Rust business logic+β βββ src/+β β βββ lib.rs+β β βββ urls.rs+β βββ Cargo.toml # crate name: ente-core+β+βββ validation/ # Crypto validation + benchmarks vs libsodiumβββ src/- β βββ lib.rs- β βββ urls.rs- βββ Cargo.toml # crate name: ente-core+ β βββ main.rs+ β βββ bin/+ β βββ bench.rs+ βββ wasm/ # WASM bench bindings+ β βββ src/+ β β βββ lib.rs+ β βββ Cargo.toml # crate name: ente-validation-wasm+ βββ js/ # JS + WASM benchmarks+ β βββ bench-wasm.mjs+ β βββ bench-wasm-browser.mjs+ β βββ bench-wasm-browser.html+ βββ Cargo.toml # crate name: ente-validationweb/packages/wasm/ # WASM bindings (lives in web workspace)βββ src/@@ -80,6 +95,7 @@ mobile/apps/photos/rust/ # Photos app-specific FRB bindings**Crates:**- `ente-core` - shared business logic (pure Rust, no FFI)+- `ente-validation` - validation + benchmarks vs libsodium- `ente-wasm` - wasm-bindgen wrappers for web- `ente_rust` - shared FRB wrappers for mobile (Dart class: `EnteRust`)- `ente_photos_rust` - Photos app-specific FRB (Dart class: `EntePhotosRust`)@@ -128,6 +144,39 @@ cargo build # buildcargo test # test```+**ente-validation (rust/validation/):**++```sh+cargo run -p ente-validation --bin ente-validation # validation suite+cargo run -p ente-validation --bin bench # benchmarks (debug)+cargo run -p ente-validation --bin bench --release # benchmarks (release)+```++**ente-validation wasm benchmarks (rust/validation/):**++Node (rust-core wasm vs libsodium-wrappers-sumo wasm):++```sh+wasm-pack build --target nodejs rust/validation/wasm # wasm bench build+cd rust/validation/js+npm install+node bench-wasm.mjs # wasm benchmarks+```++Browser (Chrome):++```sh+wasm-pack build --target web rust/validation/wasm+cd rust/validation+python3 -m http.server 8000+```++Open:++```text+http://localhost:8000/js/bench-wasm-browser.html+```+**ente-wasm (web/packages/wasm/):**```sh