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
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ members = [
"crates/flower-ffi",
"xtask",
]
# The Dioxus widget and its app are workspaces of their own, built by manifest
# (`cargo test --manifest-path crates/flower-dioxus/Cargo.toml`): they are on
# dioxus-native's 0.8 alpha, whose winit beta and wgpu tree nothing here should
# resolve — the split leaf makes for crates/leaf-dioxus. Not members already;
# excluded so a manifest that grows a glob does not take them in.
exclude = ["crates/flower-dioxus", "apps/flower-dioxus"]

[workspace.package]
edition = "2024"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ fig crate (Editor/Document/Value) + fig-json/-yaml/-toml/-zon/-figl
|------|------|------------|
| core | [`crates/flower-core`](crates/flower-core) | the frontend-neutral model — the navigable `Row` tree + path-addressed lossless edits over fig. No UI, no fs. |
| widget | [`crates/flower-ratatui`](crates/flower-ratatui) | the ratatui widget: `draw(frame, &Model, header)` draws the page view, `handle_key(&mut Model, KeyEvent)` drives it and returns an `Outcome` naming what the host must do (quit, save) — the same division as `leaf-ratatui`. |
| widget | [`crates/flower-dioxus`](crates/flower-dioxus) | the **Dioxus-native widget** (`dioxus-native` 0.8 alpha, Blitz on wgpu, no webview): the same page view in a window — two panes, captions, chips, the picker, the footer edit line — with the terminal's keys and a window's (⌘Z, ⌫, ⌥↑/⌥↓), asking a `Host` for Save and the clipboard. A workspace of its own, as leaf's `crates/leaf-dioxus` is. |
| app | [`apps/flower-dioxus`](apps/flower-dioxus) | the Dioxus-native app (binary `flower-dioxus`): the widget in a window, with open (⌘O), save, save as, the zoom and the window title. `cargo run --manifest-path apps/flower-dioxus/Cargo.toml -- config.toml`. |
| binding | [`crates/flower-ffi`](crates/flower-ffi) | the **UniFFI C-ABI binding** — wraps the filesystem-free `Model` so a native Apple app can drive it. The native-Apple peer of the ratatui widget. |
| app | [`crates/flower-tui`](crates/flower-tui) | the terminal app (binary `flower`) — file I/O + event loop. |
| Swift SDK | [`packages/flower-swift`](packages/flower-swift) | the Swift Package (manifest at the repo root, so SwiftPM can resolve it by version). `FlowerPagesUI` is the page view (`FlowerPages`) written against protocols, with **no binding behind it**; `FlowerUI` is `FlowerModel` over the UniFFI `flower-ffi` binding, and the conformances that let the page view render its records. `import FlowerUI` re-exports both. |
Expand Down
3 changes: 3 additions & 0 deletions apps/flower-dioxus/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# A standalone workspace with its own target dir — the root .gitignore's
# `/target` is anchored to the main workspace and does not reach here.
/target
Loading
Loading