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
8 changes: 4 additions & 4 deletions ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ spawn the inotify reloader, bind `:8091`, serve until SIGINT/SIGTERM.

```
bigfred-wizard/
├── Cargo.toml # workspace: binary + crates/z21-lan + crates/bigfred-client
├── Cargo.toml # workspace: binary + crates/z21-lan
├── Makefile # web-build, host, musl, test, dev-*
├── README.md # end-user description
├── ARCHITECTURE.md # this file
Expand All @@ -119,7 +119,6 @@ bigfred-wizard/
├── docs/screenshot-main.png
├── .github/workflows/{ci,release}.yml
├── crates/z21-lan/ # Z21 LAN UDP CV / POM packets
├── crates/bigfred-client/ # OAuth drop-in, HTTP proxy, dcc-bus WS, apis (no axum)
├── src/ # Axum daemon
│ ├── main.rs # listen, router, SPA fallback
│ ├── config.rs / config_watch.rs
Expand All @@ -137,7 +136,8 @@ bigfred-wizard/
└── scripts/check-offline-bundle.mjs
```

One binary crate plus `z21-lan` and `bigfred-client`, with an npm frontend compiled into that binary.
One binary crate plus `z21-lan`, with an npm frontend compiled into that binary.
`bigfred-client` comes from [dcc-bigfred/sdk](https://github.com/dcc-bigfred/sdk) (`rust/crates/bigfred-client`, git `main`).

---

Expand All @@ -147,7 +147,7 @@ One binary crate plus `z21-lan` and `bigfred-client`, with an npm frontend compi
|---|---|---|
| **config** | `bigfred-wizard.json` + `.example` seed, `PublicConfig` (no PSK / no OAuth secret), builtin redirect URIs, `BigFredConfig` snapshot | filesystem |
| **config_watch** | inotify on the config directory, 300 ms debounce, ignore `.example` / editor junk | inotify thread |
| **bigfred-client** | OAuth drop-in + token exchange, HTTP forward, dcc-bus WS (programming + drive), `apis::verify_pin`. Owns wire types (`Ack`, `CvEntry`, `Status`) | HTTP / WS / fs |
| **bigfred-client** | Git dep on [dcc-bigfred/sdk](https://github.com/dcc-bigfred/sdk) (`rust/crates/bigfred-client`). OAuth drop-in + token exchange, HTTP forward, dcc-bus WS (programming + drive), `apis::verify_pin`. Owns wire types (`Ack`, `CvEntry`, `Status`) | HTTP / WS / fs |
| **bigfred/** | Axum wrappers: `oauth::token`, `pin::verify_pin`, `proxy::proxy`; `From<bigfred_client::Error> for ApiError` | via bigfred-client |
| **loco_programming** | `LocoProgrammer` trait; `DccBusProgrammer` and `Z21Programmer`; `Hub::select` from live `locoProgramming.mode` | WS or UDP |
| **programming_api** | HTTP face of CV/address/F2 pulse; SPA never speaks WS | via loco_programming / bigfred-client |
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "MIT"
publish = false

[workspace]
members = [".", "crates/z21-lan", "crates/bigfred-client"]
members = [".", "crates/z21-lan"]

[[bin]]
name = "bigfred-wizard"
Expand Down Expand Up @@ -36,7 +36,7 @@ qrcode = { version = "0.14.1", default-features = false, features = ["svg"] }
# Wire types for the wireless-programmer Unix socket (sibling repo).
wp-proto = { path = "../wireless-programmer/crates/wp-proto" }
z21-lan = { path = "crates/z21-lan" }
bigfred-client = { path = "crates/bigfred-client" }
bigfred-client = { git = "https://github.com/dcc-bigfred/sdk.git", branch = "main" }

[profile.release]
lto = true
Expand Down
26 changes: 0 additions & 26 deletions crates/bigfred-client/Cargo.toml

This file was deleted.

5 changes: 0 additions & 5 deletions crates/bigfred-client/src/apis/mod.rs

This file was deleted.

65 changes: 0 additions & 65 deletions crates/bigfred-client/src/apis/pin.rs

This file was deleted.

47 changes: 0 additions & 47 deletions crates/bigfred-client/src/config.rs

This file was deleted.

Loading
Loading