Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update README

Manav Rathic8635da1f388
diff --git a/rust/README.md b/rust/README.md
index f9178038d0..df6e28ab72 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -16,8 +16,8 @@
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ mobile/packages/rust/ β”‚ β”‚ web/packages/wasm/ β”‚ β”‚ rust/cli/ β”‚
β”‚ (ente_rust crate) β”‚ β”‚ (ente-wasm crate) β”‚ β”‚ β”‚
-β”‚ β”‚ β”‚ β”‚ β”‚ (future: when CLI β”‚
-β”‚ Shared #[frb] wrappers β”‚ β”‚ #[wasm_bindgen] wrappers β”‚ β”‚ uses ente-core) β”‚
+β”‚ β”‚ β”‚ β”‚ β”‚ CLI binary, depends β”‚
+β”‚ Shared #[frb] wrappers β”‚ β”‚ #[wasm_bindgen] wrappers β”‚ β”‚ on ente-core β”‚
β”‚ for all mobile apps β”‚ β”‚ for all web apps β”‚ β”‚ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
β”‚ β”‚ β”‚
@@ -42,9 +42,11 @@
```
rust/
-β”œβ”€β”€ src/ # Existing CLI code (untouched until later)
-β”‚ └── main.rs
-β”œβ”€β”€ Cargo.toml # Existing CLI Cargo.toml
+β”œβ”€β”€ cli/ # CLI package
+β”‚ β”œβ”€β”€ src/
+β”‚ β”‚ └── main.rs
+β”‚ β”œβ”€β”€ Cargo.toml
+β”‚ └── Cargo.lock
β”‚
└── core/ # Pure Rust business logic
β”œβ”€β”€ src/
@@ -169,12 +171,13 @@ flutter test
### CLI Migration
-When CLI should use ente-core:
+A WIP CLI lives in `rust/cli/` and depends on ente-core via path dependency.
+
+Next steps:
-1. Move `rust/src/` β†’ `rust/cli/`
-2. Create workspace `Cargo.toml` at `rust/`
-3. CLI depends on ente-core
-4. Gradually replace CLI's own implementations with ente-core calls
+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
diff --git a/rust/cli/README.md b/rust/cli/README.md
new file mode 100644
index 0000000000..2515b16493
--- /dev/null
+++ b/rust/cli/README.md
@@ -0,0 +1,10 @@
+WIP Ente Rust CLI.
+
+## Development
+
+```bash
+cargo fmt # format
+cargo clippy # lint
+cargo build # build
+cargo test # test
+```