Skip to content

armgit / ente

Public Imported from GitHub
0

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

Standardize Rust crate package names

laurenspriemd93e0b5f13e7
diff --git a/.github/workflows/mobile-lint.yml b/.github/workflows/mobile-lint.yml
index aaf99e9fdb..29cdbf781f 100644
--- a/.github/workflows/mobile-lint.yml
+++ b/.github/workflows/mobile-lint.yml
@@ -81,7 +81,7 @@ jobs:
- run: cargo codegen frb
working-directory: rust
- - run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked
+ - run: cargo clippy -p ente-photos-frb --features flutter --all-targets --locked
working-directory: rust
- run: cargo clippy -p ente-locker-frb --features flutter --all-targets --locked
diff --git a/.github/workflows/warm-caches.yml b/.github/workflows/warm-caches.yml
index 9c2f2d3611..07be34fcb2 100644
--- a/.github/workflows/warm-caches.yml
+++ b/.github/workflows/warm-caches.yml
@@ -83,7 +83,7 @@ jobs:
- run: cargo codegen frb
- - run: cargo clippy -p ente_photos_rust --features flutter --all-targets --locked
+ - run: cargo clippy -p ente-photos-frb --features flutter --all-targets --locked
- run: cargo clippy -p ente-locker-frb --features flutter --all-targets --locked
diff --git a/mobile/apps/photos/ios/Podfile.lock b/mobile/apps/photos/ios/Podfile.lock
index 50d423e5ce..726cbccdcb 100644
--- a/mobile/apps/photos/ios/Podfile.lock
+++ b/mobile/apps/photos/ios/Podfile.lock
@@ -452,7 +452,7 @@ SPEC CHECKSUMS:
ente_mail: 90753dd584f49ee092759a32d4143ca51db69641
ente_panorama_viewer: 87bb22e7868c3005314f80c05ee0787aa07edcd8
ente_photos_platform: 08757c7e4977863732f75ce0f85cc6144600e3d2
- ente_photos_rust: e217348178d710d624852c9a9ae8872c00b30366
+ ente_photos_rust: f372c56187e4be7b97437897aa4824f3985734d9
ente_qr: 86beaf5d2644705db9b565b32dd8b82c05fb36af
ente_screen_brightness: 7dd13c361508ee6098a2578908ebf35e9f567e28
ente_screen_cover: 6792566774f1c83939f9c1d03ed0a1f1ded45ae4
diff --git a/mobile/apps/photos/rust_builder/android/build.gradle b/mobile/apps/photos/rust_builder/android/build.gradle
index b7083bacd3..5869710b1b 100644
--- a/mobile/apps/photos/rust_builder/android/build.gradle
+++ b/mobile/apps/photos/rust_builder/android/build.gradle
@@ -46,5 +46,5 @@ android {
apply from: "../../../../cargokit/gradle/plugin.gradle"
cargokit {
manifestDir = "../../../../../rust/bindings/frb/photos"
- libname = "ente_photos_rust"
+ libname = "ente_photos_frb"
}
diff --git a/mobile/apps/photos/rust_builder/ios/ente_photos_rust.podspec b/mobile/apps/photos/rust_builder/ios/ente_photos_rust.podspec
index c8774c088d..45b98e4a3e 100644
--- a/mobile/apps/photos/rust_builder/ios/ente_photos_rust.podspec
+++ b/mobile/apps/photos/rust_builder/ios/ente_photos_rust.podspec
@@ -43,13 +43,13 @@ A new Flutter FFI plugin project.
exit 1
fi
unset ORT_IOS_XCFWK_PATH ORT_IOS_XCFWK_LOCATION
- sh "$(cd -P "$PODS_TARGET_SRCROOT" && pwd)/../../../../cargokit/build_pod.sh" ../../../../../rust/bindings/frb/photos ente_photos_rust
+ sh "$(cd -P "$PODS_TARGET_SRCROOT" && pwd)/../../../../cargokit/build_pod.sh" ../../../../../rust/bindings/frb/photos ente_photos_frb
SCRIPT
:execution_position => :before_compile,
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
# Let Xcode know that the static library linked below is created by this
# build step.
- :output_files => ["${BUILT_PRODUCTS_DIR}/libente_photos_rust.a"],
+ :output_files => ["${BUILT_PRODUCTS_DIR}/libente_photos_frb.a"],
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
@@ -60,7 +60,7 @@ A new Flutter FFI plugin project.
# Runtime's duplicate protobuf objects.
'OTHER_LDFLAGS' => [
'$(inherited)',
- '${BUILT_PRODUCTS_DIR}/libente_photos_rust.a',
+ '${BUILT_PRODUCTS_DIR}/libente_photos_frb.a',
'-lc++',
'-Wl,-u,_frb_pde_ffi_dispatcher_primary',
].join(' '),
diff --git a/mobile/apps/photos/rust_builder/linux/CMakeLists.txt b/mobile/apps/photos/rust_builder/linux/CMakeLists.txt
index ce191daf72..ecf7caedc8 100644
--- a/mobile/apps/photos/rust_builder/linux/CMakeLists.txt
+++ b/mobile/apps/photos/rust_builder/linux/CMakeLists.txt
@@ -8,7 +8,7 @@ set(PROJECT_NAME "ente_photos_rust")
project(${PROJECT_NAME} LANGUAGES CXX)
include("../../../../cargokit/cmake/cargokit.cmake")
-apply_cargokit(${PROJECT_NAME} ../../../../../rust/bindings/frb/photos ente_photos_rust "")
+apply_cargokit(${PROJECT_NAME} ../../../../../rust/bindings/frb/photos ente_photos_frb "")
# List of absolute paths to libraries that should be bundled with the plugin.
# This list could contain prebuilt libraries, or libraries created by an
diff --git a/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec b/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
index 15f2610f43..a0b825495e 100644
--- a/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
+++ b/mobile/apps/photos/rust_builder/macos/ente_photos_rust.podspec
@@ -26,17 +26,17 @@ A new Flutter FFI plugin project.
s.script_phase = {
:name => 'Build Rust library',
# First argument is relative path to the `rust` folder, second is name of rust library
- :script => 'sh "$(cd -P "$PODS_TARGET_SRCROOT" && pwd)/../../../../cargokit/build_pod.sh" ../../../../../rust/bindings/frb/photos ente_photos_rust',
+ :script => 'sh "$(cd -P "$PODS_TARGET_SRCROOT" && pwd)/../../../../cargokit/build_pod.sh" ../../../../../rust/bindings/frb/photos ente_photos_frb',
:execution_position => :before_compile,
:input_files => ['${BUILT_PRODUCTS_DIR}/cargokit_phony'],
# Let XCode know that the static library referenced in -force_load below is
# created by this build step.
- :output_files => ["${BUILT_PRODUCTS_DIR}/libente_photos_rust.a"],
+ :output_files => ["${BUILT_PRODUCTS_DIR}/libente_photos_frb.a"],
}
s.pod_target_xcconfig = {
'DEFINES_MODULE' => 'YES',
# ONNX Runtime 1.28 does not publish Apple x86_64 binaries.
'EXCLUDED_ARCHS[sdk=macosx*]' => 'x86_64',
- 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libente_photos_rust.a -lc++',
+ 'OTHER_LDFLAGS' => '-force_load ${BUILT_PRODUCTS_DIR}/libente_photos_frb.a -lc++',
}
end
diff --git a/mobile/apps/photos/rust_builder/windows/CMakeLists.txt b/mobile/apps/photos/rust_builder/windows/CMakeLists.txt
index f4e27cf13d..2e11c2328f 100644
--- a/mobile/apps/photos/rust_builder/windows/CMakeLists.txt
+++ b/mobile/apps/photos/rust_builder/windows/CMakeLists.txt
@@ -9,7 +9,7 @@ set(PROJECT_NAME "ente_photos_rust")
project(${PROJECT_NAME} LANGUAGES CXX)
include("../../../../cargokit/cmake/cargokit.cmake")
-apply_cargokit(${PROJECT_NAME} ../../../../../../../../../rust/bindings/frb/photos ente_photos_rust "")
+apply_cargokit(${PROJECT_NAME} ../../../../../../../../../rust/bindings/frb/photos ente_photos_frb "")
# List of absolute paths to libraries that should be bundled with the plugin.
# This list could contain prebuilt libraries, or libraries created by an
diff --git a/rust/.cargo/config.toml b/rust/.cargo/config.toml
index 02bf10b127..5a696505c5 100644
--- a/rust/.cargo/config.toml
+++ b/rust/.cargo/config.toml
@@ -1,5 +1,5 @@
[alias]
-codegen = ["run", "-p", "codegen", "--"]
+codegen = ["run", "-p", "ente-codegen", "--"]
[env]
# Some targets, like armv7 Android, have no enabled target features, so Cargo
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 107f2aa083..cb6466b29b 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -1283,15 +1283,6 @@ version = "0.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
-[[package]]
-name = "codegen"
-version = "0.0.0"
-dependencies = [
- "camino",
- "flutter_rust_bridge_codegen",
- "uniffi_bindgen",
-]
-
[[package]]
name = "codespan-reporting"
version = "0.13.1"
@@ -2422,7 +2413,7 @@ version = "0.0.0"
dependencies = [
"ente-cast",
"ente-core",
- "ente-uniffi-log",
+ "ente-log-uniffi",
"thiserror 2.0.18",
"uniffi",
]
@@ -2432,10 +2423,51 @@ name = "ente-cast-wasm"
version = "0.0.0"
dependencies = [
"ente-cast",
- "ente-wasm-log",
+ "ente-log-wasm",
"wasm-bindgen",
]
+[[package]]
+name = "ente-cli"
+version = "0.0.1"
+dependencies = [
+ "chrono",
+ "clap",
+ "dialoguer",
+ "dirs 5.0.1",
+ "ente-accounts",
+ "ente-core",
+ "ente-paste",
+ "ente-test-support",
+ "env_logger 0.11.10",
+ "futures",
+ "indicatif",
+ "log",
+ "mockito",
+ "open",
+ "rusqlite",
+ "serde",
+ "serde_json",
+ "sha2 0.11.0",
+ "srp",
+ "thiserror 2.0.18",
+ "tokio",
+ "url",
+ "urlencoding",
+ "uuid",
+ "zeroize",
+ "zip 2.4.2",
+]
+
+[[package]]
+name = "ente-codegen"
+version = "0.0.0"
+dependencies = [
+ "camino",
+ "flutter_rust_bridge_codegen",
+ "uniffi_bindgen",
+]
+
[[package]]
name = "ente-contacts"
version = "0.0.0"
@@ -2487,6 +2519,15 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "ente-core-wasm"
+version = "0.0.0"
+dependencies = [
+ "ente-core",
+ "ente-log-wasm",
+ "wasm-bindgen",
+]
+
[[package]]
name = "ente-ensu"
version = "0.0.0"
@@ -2520,20 +2561,12 @@ version = "0.0.0"
dependencies = [
"ente-assets",
"ente-ensu",
- "ente-uniffi-log",
+ "ente-log-uniffi",
"thiserror 2.0.18",
"uniffi",
"uuid",
]
-[[package]]
-name = "ente-frb-log"
-version = "0.0.0"
-dependencies = [
- "flutter_rust_bridge",
- "log",
-]
-
[[package]]
name = "ente-image"
version = "0.0.0"
@@ -2555,10 +2588,35 @@ dependencies = [
"ente-accounts",
"ente-contacts",
"ente-core",
- "ente-frb-log",
+ "ente-log-frb",
"flutter_rust_bridge",
]
+[[package]]
+name = "ente-log-frb"
+version = "0.0.0"
+dependencies = [
+ "flutter_rust_bridge",
+ "log",
+]
+
+[[package]]
+name = "ente-log-uniffi"
+version = "0.0.0"
+dependencies = [
+ "log",
+]
+
+[[package]]
+name = "ente-log-wasm"
+version = "0.0.0"
+dependencies = [
+ "js-sys",
+ "log",
+ "wasm-bindgen",
+ "web-sys",
+]
+
[[package]]
name = "ente-ml"
version = "0.0.0"
@@ -2611,35 +2669,31 @@ dependencies = [
]
[[package]]
-name = "ente-rs"
-version = "0.0.1"
+name = "ente-photos-frb"
+version = "0.0.0"
dependencies = [
- "chrono",
- "clap",
- "dialoguer",
- "dirs 5.0.1",
"ente-accounts",
+ "ente-cast",
+ "ente-contacts",
"ente-core",
- "ente-paste",
- "ente-test-support",
- "env_logger 0.11.10",
- "futures",
- "indicatif",
+ "ente-image",
+ "ente-log-frb",
+ "ente-ml",
+ "ente-photos",
+ "flutter_rust_bridge",
+]
+
+[[package]]
+name = "ente-photos-napi"
+version = "0.0.0"
+dependencies = [
+ "ente-assets",
+ "ente-ml",
"log",
- "mockito",
- "open",
- "rusqlite",
- "serde",
- "serde_json",
- "sha2 0.11.0",
- "srp",
- "thiserror 2.0.18",
- "tokio",
- "url",
- "urlencoding",
- "uuid",
- "zeroize",
- "zip 2.4.2",
+ "napi",
+ "napi-build",
+ "napi-derive",
+ "ort",
]
[[package]]
@@ -2668,8 +2722,8 @@ name = "ente-space-wasm"
version = "0.0.0"
dependencies = [
"ente-core",
+ "ente-log-wasm",
"ente-space",
- "ente-wasm-log",
"log",
"serde",
"serde-wasm-bindgen",
@@ -2688,13 +2742,6 @@ dependencies = [
"uuid",
]
-[[package]]
-name = "ente-uniffi-log"
-version = "0.0.0"
-dependencies = [
- "log",
-]
-
[[package]]
name = "ente-wasm"
version = "0.0.0"
@@ -2702,7 +2749,7 @@ dependencies = [
"ente-accounts",
"ente-contacts",
"ente-core",
- "ente-wasm-log",
+ "ente-log-wasm",
"js-sys",
"md-5 0.11.0",
"serde",
@@ -2711,53 +2758,6 @@ dependencies = [
"wasm-bindgen-futures",
]
-[[package]]
-name = "ente-wasm-core"
-version = "0.0.0"
-dependencies = [
- "ente-core",
- "ente-wasm-log",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "ente-wasm-log"
-version = "0.0.0"
-dependencies = [
- "js-sys",
- "log",
- "wasm-bindgen",
- "web-sys",
-]
-
-[[package]]
-name = "ente_photos_napi"
-version = "0.0.0"
-dependencies = [
- "ente-assets",
- "ente-ml",
- "log",
- "napi",
- "napi-build",
- "napi-derive",
- "ort",
-]
-
-[[package]]
-name = "ente_photos_rust"
-version = "0.0.0"
-dependencies = [
- "ente-accounts",
- "ente-cast",
- "ente-contacts",
- "ente-core",
- "ente-frb-log",
- "ente-image",
- "ente-ml",
- "ente-photos",
- "flutter_rust_bridge",
-]
-
[[package]]
name = "enum-iterator"
version = "1.5.0"
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index fed3d976e4..dd8d930924 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -37,15 +37,15 @@ ente-cast = { path = "crates/cast" }
ente-contacts = { path = "crates/contacts" }
ente-core = { path = "crates/core" }
ente-ensu = { path = "crates/ensu" }
-ente-frb-log = { path = "bindings/frb/log" }
+ente-log-frb = { path = "bindings/frb/log" }
ente-image = { path = "crates/image" }
ente-ml = { path = "crates/ml" }
ente-paste = { path = "crates/paste" }
ente-photos = { path = "crates/photos" }
ente-space = { path = "crates/space" }
ente-test-support = { path = "crates/test-support" }
-ente-uniffi-log = { path = "bindings/uniffi/log" }
-ente-wasm-log = { path = "bindings/wasm/log" }
+ente-log-uniffi = { path = "bindings/uniffi/log" }
+ente-log-wasm = { path = "bindings/wasm/log" }
flutter_rust_bridge = "=2.12.0"
flutter_rust_bridge_codegen = "=2.12.0"
log = "0.4.29"
diff --git a/rust/README.md b/rust/README.md
index fde9c104ae..067425b207 100644
--- a/rust/README.md
+++ b/rust/README.md
@@ -10,7 +10,7 @@ cargo clippy # Lint
cargo build # Build
cargo test # Test
-cargo run --bin ente-rs -- --help # Run the Ente Rust CLI
+cargo run --bin ente-cli -- --help # Run the Ente Rust CLI
```
CI runs with `RUSTFLAGS="-D warnings"` so warnings will cause checks to fail.
diff --git a/rust/apps/cli/Cargo.toml b/rust/apps/cli/Cargo.toml
index 149bddc5c9..44d0c3bd63 100644
--- a/rust/apps/cli/Cargo.toml
+++ b/rust/apps/cli/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente-rs"
+name = "ente-cli"
version = "0.0.1"
edition = "2024"
description = "Command-line interface for Ente"
diff --git a/rust/apps/cli/README.md b/rust/apps/cli/README.md
index 060cc1b0a0..7c5e7dbf99 100644
--- a/rust/apps/cli/README.md
+++ b/rust/apps/cli/README.md
@@ -3,16 +3,16 @@ WIP Ente Rust CLI.
## Development
```sh
-cargo run --bin ente-rs -- --help
+cargo run --bin ente-cli -- --help
```
## Integration tests
The integration tests run against a live Museum spun up by
[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`
+are gated behind the `museum` Cargo feature, so a plain `cargo test -p ente-cli`
skips them. To run them:
```sh
-cargo test -p ente-rs --features museum
+cargo test -p ente-cli --features museum
```
diff --git a/rust/apps/cli/src/api/client.rs b/rust/apps/cli/src/api/client.rs
index 1de3628c22..dcab4e13e9 100644
--- a/rust/apps/cli/src/api/client.rs
+++ b/rust/apps/cli/src/api/client.rs
@@ -4,7 +4,7 @@ use ente_core::http::{self, Api, ApiConfig, Auth, Http, RetryProfile};
use ente_core::urls::PRODUCTION_API_ORIGIN;
use std::sync::RwLock;
-pub(crate) const USER_AGENT: &str = concat!("ente-rs/", env!("CARGO_PKG_VERSION"));
+pub(crate) const USER_AGENT: &str = concat!("ente-cli/", env!("CARGO_PKG_VERSION"));
const FILES_ORIGIN: &str = "https://files.ente.com";
const THUMBNAILS_ORIGIN: &str = "https://thumbnails.ente.com";
diff --git a/rust/apps/cli/src/commands/export.rs b/rust/apps/cli/src/commands/export.rs
index d7a8e8a678..8643687f5b 100644
--- a/rust/apps/cli/src/commands/export.rs
+++ b/rust/apps/cli/src/commands/export.rs
@@ -115,7 +115,7 @@ pub async fn run_export(account_email: Option<String>, filter: ExportFilter) ->
};
if accounts.is_empty() {
- println!("No accounts configured. Use 'ente-rs account add' first.");
+ println!("No accounts configured. Use 'ente-cli account add' first.");
return Ok(());
}
diff --git a/rust/apps/cli/src/commands/sync.rs b/rust/apps/cli/src/commands/sync.rs
index affd72bd9f..5ff3714e50 100644
--- a/rust/apps/cli/src/commands/sync.rs
+++ b/rust/apps/cli/src/commands/sync.rs
@@ -36,7 +36,7 @@ pub async fn run_sync(
};
if accounts.is_empty() {
- println!("No accounts configured. Use 'ente-rs account add' first.");
+ println!("No accounts configured. Use 'ente-cli account add' first.");
return Ok(());
}
diff --git a/rust/apps/cli/src/main.rs b/rust/apps/cli/src/main.rs
index 70198a484c..db64834cae 100644
--- a/rust/apps/cli/src/main.rs
+++ b/rust/apps/cli/src/main.rs
@@ -1,5 +1,5 @@
use clap::Parser;
-use ente_rs::{
+use ente_cli::{
Result,
cli::{Cli, Commands},
commands,
@@ -17,7 +17,7 @@ async fn main() {
async fn run() -> Result<()> {
env_logger::init();
- let config_dir = ente_rs::utils::get_cli_config_dir()?;
+ let config_dir = ente_cli::utils::get_cli_config_dir()?;
let db_path = config_dir.join("ente.db");
let storage = Storage::new(&db_path)?;
@@ -25,13 +25,13 @@ async fn run() -> Result<()> {
match cli.command {
Commands::Version => {
- println!("ente-rs version {}", ente_rs::cli::version::VERSION);
+ println!("ente-cli version {}", ente_cli::cli::version::VERSION);
}
Commands::Account(account_cmd) => {
commands::account::handle_account_command(account_cmd, &storage).await?;
}
Commands::Export(export_cmd) => {
- use ente_rs::models::filter::ExportFilter;
+ use ente_cli::models::filter::ExportFilter;
let filter = ExportFilter {
include_shared: export_cmd.shared,
diff --git a/rust/apps/cli/tests/support/cli.rs b/rust/apps/cli/tests/support/cli.rs
index 9716609def..4db183096e 100644
--- a/rust/apps/cli/tests/support/cli.rs
+++ b/rust/apps/cli/tests/support/cli.rs
@@ -17,7 +17,7 @@ pub struct Cli {
impl Cli {
pub fn new(config_dir: PathBuf) -> Self {
Self {
- bin: PathBuf::from(env!("CARGO_BIN_EXE_ente-rs")),
+ bin: PathBuf::from(env!("CARGO_BIN_EXE_ente-cli")),
config_dir,
}
}
@@ -50,7 +50,7 @@ impl Cli {
child
.stdin
.take()
- .expect("ente-rs stdin should be piped")
+ .expect("ente-cli stdin should be piped")
.write_all(stdin.as_bytes())?;
Ok(child.wait_with_output()?)
@@ -72,7 +72,7 @@ fn output_stdout(args: &[&str], output: Output) -> TestResult<String> {
Ok(String::from_utf8(output.stdout)?)
} else {
Err(format!(
- "ente-rs {} failed\nstatus: {}\nstdout:\n{}\nstderr:\n{}",
+ "ente-cli {} failed\nstatus: {}\nstdout:\n{}\nstderr:\n{}",
args.join(" "),
output.status,
String::from_utf8_lossy(&output.stdout),
diff --git a/rust/apps/codegen/Cargo.toml b/rust/apps/codegen/Cargo.toml
index f310be4fab..bfe91808c1 100644
--- a/rust/apps/codegen/Cargo.toml
+++ b/rust/apps/codegen/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "codegen"
+name = "ente-codegen"
edition = "2024"
[dependencies]
diff --git a/rust/apps/codegen/src/main.rs b/rust/apps/codegen/src/main.rs
index 1bcd982255..69ae7f0791 100644
--- a/rust/apps/codegen/src/main.rs
+++ b/rust/apps/codegen/src/main.rs
@@ -234,7 +234,7 @@ fn generate_napi() -> Result<(), DynError> {
.arg("check")
.arg("--locked")
.arg("-p")
- .arg("ente_photos_napi")
+ .arg("ente-photos-napi")
.arg("--target-dir")
.arg(target_dir()?)
.env("NAPI_TYPE_DEF_TMP_FOLDER", &type_def_dir)
@@ -297,12 +297,12 @@ fn format_frb_bindings(target: FrbTarget) -> Result<(), DynError> {
FrbTarget::All => {
command
.arg("-p")
- .arg("ente_photos_rust")
+ .arg("ente-photos-frb")
.arg("-p")
.arg("ente-locker-frb");
}
FrbTarget::Photos => {
- command.arg("-p").arg("ente_photos_rust");
+ command.arg("-p").arg("ente-photos-frb");
}
FrbTarget::Locker => {
command.arg("-p").arg("ente-locker-frb");
diff --git a/rust/bindings/frb/locker/Cargo.toml b/rust/bindings/frb/locker/Cargo.toml
index dffb9ce2a9..320c4f3cca 100644
--- a/rust/bindings/frb/locker/Cargo.toml
+++ b/rust/bindings/frb/locker/Cargo.toml
@@ -9,7 +9,7 @@ crate-type = ["cdylib", "staticlib"]
ente-accounts.workspace = true
ente-contacts.workspace = true
ente-core.workspace = true
-ente-frb-log.workspace = true
+ente-log-frb.workspace = true
flutter_rust_bridge.workspace = true
[lints.rust]
diff --git a/rust/bindings/frb/locker/src/api/log.rs b/rust/bindings/frb/locker/src/api/log.rs
index d7dc13d971..2143ae372b 100644
--- a/rust/bindings/frb/locker/src/api/log.rs
+++ b/rust/bindings/frb/locker/src/api/log.rs
@@ -1 +1 @@
-ente_frb_log::setup!(crate::frb_generated::StreamSink);
+ente_log_frb::setup!(crate::frb_generated::StreamSink);
diff --git a/rust/bindings/frb/log/Cargo.toml b/rust/bindings/frb/log/Cargo.toml
index 185ab7b998..b83a150cd5 100644
--- a/rust/bindings/frb/log/Cargo.toml
+++ b/rust/bindings/frb/log/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente-frb-log"
+name = "ente-log-frb"
edition = "2024"
[dependencies]
diff --git a/rust/bindings/frb/photos/Cargo.toml b/rust/bindings/frb/photos/Cargo.toml
index e8efeb5a35..5f40d2f2dc 100644
--- a/rust/bindings/frb/photos/Cargo.toml
+++ b/rust/bindings/frb/photos/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente_photos_rust"
+name = "ente-photos-frb"
edition = "2024"
[lib]
@@ -10,7 +10,7 @@ ente-accounts.workspace = true
ente-cast.workspace = true
ente-contacts.workspace = true
ente-core.workspace = true
-ente-frb-log.workspace = true
+ente-log-frb.workspace = true
ente-image.workspace = true
ente-ml = { workspace = true, features = ["usearch"] }
ente-photos.workspace = true
diff --git a/rust/bindings/frb/photos/src/api/log.rs b/rust/bindings/frb/photos/src/api/log.rs
index d7dc13d971..2143ae372b 100644
--- a/rust/bindings/frb/photos/src/api/log.rs
+++ b/rust/bindings/frb/photos/src/api/log.rs
@@ -1 +1 @@
-ente_frb_log::setup!(crate::frb_generated::StreamSink);
+ente_log_frb::setup!(crate::frb_generated::StreamSink);
diff --git a/rust/bindings/napi/photos/Cargo.toml b/rust/bindings/napi/photos/Cargo.toml
index ed353a86c8..b8bd63b68c 100644
--- a/rust/bindings/napi/photos/Cargo.toml
+++ b/rust/bindings/napi/photos/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente_photos_napi"
+name = "ente-photos-napi"
edition = "2024"
[lib]
diff --git a/rust/bindings/uniffi/cast/Cargo.toml b/rust/bindings/uniffi/cast/Cargo.toml
index 02e018e044..f369c0d38b 100644
--- a/rust/bindings/uniffi/cast/Cargo.toml
+++ b/rust/bindings/uniffi/cast/Cargo.toml
@@ -9,6 +9,6 @@ crate-type = ["staticlib", "cdylib"]
[dependencies]
ente-cast.workspace = true
ente-core.workspace = true
-ente-uniffi-log.workspace = true
+ente-log-uniffi.workspace = true
thiserror.workspace = true
uniffi.workspace = true
diff --git a/rust/bindings/uniffi/cast/src/log.rs b/rust/bindings/uniffi/cast/src/log.rs
index d982f97e49..6aeacf4522 100644
--- a/rust/bindings/uniffi/cast/src/log.rs
+++ b/rust/bindings/uniffi/cast/src/log.rs
@@ -1 +1 @@
-ente_uniffi_log::setup!();
+ente_log_uniffi::setup!();
diff --git a/rust/bindings/uniffi/ensu/Cargo.toml b/rust/bindings/uniffi/ensu/Cargo.toml
index d4e718e951..5a5b235d05 100644
--- a/rust/bindings/uniffi/ensu/Cargo.toml
+++ b/rust/bindings/uniffi/ensu/Cargo.toml
@@ -9,7 +9,7 @@ crate-type = ["staticlib", "cdylib"]
[dependencies]
ente-assets.workspace = true
ente-ensu = { workspace = true, features = ["transcription"] }
-ente-uniffi-log.workspace = true
+ente-log-uniffi.workspace = true
thiserror.workspace = true
uniffi = { workspace = true, features = ["tokio"] }
uuid = { version = "1" }
diff --git a/rust/bindings/uniffi/ensu/src/log.rs b/rust/bindings/uniffi/ensu/src/log.rs
index d982f97e49..6aeacf4522 100644
--- a/rust/bindings/uniffi/ensu/src/log.rs
+++ b/rust/bindings/uniffi/ensu/src/log.rs
@@ -1 +1 @@
-ente_uniffi_log::setup!();
+ente_log_uniffi::setup!();
diff --git a/rust/bindings/uniffi/log/Cargo.toml b/rust/bindings/uniffi/log/Cargo.toml
index bf656b8cde..7180ede48e 100644
--- a/rust/bindings/uniffi/log/Cargo.toml
+++ b/rust/bindings/uniffi/log/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente-uniffi-log"
+name = "ente-log-uniffi"
edition = "2024"
[dependencies]
diff --git a/rust/bindings/wasm/cast/Cargo.toml b/rust/bindings/wasm/cast/Cargo.toml
index 5ea2c9ba61..e8c6ea1b4b 100644
--- a/rust/bindings/wasm/cast/Cargo.toml
+++ b/rust/bindings/wasm/cast/Cargo.toml
@@ -7,5 +7,5 @@ crate-type = ["cdylib"]
[dependencies]
ente-cast.workspace = true
-ente-wasm-log.workspace = true
+ente-log-wasm.workspace = true
wasm-bindgen.workspace = true
diff --git a/rust/bindings/wasm/cast/src/lib.rs b/rust/bindings/wasm/cast/src/lib.rs
index f2f631e41e..1be3ccd443 100644
--- a/rust/bindings/wasm/cast/src/lib.rs
+++ b/rust/bindings/wasm/cast/src/lib.rs
@@ -1,7 +1,7 @@
use ente_cast::ReceiverCredentials;
use wasm_bindgen::prelude::*;
-use ente_wasm_log as _;
+use ente_log_wasm as _;
#[wasm_bindgen]
pub struct CastReceiver {
diff --git a/rust/bindings/wasm/core/Cargo.toml b/rust/bindings/wasm/core/Cargo.toml
index 21ed1fdacb..9a44c3dbab 100644
--- a/rust/bindings/wasm/core/Cargo.toml
+++ b/rust/bindings/wasm/core/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente-wasm-core"
+name = "ente-core-wasm"
edition = "2024"
[lib]
@@ -7,5 +7,5 @@ crate-type = ["cdylib"]
[dependencies]
ente-core = { workspace = true }
-ente-wasm-log.workspace = true
+ente-log-wasm.workspace = true
wasm-bindgen.workspace = true
diff --git a/rust/bindings/wasm/core/src/lib.rs b/rust/bindings/wasm/core/src/lib.rs
index f1dc08c05f..a16a8449fb 100644
--- a/rust/bindings/wasm/core/src/lib.rs
+++ b/rust/bindings/wasm/core/src/lib.rs
@@ -1,3 +1,3 @@
-use ente_wasm_log as _;
+use ente_log_wasm as _;
mod crypto;
diff --git a/rust/bindings/wasm/ente-wasm/Cargo.toml b/rust/bindings/wasm/ente-wasm/Cargo.toml
index f0f35e93c7..479ff34827 100644
--- a/rust/bindings/wasm/ente-wasm/Cargo.toml
+++ b/rust/bindings/wasm/ente-wasm/Cargo.toml
@@ -9,7 +9,7 @@ crate-type = ["cdylib"]
ente-accounts.workspace = true
ente-contacts.workspace = true
ente-core.workspace = true
-ente-wasm-log.workspace = true
+ente-log-wasm.workspace = true
js-sys = "0.3"
md-5.workspace = true
serde.workspace = true
diff --git a/rust/bindings/wasm/ente-wasm/src/lib.rs b/rust/bindings/wasm/ente-wasm/src/lib.rs
index 34ccaa393f..bb619bef6d 100644
--- a/rust/bindings/wasm/ente-wasm/src/lib.rs
+++ b/rust/bindings/wasm/ente-wasm/src/lib.rs
@@ -1,4 +1,4 @@
-use ente_wasm_log as _;
+use ente_log_wasm as _;
mod auth;
mod contacts;
diff --git a/rust/bindings/wasm/log/Cargo.toml b/rust/bindings/wasm/log/Cargo.toml
index 2f28bfe2ef..41d4f2f1fa 100644
--- a/rust/bindings/wasm/log/Cargo.toml
+++ b/rust/bindings/wasm/log/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente-wasm-log"
+name = "ente-log-wasm"
edition = "2024"
[dependencies]
diff --git a/rust/bindings/wasm/space/Cargo.toml b/rust/bindings/wasm/space/Cargo.toml
index 5ece705833..72bc28b1e8 100644
--- a/rust/bindings/wasm/space/Cargo.toml
+++ b/rust/bindings/wasm/space/Cargo.toml
@@ -8,7 +8,7 @@ crate-type = ["cdylib"]
[dependencies]
ente-core.workspace = true
ente-space.workspace = true
-ente-wasm-log.workspace = true
+ente-log-wasm.workspace = true
log.workspace = true
serde.workspace = true
serde-wasm-bindgen = "0.6"
diff --git a/rust/bindings/wasm/space/src/lib.rs b/rust/bindings/wasm/space/src/lib.rs
index 0bf401d55d..7185fc7cc0 100644
--- a/rust/bindings/wasm/space/src/lib.rs
+++ b/rust/bindings/wasm/space/src/lib.rs
@@ -1,3 +1,3 @@
-use ente_wasm_log as _;
+use ente_log_wasm as _;
mod space;
diff --git a/rust/crates/test-support/README.md b/rust/crates/test-support/README.md
index 4864e0d89d..4e7983fa1e 100644
--- a/rust/crates/test-support/README.md
+++ b/rust/crates/test-support/README.md
@@ -11,5 +11,5 @@ Requires `go` on PATH to build and run Museum. The Postgres binary ([postgresql_
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
+cargo test -p ente-cli --features museum
```
diff --git a/web/packages/wasm-core/load.ts b/web/packages/wasm-core/load.ts
index bedda0f40d..78bb417551 100644
--- a/web/packages/wasm-core/load.ts
+++ b/web/packages/wasm-core/load.ts
@@ -1 +1 @@
-export const loadWasmCore = () => import("./pkg/ente_wasm_core");
+export const loadWasmCore = () => import("./pkg/ente_core_wasm");