Skip to content

Commit 51b8d38

Browse files
committed
wip: refactor to avoid using InstanceState directly in GUI
1 parent 72a50ef commit 51b8d38

46 files changed

Lines changed: 620 additions & 353 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CLAUDE.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Claude Code Guide for Sandpolis
2+
3+
Sandpolis is a Rust-based virtual estate manager that covers:
4+
5+
- Physical devices like servers, desktops, phones, etc
6+
- Purely virtual entities like accounts, EC2 instances, etc
7+
8+
It's comprised of multiple applications:
9+
10+
- Server
11+
- Agent
12+
- "Regular" agent
13+
- "Boot" agent UKI
14+
- Client
15+
- GUI based on Bevy and egui
16+
- TUI based on Ratatui
17+
18+
All of these applications are built from the main `sandpolis` crate (except for
19+
the mobile app) with different feature flags.
20+
21+
Functionality is divided into "layers" which can be enabled/disabled at build
22+
time with Cargo features.
23+
24+
## Database Layer (`sandpolis-database`)
25+
26+
- Database is based on the native_db crate which saves/loads Rust structs
27+
- Data model are defined by structs with `#[data]` macro which automatically get
28+
`_id`, `_revision`, `_creation` fields
29+
30+
## Mobile App (`sandpolis-mobile`)
31+
32+
- Wraps the main `sandpolis` crate and uses the `client-gui` feature with Bevy
33+
34+
Build instructions for Android:
35+
36+
```sh
37+
cargo ndk -t arm64-v8a -o android/app/src/main/jniLibs build --link-libcxx-shared
38+
cd android && ./gradlew assembleDebug
39+
```

Cargo.lock

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 16 additions & 0 deletions
Loading
Lines changed: 18 additions & 0 deletions
Loading
Lines changed: 13 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 19 additions & 0 deletions
Loading
Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)