π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
docs(rust): drop future/stacked-PR references from rust README
Prateek Sunal27b6ceb7afb7
diff --git a/rust/README.md b/rust/README.mdindex df6e28ab72..4dee587dee 100644--- a/rust/README.md+++ b/rust/README.md@@ -166,48 +166,3 @@ flutter_rust_bridge_codegen generateflutter_rust_bridge_codegen generateflutter test```--## Future--### CLI Migration--A WIP CLI lives in `rust/cli/` and depends on ente-core via path dependency.--Next steps:--1. Move code from CLI to ente-core, adding tests as we migrate.-2. Update CLI to use ente-core implementations-3. Prune CLI dependencies as code moves to core--### WASM Compatibility--Core crate must handle deps that don't compile to WASM:--| Dependency | Issue | Solution |-| ---------------------- | ---------------- | --------------------------------------------------------------------------------------- |-| `libsodium-sys-stable` | Native C library | Feature-gate; use pure Rust crypto (e.g., `chacha20poly1305` crate) or WebCrypto via JS |-| `rusqlite` | Native SQLite | Feature-gate; WASM uses IndexedDB via JS interop |-| `tokio` (full) | Threading | Use WASM-compatible features only |-| Filesystem ops | No FS in browser | Abstract behind traits |--**Approach:** Cargo feature flags in ente-core?--```toml-[features]-default = ["native"]-native = ["libsodium-sys-stable", "rusqlite/bundled"]-wasm = ["getrandom/js"]-```--### Other notes--- Never panic across FFI boundary - always return Result or map errors-- Keep binding functions thin - logic belongs in ente-core-- Mobile binary size: LTO + symbol stripping--## Tests--- **ente-core:** Standard `cargo test` - comprehensive unit tests-- **ente_photos_rust:** Minimal FRB smoke test in Dart to catch binding drift-- **ente-wasm:** Vitest tests in web package-- **Golden fixtures:** Share test vectors across native/FRB/WASM for crypto parity