Skip to content

armgit / ente

Public Imported from GitHub
0

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

[docs] Keep Rust package documentation

laurenspriem32e138e44e94
diff --git a/rust/README.md b/rust/README.md
index dc41764292..fde9c104ae 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -21,19 +21,7 @@ Other useful commands:
cargo codegen native # Regenerate bindings used by native apps
cargo codegen frb # Regenerate bindings used by Flutter apps
cargo codegen napi # Regenerate bindings used by Desktop (Electron) apps
-```
-
-## Integration tests
-
-Integration tests use [ente-test-support](crates/test-support) to start a local
-Museum backed by temporary Postgres and object storage. They require `go` on
-`PATH` to build and run Museum. The Postgres binary
-([postgresql_embedded](https://crates.io/crates/postgresql_embedded)) is downloaded
-and cached on first use.
-These tests are gated behind the `museum` feature, so a plain `cargo test` skips
-them. To run them:
-
-```sh
+# Run integration tests against a local Museum
cargo test --features museum,ente-ml/ml-assets
```
diff --git a/rust/apps/cli/README.md b/rust/apps/cli/README.md
index 1d1d5fbf8b..060cc1b0a0 100644
--- a/rust/apps/cli/README.md
+++ b/rust/apps/cli/README.md
@@ -9,8 +9,7 @@ cargo run --bin ente-rs -- --help
## Integration tests
The integration tests run against a live Museum spun up by
-[ente-test-support](../../crates/test-support) (see the
-[setup instructions](../../README.md#integration-tests)). They
+[ente-test-support](../../crates/test-support) (see its README for setup). They
are gated behind the `museum` Cargo feature, so a plain `cargo test -p ente-rs`
skips them. To run them:
diff --git a/rust/crates/test-support/README.md b/rust/crates/test-support/README.md
new file mode 100644
index 0000000000..4864e0d89d
--- /dev/null
+++ b/rust/crates/test-support/README.md
@@ -0,0 +1,15 @@
+# ente-test-support
+
+Runs a local Museum backed by temporary Postgres and object storage for use by various Rust integration tests.
+
+## Setup
+
+Requires `go` on PATH to build and run Museum. The Postgres binary ([postgresql_embedded](https://crates.io/crates/postgresql_embedded)) is downloaded and cached on first use.
+
+## Usage
+
+Tests that use it are gated behind a Cargo feature so that a plain `cargo test` skips them. They can be run by enabling the `museum` feature, e.g.:
+
+```sh
+cargo test -p ente-rs --features museum
+```