Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

docs(rust): update README to reflect current rust-core-impl state

Prateek Sunal0b7ecafe5a06
diff --git a/rust/README.md b/rust/README.md
index 9bd0e3e3b0..ddf6c3d051 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -38,24 +38,55 @@
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```
-## Contents (this repo)
-
-- `rust/core/` (`ente-core`) - shared, pure Rust code used by clients (crypto + auth, plus small HTTP/URL helpers).
-- `rust/cli/` - Rust CLI (work-in-progress).
-
## Directory Structure
+Rust crates live under `rust/`.
+
```
rust/
β”œβ”€β”€ cli/ # CLI package
β”‚ β”œβ”€β”€ src/
-β”‚ └── Cargo.toml
-└── core/ # Pure Rust business logic
+β”‚ β”‚ └── main.rs
+β”‚ β”œβ”€β”€ Cargo.toml
+β”‚ └── Cargo.lock
+β”‚
+└── core/ # Pure Rust shared logic
β”œβ”€β”€ src/
β”œβ”€β”€ docs/
└── Cargo.toml # crate name: ente-core
```
+Related integrations (outside this folder):
+
+- `web/packages/wasm/` - WASM bindings around `ente-core` (`ente-wasm`)
+- `mobile/packages/rust/` - Flutter Rust Bridge bindings around `ente-core` (`ente_rust`)
+- `mobile/apps/photos/rust/` - Photos app-specific Rust crate (`ente_photos_rust`)
+
+## Crates
+
+- `ente-core` (`rust/core`) - shared crypto + auth helpers
+ - Docs:
+ - `rust/core/docs/crypto.md`
+ - `rust/core/docs/auth.md`
+- `ente-rs` (`rust/cli`) - Rust CLI
+- `ente-wasm` (`web/packages/wasm`) - wasm-bindgen wrapper for web
+- `ente_rust` (`mobile/packages/rust`) - shared FRB wrapper for mobile
+- `ente_photos_rust` (`mobile/apps/photos/rust`) - Photos-specific FRB crate
+
+## Tooling
+
+### wasm-bindgen
+
+`#[wasm_bindgen]` exports Rust APIs to JavaScript and handles type conversions.
+
+### wasm-pack
+
+Build helper for WASM crates. In this repo it’s used via the web workspace scripts.
+
+### Flutter Rust Bridge (FRB)
+
+Used for Flutter integration. The FRB crates wrap `ente-core` and generate Dart bindings.
+
## Development
**ente-core (rust/core/):**
@@ -67,4 +98,9 @@ cargo build
cargo test
```
-See `rust/core/README.md` for module docs.
+**ente-rs (rust/cli/):**
+
+```sh
+cargo test
+cargo run -- --help
+```