workspace: move crates under crates
This commit is contained in:
parent
0016bc8cf0
commit
6393fdf3c0
354 changed files with 102 additions and 102 deletions
4
.gitmodules
vendored
4
.gitmodules
vendored
|
|
@ -1,3 +1,3 @@
|
|||
[submodule "toml-config/toml-test"]
|
||||
path = toml-config/toml-test
|
||||
[submodule "crates/toml-config/toml-test"]
|
||||
path = crates/toml-config/toml-test
|
||||
url = https://github.com/mahkoh/toml-tests.git
|
||||
|
|
|
|||
178
Cargo.toml
178
Cargo.toml
|
|
@ -15,53 +15,53 @@ path = "src/main.rs"
|
|||
[workspace]
|
||||
resolver = "3"
|
||||
members = [
|
||||
"jay-config",
|
||||
"jay-config-schema",
|
||||
"geometry",
|
||||
"layout-animation",
|
||||
"formats",
|
||||
"edid",
|
||||
"units",
|
||||
"utils",
|
||||
"criteria",
|
||||
"cmm",
|
||||
"time",
|
||||
"tracy",
|
||||
"async-engine",
|
||||
"io-uring",
|
||||
"bufio",
|
||||
"dbus-core",
|
||||
"xcon",
|
||||
"wire-types",
|
||||
"wire-buf",
|
||||
"tree-types",
|
||||
"eventfd-cache",
|
||||
"wheel",
|
||||
"cpu-worker",
|
||||
"sighand",
|
||||
"pr-caps",
|
||||
"bugs",
|
||||
"logger",
|
||||
"video-types",
|
||||
"output-types",
|
||||
"input-types",
|
||||
"keyboard",
|
||||
"gfx-types",
|
||||
"theme",
|
||||
"clientmem",
|
||||
"allocator",
|
||||
"output-schedule",
|
||||
"drm-feedback",
|
||||
"udmabuf",
|
||||
"damage",
|
||||
"pango",
|
||||
"libinput",
|
||||
"toml-config",
|
||||
"toml-parser",
|
||||
"algorithms",
|
||||
"toml-spec",
|
||||
"wire-to-xml",
|
||||
"xml-to-wire",
|
||||
"crates/jay-config",
|
||||
"crates/jay-config-schema",
|
||||
"crates/geometry",
|
||||
"crates/layout-animation",
|
||||
"crates/formats",
|
||||
"crates/edid",
|
||||
"crates/units",
|
||||
"crates/utils",
|
||||
"crates/criteria",
|
||||
"crates/cmm",
|
||||
"crates/time",
|
||||
"crates/tracy",
|
||||
"crates/async-engine",
|
||||
"crates/io-uring",
|
||||
"crates/bufio",
|
||||
"crates/dbus-core",
|
||||
"crates/xcon",
|
||||
"crates/wire-types",
|
||||
"crates/wire-buf",
|
||||
"crates/tree-types",
|
||||
"crates/eventfd-cache",
|
||||
"crates/wheel",
|
||||
"crates/cpu-worker",
|
||||
"crates/sighand",
|
||||
"crates/pr-caps",
|
||||
"crates/bugs",
|
||||
"crates/logger",
|
||||
"crates/video-types",
|
||||
"crates/output-types",
|
||||
"crates/input-types",
|
||||
"crates/keyboard",
|
||||
"crates/gfx-types",
|
||||
"crates/theme",
|
||||
"crates/clientmem",
|
||||
"crates/allocator",
|
||||
"crates/output-schedule",
|
||||
"crates/drm-feedback",
|
||||
"crates/udmabuf",
|
||||
"crates/damage",
|
||||
"crates/pango",
|
||||
"crates/libinput",
|
||||
"crates/toml-config",
|
||||
"crates/toml-parser",
|
||||
"crates/algorithms",
|
||||
"crates/toml-spec",
|
||||
"crates/wire-to-xml",
|
||||
"crates/xml-to-wire",
|
||||
]
|
||||
|
||||
[profile.release]
|
||||
|
|
@ -72,48 +72,48 @@ debug = "full"
|
|||
panic = "abort"
|
||||
|
||||
[dependencies]
|
||||
jay-config = { version = "1.10.0", path = "jay-config" }
|
||||
jay-toml-config = { version = "0.12.0", path = "toml-config" }
|
||||
jay-algorithms = { version = "0.4.0", path = "algorithms" }
|
||||
jay-geometry = { version = "0.1.0", path = "geometry" }
|
||||
jay-layout-animation = { version = "0.1.0", path = "layout-animation" }
|
||||
jay-formats = { version = "0.1.0", path = "formats" }
|
||||
jay-edid = { version = "0.1.0", path = "edid" }
|
||||
jay-units = { version = "0.1.0", path = "units" }
|
||||
jay-utils = { version = "0.1.0", path = "utils" }
|
||||
jay-criteria = { version = "0.1.0", path = "criteria" }
|
||||
jay-cmm = { version = "0.1.0", path = "cmm" }
|
||||
jay-time = { version = "0.1.0", path = "time" }
|
||||
jay-tracy = { version = "0.1.0", path = "tracy" }
|
||||
jay-async-engine = { version = "0.1.0", path = "async-engine" }
|
||||
jay-io-uring = { version = "0.1.0", path = "io-uring" }
|
||||
jay-bufio = { version = "0.1.0", path = "bufio" }
|
||||
jay-dbus-core = { version = "0.1.0", path = "dbus-core" }
|
||||
jay-xcon = { version = "0.1.0", path = "xcon" }
|
||||
jay-wire-types = { version = "0.1.0", path = "wire-types" }
|
||||
jay-wire-buf = { version = "0.1.0", path = "wire-buf" }
|
||||
jay-tree-types = { version = "0.1.0", path = "tree-types" }
|
||||
jay-eventfd-cache = { version = "0.1.0", path = "eventfd-cache" }
|
||||
jay-wheel = { version = "0.1.0", path = "wheel" }
|
||||
jay-cpu-worker = { version = "0.1.0", path = "cpu-worker" }
|
||||
jay-sighand = { version = "0.1.0", path = "sighand" }
|
||||
jay-pr-caps = { version = "0.1.0", path = "pr-caps" }
|
||||
jay-bugs = { version = "0.1.0", path = "bugs" }
|
||||
jay-logger = { version = "0.1.0", path = "logger" }
|
||||
jay-video-types = { version = "0.1.0", path = "video-types" }
|
||||
jay-output-types = { version = "0.1.0", path = "output-types" }
|
||||
jay-input-types = { version = "0.1.0", path = "input-types" }
|
||||
jay-keyboard = { version = "0.1.0", path = "keyboard" }
|
||||
jay-gfx-types = { version = "0.1.0", path = "gfx-types" }
|
||||
jay-theme = { version = "0.1.0", path = "theme" }
|
||||
jay-clientmem = { version = "0.1.0", path = "clientmem" }
|
||||
jay-allocator = { version = "0.1.0", path = "allocator" }
|
||||
jay-output-schedule = { version = "0.1.0", path = "output-schedule" }
|
||||
jay-drm-feedback = { version = "0.1.0", path = "drm-feedback" }
|
||||
jay-udmabuf = { version = "0.1.0", path = "udmabuf" }
|
||||
jay-damage = { version = "0.1.0", path = "damage" }
|
||||
jay-pango = { version = "0.1.0", path = "pango" }
|
||||
jay-libinput = { version = "0.1.0", path = "libinput" }
|
||||
jay-config = { version = "1.10.0", path = "crates/jay-config" }
|
||||
jay-toml-config = { version = "0.12.0", path = "crates/toml-config" }
|
||||
jay-algorithms = { version = "0.4.0", path = "crates/algorithms" }
|
||||
jay-geometry = { version = "0.1.0", path = "crates/geometry" }
|
||||
jay-layout-animation = { version = "0.1.0", path = "crates/layout-animation" }
|
||||
jay-formats = { version = "0.1.0", path = "crates/formats" }
|
||||
jay-edid = { version = "0.1.0", path = "crates/edid" }
|
||||
jay-units = { version = "0.1.0", path = "crates/units" }
|
||||
jay-utils = { version = "0.1.0", path = "crates/utils" }
|
||||
jay-criteria = { version = "0.1.0", path = "crates/criteria" }
|
||||
jay-cmm = { version = "0.1.0", path = "crates/cmm" }
|
||||
jay-time = { version = "0.1.0", path = "crates/time" }
|
||||
jay-tracy = { version = "0.1.0", path = "crates/tracy" }
|
||||
jay-async-engine = { version = "0.1.0", path = "crates/async-engine" }
|
||||
jay-io-uring = { version = "0.1.0", path = "crates/io-uring" }
|
||||
jay-bufio = { version = "0.1.0", path = "crates/bufio" }
|
||||
jay-dbus-core = { version = "0.1.0", path = "crates/dbus-core" }
|
||||
jay-xcon = { version = "0.1.0", path = "crates/xcon" }
|
||||
jay-wire-types = { version = "0.1.0", path = "crates/wire-types" }
|
||||
jay-wire-buf = { version = "0.1.0", path = "crates/wire-buf" }
|
||||
jay-tree-types = { version = "0.1.0", path = "crates/tree-types" }
|
||||
jay-eventfd-cache = { version = "0.1.0", path = "crates/eventfd-cache" }
|
||||
jay-wheel = { version = "0.1.0", path = "crates/wheel" }
|
||||
jay-cpu-worker = { version = "0.1.0", path = "crates/cpu-worker" }
|
||||
jay-sighand = { version = "0.1.0", path = "crates/sighand" }
|
||||
jay-pr-caps = { version = "0.1.0", path = "crates/pr-caps" }
|
||||
jay-bugs = { version = "0.1.0", path = "crates/bugs" }
|
||||
jay-logger = { version = "0.1.0", path = "crates/logger" }
|
||||
jay-video-types = { version = "0.1.0", path = "crates/video-types" }
|
||||
jay-output-types = { version = "0.1.0", path = "crates/output-types" }
|
||||
jay-input-types = { version = "0.1.0", path = "crates/input-types" }
|
||||
jay-keyboard = { version = "0.1.0", path = "crates/keyboard" }
|
||||
jay-gfx-types = { version = "0.1.0", path = "crates/gfx-types" }
|
||||
jay-theme = { version = "0.1.0", path = "crates/theme" }
|
||||
jay-clientmem = { version = "0.1.0", path = "crates/clientmem" }
|
||||
jay-allocator = { version = "0.1.0", path = "crates/allocator" }
|
||||
jay-output-schedule = { version = "0.1.0", path = "crates/output-schedule" }
|
||||
jay-drm-feedback = { version = "0.1.0", path = "crates/drm-feedback" }
|
||||
jay-udmabuf = { version = "0.1.0", path = "crates/udmabuf" }
|
||||
jay-damage = { version = "0.1.0", path = "crates/damage" }
|
||||
jay-pango = { version = "0.1.0", path = "crates/pango" }
|
||||
jay-libinput = { version = "0.1.0", path = "crates/libinput" }
|
||||
|
||||
uapi = "0.2.13"
|
||||
thiserror = "2.0.11"
|
||||
|
|
|
|||
|
|
@ -27,14 +27,14 @@ The table of contents is `SUMMARY.md`. Key chapter-to-topic mapping:
|
|||
|
||||
| File | What it tells you |
|
||||
|------|-------------------|
|
||||
| `toml-spec/spec/spec.yaml` | **Canonical** TOML config spec: every key, action, match criterion, type |
|
||||
| `toml-config/src/default-config.toml` | Built-in default config (keybindings, startup actions) |
|
||||
| `toml-config/src/config/parsers/action.rs` | Action parser — see which `type` strings are accepted |
|
||||
| `toml-config/src/lib.rs` | Action dispatch — `window_or_seat!` macro shows which actions work in window rules |
|
||||
| `crates/toml-spec/spec/spec.yaml` | **Canonical** TOML config spec: every key, action, match criterion, type |
|
||||
| `crates/toml-config/src/default-config.toml` | Built-in default config (keybindings, startup actions) |
|
||||
| `crates/toml-config/src/config/parsers/action.rs` | Action parser — see which `type` strings are accepted |
|
||||
| `crates/toml-config/src/lib.rs` | Action dispatch — `window_or_seat!` macro shows which actions work in window rules |
|
||||
| `src/config/handler.rs` | Config handler; `update_capabilities` shows capability replacement semantics |
|
||||
| `src/cli/*.rs` | CLI subcommands (clap definitions) |
|
||||
| `src/control_center/cc_*.rs` | Control center pane implementations (verify field names/ordering here) |
|
||||
| `toml-config/src/config/parsers/exec.rs` | Exec parser (string, array, or table forms) |
|
||||
| `crates/toml-config/src/config/parsers/exec.rs` | Exec parser (string, array, or table forms) |
|
||||
|
||||
### Known spec.yaml bugs
|
||||
|
||||
|
|
@ -81,7 +81,7 @@ The table of contents is `SUMMARY.md`. Key chapter-to-topic mapping:
|
|||
- **Definition lists** for two-column term/description. Tables only for 3+ data columns.
|
||||
- **TOML formatting:** multiline with trailing commas, 4-space indent.
|
||||
- **Examples:** practical, not abstract. Link to
|
||||
[spec.generated.md](https://github.com/mahkoh/jay/blob/master/toml-spec/spec/spec.generated.md)
|
||||
[spec.generated.md](https://github.com/mahkoh/jay/blob/master/crates/toml-spec/spec/spec.generated.md)
|
||||
for exhaustive listings.
|
||||
- **Control center docs:** verify field names, ordering, and conditional
|
||||
visibility against `cc_*.rs` source files. Labels must match exactly.
|
||||
|
|
@ -91,10 +91,10 @@ The table of contents is `SUMMARY.md`. Key chapter-to-topic mapping:
|
|||
### Documenting a new action
|
||||
|
||||
1. Read `git diff` for the commit introducing the action. Key files:
|
||||
- `toml-spec/spec/spec.yaml` — spec entry (description, fields, examples)
|
||||
- `toml-config/src/config/parsers/action.rs` — parser (field names, types, defaults)
|
||||
- `toml-config/src/lib.rs` — dispatch (check if `window_or_seat!` is used)
|
||||
- `jay-config/src/input.rs` and/or `jay-config/src/window.rs` — Rust API
|
||||
- `crates/toml-spec/spec/spec.yaml` — spec entry (description, fields, examples)
|
||||
- `crates/toml-config/src/config/parsers/action.rs` — parser (field names, types, defaults)
|
||||
- `crates/toml-config/src/lib.rs` — dispatch (check if `window_or_seat!` is used)
|
||||
- `crates/jay-config/src/input.rs` and/or `crates/jay-config/src/window.rs` — Rust API
|
||||
|
||||
2. Edit `book/src/configuration/shortcuts.md`:
|
||||
- **Simple actions** (no fields): add to the appropriate list in the
|
||||
|
|
@ -110,7 +110,7 @@ The table of contents is `SUMMARY.md`. Key chapter-to-topic mapping:
|
|||
|
||||
### Documenting a new config field
|
||||
|
||||
1. Read `toml-spec/spec/spec.yaml` for the field definition.
|
||||
1. Read `crates/toml-spec/spec/spec.yaml` for the field definition.
|
||||
2. Identify which book chapter covers that config section (see table above).
|
||||
3. Add the field with a definition-list entry or example, matching the
|
||||
existing style of that chapter.
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue