1
0
Fork 0
forked from wry/wry

workspace: move crates under crates

This commit is contained in:
kossLAN 2026-05-29 18:55:59 -04:00
parent 0016bc8cf0
commit 6393fdf3c0
No known key found for this signature in database
354 changed files with 102 additions and 102 deletions

4
.gitmodules vendored
View file

@ -1,3 +1,3 @@
[submodule "toml-config/toml-test"] [submodule "crates/toml-config/toml-test"]
path = toml-config/toml-test path = crates/toml-config/toml-test
url = https://github.com/mahkoh/toml-tests.git url = https://github.com/mahkoh/toml-tests.git

View file

@ -15,53 +15,53 @@ path = "src/main.rs"
[workspace] [workspace]
resolver = "3" resolver = "3"
members = [ members = [
"jay-config", "crates/jay-config",
"jay-config-schema", "crates/jay-config-schema",
"geometry", "crates/geometry",
"layout-animation", "crates/layout-animation",
"formats", "crates/formats",
"edid", "crates/edid",
"units", "crates/units",
"utils", "crates/utils",
"criteria", "crates/criteria",
"cmm", "crates/cmm",
"time", "crates/time",
"tracy", "crates/tracy",
"async-engine", "crates/async-engine",
"io-uring", "crates/io-uring",
"bufio", "crates/bufio",
"dbus-core", "crates/dbus-core",
"xcon", "crates/xcon",
"wire-types", "crates/wire-types",
"wire-buf", "crates/wire-buf",
"tree-types", "crates/tree-types",
"eventfd-cache", "crates/eventfd-cache",
"wheel", "crates/wheel",
"cpu-worker", "crates/cpu-worker",
"sighand", "crates/sighand",
"pr-caps", "crates/pr-caps",
"bugs", "crates/bugs",
"logger", "crates/logger",
"video-types", "crates/video-types",
"output-types", "crates/output-types",
"input-types", "crates/input-types",
"keyboard", "crates/keyboard",
"gfx-types", "crates/gfx-types",
"theme", "crates/theme",
"clientmem", "crates/clientmem",
"allocator", "crates/allocator",
"output-schedule", "crates/output-schedule",
"drm-feedback", "crates/drm-feedback",
"udmabuf", "crates/udmabuf",
"damage", "crates/damage",
"pango", "crates/pango",
"libinput", "crates/libinput",
"toml-config", "crates/toml-config",
"toml-parser", "crates/toml-parser",
"algorithms", "crates/algorithms",
"toml-spec", "crates/toml-spec",
"wire-to-xml", "crates/wire-to-xml",
"xml-to-wire", "crates/xml-to-wire",
] ]
[profile.release] [profile.release]
@ -72,48 +72,48 @@ debug = "full"
panic = "abort" panic = "abort"
[dependencies] [dependencies]
jay-config = { version = "1.10.0", path = "jay-config" } jay-config = { version = "1.10.0", path = "crates/jay-config" }
jay-toml-config = { version = "0.12.0", path = "toml-config" } jay-toml-config = { version = "0.12.0", path = "crates/toml-config" }
jay-algorithms = { version = "0.4.0", path = "algorithms" } jay-algorithms = { version = "0.4.0", path = "crates/algorithms" }
jay-geometry = { version = "0.1.0", path = "geometry" } jay-geometry = { version = "0.1.0", path = "crates/geometry" }
jay-layout-animation = { version = "0.1.0", path = "layout-animation" } jay-layout-animation = { version = "0.1.0", path = "crates/layout-animation" }
jay-formats = { version = "0.1.0", path = "formats" } jay-formats = { version = "0.1.0", path = "crates/formats" }
jay-edid = { version = "0.1.0", path = "edid" } jay-edid = { version = "0.1.0", path = "crates/edid" }
jay-units = { version = "0.1.0", path = "units" } jay-units = { version = "0.1.0", path = "crates/units" }
jay-utils = { version = "0.1.0", path = "utils" } jay-utils = { version = "0.1.0", path = "crates/utils" }
jay-criteria = { version = "0.1.0", path = "criteria" } jay-criteria = { version = "0.1.0", path = "crates/criteria" }
jay-cmm = { version = "0.1.0", path = "cmm" } jay-cmm = { version = "0.1.0", path = "crates/cmm" }
jay-time = { version = "0.1.0", path = "time" } jay-time = { version = "0.1.0", path = "crates/time" }
jay-tracy = { version = "0.1.0", path = "tracy" } jay-tracy = { version = "0.1.0", path = "crates/tracy" }
jay-async-engine = { version = "0.1.0", path = "async-engine" } jay-async-engine = { version = "0.1.0", path = "crates/async-engine" }
jay-io-uring = { version = "0.1.0", path = "io-uring" } jay-io-uring = { version = "0.1.0", path = "crates/io-uring" }
jay-bufio = { version = "0.1.0", path = "bufio" } jay-bufio = { version = "0.1.0", path = "crates/bufio" }
jay-dbus-core = { version = "0.1.0", path = "dbus-core" } jay-dbus-core = { version = "0.1.0", path = "crates/dbus-core" }
jay-xcon = { version = "0.1.0", path = "xcon" } jay-xcon = { version = "0.1.0", path = "crates/xcon" }
jay-wire-types = { version = "0.1.0", path = "wire-types" } jay-wire-types = { version = "0.1.0", path = "crates/wire-types" }
jay-wire-buf = { version = "0.1.0", path = "wire-buf" } jay-wire-buf = { version = "0.1.0", path = "crates/wire-buf" }
jay-tree-types = { version = "0.1.0", path = "tree-types" } jay-tree-types = { version = "0.1.0", path = "crates/tree-types" }
jay-eventfd-cache = { version = "0.1.0", path = "eventfd-cache" } jay-eventfd-cache = { version = "0.1.0", path = "crates/eventfd-cache" }
jay-wheel = { version = "0.1.0", path = "wheel" } jay-wheel = { version = "0.1.0", path = "crates/wheel" }
jay-cpu-worker = { version = "0.1.0", path = "cpu-worker" } jay-cpu-worker = { version = "0.1.0", path = "crates/cpu-worker" }
jay-sighand = { version = "0.1.0", path = "sighand" } jay-sighand = { version = "0.1.0", path = "crates/sighand" }
jay-pr-caps = { version = "0.1.0", path = "pr-caps" } jay-pr-caps = { version = "0.1.0", path = "crates/pr-caps" }
jay-bugs = { version = "0.1.0", path = "bugs" } jay-bugs = { version = "0.1.0", path = "crates/bugs" }
jay-logger = { version = "0.1.0", path = "logger" } jay-logger = { version = "0.1.0", path = "crates/logger" }
jay-video-types = { version = "0.1.0", path = "video-types" } jay-video-types = { version = "0.1.0", path = "crates/video-types" }
jay-output-types = { version = "0.1.0", path = "output-types" } jay-output-types = { version = "0.1.0", path = "crates/output-types" }
jay-input-types = { version = "0.1.0", path = "input-types" } jay-input-types = { version = "0.1.0", path = "crates/input-types" }
jay-keyboard = { version = "0.1.0", path = "keyboard" } jay-keyboard = { version = "0.1.0", path = "crates/keyboard" }
jay-gfx-types = { version = "0.1.0", path = "gfx-types" } jay-gfx-types = { version = "0.1.0", path = "crates/gfx-types" }
jay-theme = { version = "0.1.0", path = "theme" } jay-theme = { version = "0.1.0", path = "crates/theme" }
jay-clientmem = { version = "0.1.0", path = "clientmem" } jay-clientmem = { version = "0.1.0", path = "crates/clientmem" }
jay-allocator = { version = "0.1.0", path = "allocator" } jay-allocator = { version = "0.1.0", path = "crates/allocator" }
jay-output-schedule = { version = "0.1.0", path = "output-schedule" } jay-output-schedule = { version = "0.1.0", path = "crates/output-schedule" }
jay-drm-feedback = { version = "0.1.0", path = "drm-feedback" } jay-drm-feedback = { version = "0.1.0", path = "crates/drm-feedback" }
jay-udmabuf = { version = "0.1.0", path = "udmabuf" } jay-udmabuf = { version = "0.1.0", path = "crates/udmabuf" }
jay-damage = { version = "0.1.0", path = "damage" } jay-damage = { version = "0.1.0", path = "crates/damage" }
jay-pango = { version = "0.1.0", path = "pango" } jay-pango = { version = "0.1.0", path = "crates/pango" }
jay-libinput = { version = "0.1.0", path = "libinput" } jay-libinput = { version = "0.1.0", path = "crates/libinput" }
uapi = "0.2.13" uapi = "0.2.13"
thiserror = "2.0.11" thiserror = "2.0.11"

View file

@ -27,14 +27,14 @@ The table of contents is `SUMMARY.md`. Key chapter-to-topic mapping:
| File | What it tells you | | File | What it tells you |
|------|-------------------| |------|-------------------|
| `toml-spec/spec/spec.yaml` | **Canonical** TOML config spec: every key, action, match criterion, type | | `crates/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) | | `crates/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 | | `crates/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-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/config/handler.rs` | Config handler; `update_capabilities` shows capability replacement semantics |
| `src/cli/*.rs` | CLI subcommands (clap definitions) | | `src/cli/*.rs` | CLI subcommands (clap definitions) |
| `src/control_center/cc_*.rs` | Control center pane implementations (verify field names/ordering here) | | `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 ### 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. - **Definition lists** for two-column term/description. Tables only for 3+ data columns.
- **TOML formatting:** multiline with trailing commas, 4-space indent. - **TOML formatting:** multiline with trailing commas, 4-space indent.
- **Examples:** practical, not abstract. Link to - **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. for exhaustive listings.
- **Control center docs:** verify field names, ordering, and conditional - **Control center docs:** verify field names, ordering, and conditional
visibility against `cc_*.rs` source files. Labels must match exactly. 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 ### Documenting a new action
1. Read `git diff` for the commit introducing the action. Key files: 1. Read `git diff` for the commit introducing the action. Key files:
- `toml-spec/spec/spec.yaml` — spec entry (description, fields, examples) - `crates/toml-spec/spec/spec.yaml` — spec entry (description, fields, examples)
- `toml-config/src/config/parsers/action.rs` — parser (field names, types, defaults) - `crates/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) - `crates/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/jay-config/src/input.rs` and/or `crates/jay-config/src/window.rs` — Rust API
2. Edit `book/src/configuration/shortcuts.md`: 2. Edit `book/src/configuration/shortcuts.md`:
- **Simple actions** (no fields): add to the appropriate list in the - **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 ### 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). 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 3. Add the field with a definition-list entry or example, matching the
existing style of that chapter. existing style of that chapter.

Some files were not shown because too many files have changed in this diff Show more