Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Project Structure & Module Organization
- `bin/` contains the executable services (e.g., `alisa`, `elisa`, `elizabeth`, `isabel`, `elisheba`), each with its own `src/` and Dockerfiles.
- `lib/` hosts shared crates (e.g., `transport`, `alice`, `xiaomi`, `crypto`) used by the binaries.
- `lib/` hosts shared crates (e.g., `transport`, `alice`, `crypto`) used by the binaries.
- `conf/` holds Docker and deployment configuration (for example, `conf/arm64.Dockerfile`).
- `build/` stores built artifacts copied from Docker images; `target/` is the Cargo build output.

Expand Down
114 changes: 0 additions & 114 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ members = [
"lib/str_derive",
"lib/transport", # MQTT topics and payloads
"lib/roborock", # Roborock Vacuum Cleaner communication protocol
"lib/xiaomi", # Xiaomi Vacuum Cleaner communication protocol (deprecated)
]
2 changes: 1 addition & 1 deletion GEMINI.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This document provides a concise summary of project-specific guidelines for Gemi

## Project Overview
- `bin/`: Executable services (e.g., `alisa`, `elisa`, `elizabeth`, `isabel`, `elisheba`).
- `lib/`: Shared crates (e.g., `transport`, `alice`, `xiaomi`, `crypto`).
- `lib/`: Shared crates (e.g., `transport`, `alice`, `crypto`).
- `conf/`: Configuration files (Docker, MQTT).

## Common Commands
Expand Down
1 change: 0 additions & 1 deletion bin/alisa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down
1 change: 0 additions & 1 deletion bin/alisa/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down
6 changes: 0 additions & 6 deletions bin/elisa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand All @@ -24,7 +23,6 @@ COPY ./lib/crypto/Cargo.toml ./lib/crypto/Cargo.toml
COPY ./lib/str_derive/Cargo.toml ./lib/str_derive/Cargo.toml
COPY ./lib/str_derive/fake_macro.rs ./lib/str_derive/src/lib.rs
COPY ./lib/transport/Cargo.toml ./lib/transport/Cargo.toml
COPY ./lib/xiaomi/Cargo.toml ./lib/xiaomi/Cargo.toml
COPY ./lib/roborock/Cargo.toml ./lib/roborock/Cargo.toml

COPY ./Cargo.lock ./Cargo.lock
Expand All @@ -35,27 +33,23 @@ RUN cargo build --release \
-p crypto \
-p str_derive \
-p transport \
-p xiaomi \
-p roborock && \
cargo clean --release \
-p elisa \
-p crypto \
-p str_derive \
-p transport \
-p xiaomi \
-p roborock \
--target aarch64-unknown-linux-musl && \
rm ./bin/elisa/src/*.rs \
./lib/crypto/src/*.rs \
./lib/str_derive/src/*.rs \
./lib/transport/src/*.rs \
./lib/xiaomi/src/*.rs \
./lib/roborock/src/*.rs

COPY ./lib/crypto/src ./lib/crypto/src
COPY ./lib/str_derive/src ./lib/str_derive/src
COPY ./lib/transport/src ./lib/transport/src
COPY ./lib/xiaomi/src ./lib/xiaomi/src
COPY ./lib/roborock/src ./lib/roborock/src
COPY ./bin/elisa/src ./bin/elisa/src

Expand Down
8 changes: 1 addition & 7 deletions bin/elisa/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand All @@ -24,7 +23,6 @@ COPY ./lib/crypto/Cargo.toml ./lib/crypto/Cargo.toml
COPY ./lib/str_derive/Cargo.toml ./lib/str_derive/Cargo.toml
COPY ./lib/str_derive/fake_macro.rs ./lib/str_derive/src/lib.rs
COPY ./lib/transport/Cargo.toml ./lib/transport/Cargo.toml
COPY ./lib/xiaomi/Cargo.toml ./lib/xiaomi/Cargo.toml
COPY ./lib/roborock/Cargo.toml ./lib/roborock/Cargo.toml

COPY ./Cargo.lock ./Cargo.lock
Expand All @@ -35,29 +33,25 @@ RUN cargo build \
-p crypto \
-p str_derive \
-p transport \
-p xiaomi \
-p roborock && \
cargo clean \
-p elisa \
-p crypto \
-p str_derive \
-p transport \
-p xiaomi \
-p roborock \
--target aarch64-unknown-linux-musl && \
rm ./bin/elisa/src/*.rs \
./lib/crypto/src/*.rs \
./lib/str_derive/src/*.rs \
./lib/transport/src/*.rs \
./lib/xiaomi/src/*.rs \
./lib/roborock/src/*.rs

COPY ./lib/crypto/src ./lib/crypto/src
COPY ./lib/str_derive/src ./lib/str_derive/src
COPY ./lib/transport/src ./lib/transport/src
COPY ./lib/xiaomi/src ./lib/xiaomi/src
COPY ./lib/roborock/src ./lib/roborock/src
COPY ./bin/elisa/src ./bin/elisa/src

RUN cargo test -p elisa -p crypto -p str_derive -p transport -p xiaomi -p roborock && \
RUN cargo test -p elisa -p crypto -p str_derive -p transport -p roborock && \
rm -rf target/aarch64-unknown-linux-musl/debug/ target/debug/
1 change: 0 additions & 1 deletion bin/elisheba/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down
1 change: 0 additions & 1 deletion bin/elisheba/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down
1 change: 0 additions & 1 deletion bin/elizabeth/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down
1 change: 0 additions & 1 deletion bin/elizabeth/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down
1 change: 0 additions & 1 deletion bin/isabel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down
3 changes: 1 addition & 2 deletions bin/isabel/test.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ RUN USER=rust \
cargo new --lib /home/rust/src/lib/str_derive && \
cargo new --lib /home/rust/src/lib/sonoff && \
cargo new --lib /home/rust/src/lib/transport && \
cargo new --lib /home/rust/src/lib/xiaomi && \
cargo new --lib /home/rust/src/lib/roborock && \
cargo new --bin /home/rust/src/bin/alisa && \
cargo new --bin /home/rust/src/bin/elisa && \
Expand Down Expand Up @@ -54,5 +53,5 @@ COPY ./lib/str_derive/src ./lib/str_derive/src
COPY ./lib/transport/src ./lib/transport/src
COPY ./bin/isabel/src ./bin/isabel/src

RUN cargo test -p elisa -p str_derive -p transport -p xiaomi && \
RUN cargo test -p isabel -p bluetooth -p str_derive -p transport && \
rm -rf target/aarch64-unknown-linux-musl/debug/ target/debug/
31 changes: 0 additions & 31 deletions lib/xiaomi/Cargo.toml

This file was deleted.

Loading