├── .github └── workflows │ ├── build_n_test.yml │ └── clippy-check.yml ├── .gitignore ├── .gitmodules ├── .vscode ├── extensions.json └── settings.json ├── CODE_OF_CONDUCT.md ├── COPYRIGHT.md ├── Cargo.lock ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── build.rs ├── gravylib_helpers ├── Cargo.toml └── src │ └── lib.rs ├── gravylib_macros ├── Cargo.toml └── src │ └── lib.rs ├── rust-toolchain └── src ├── graphics.rs └── lib.rs /.github/workflows/build_n_test.yml: -------------------------------------------------------------------------------- 1 | name: Build & Test 2 | 3 | on: 4 | push: 5 | branches: [master] 6 | pull_request: 7 | branches: [master] 8 | 9 | env: 10 | CARGO_TERM_COLOR: always 11 | 12 | jobs: 13 | build: 14 | runs-on: ubuntu-latest 15 | 16 | steps: 17 | - uses: actions/checkout@v4 18 | - name: Build 19 | run: cargo build -vv 20 | - name: Run tests 21 | run: cargo test -vv 22 | -------------------------------------------------------------------------------- /.github/workflows/clippy-check.yml: -------------------------------------------------------------------------------- 1 | on: push 2 | name: Clippy check 3 | 4 | # Make sure CI fails on all warnings, including Clippy lints 5 | env: 6 | RUSTFLAGS: "-Dwarnings" 7 | 8 | jobs: 9 | clippy_check: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v4 13 | - name: Build 14 | run: cargo build 15 | - name: Install Clippy 16 | run: rustup component add clippy --toolchain nightly-2023-05-27-x86_64-unknown-linux-gnu 17 | - name: Run Clippy 18 | run: cargo clippy --all-targets --all-features 19 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "gravylib_example"] 2 | path = gravylib_example 3 | url = https://github.com/srclabs/gravylib_example 4 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- 1 | { 2 | "recommendations": [ 3 | "Swellaby.rust-pack", 4 | "JScearcy.rust-doc-viewer", 5 | "Tion.evenbettercomments", 6 | "bierner.github-markdown-preview", 7 | "ozaki.markdown-github-dark", 8 | "me-dutour-mathieu.vscode-github-actions", 9 | "GitHub.github-vscode-theme", 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "rust-analyzer.linkedProjects": [ 3 | "./gravylib_helpers/Cargo.toml", 4 | "./gravylib_macros/Cargo.toml", 5 | ], 6 | "evenbettercomments.tags": [ 7 | { 8 | "tag": "!!", 9 | "aliases": [ 10 | "Issue", 11 | "Problem", 12 | "Bug", 13 | "Panic", 14 | "Error", 15 | "Danger", 16 | "Broken" 17 | ], 18 | "color": "#FF2D00", 19 | "overline": false, 20 | "strikethrough": false, 21 | "underline": false, 22 | "backgroundColor": "transparent", 23 | "bold": true, 24 | "italic": false 25 | }, 26 | { 27 | "tag": "HACK", 28 | "aliases": ["Ugly", "Temp", "Dirty", "Quick", "Hotfix", "Temporary"], 29 | "color": "#FF2D00", 30 | "overline": false, 31 | "strikethrough": false, 32 | "underline": false, 33 | "backgroundColor": "transparent", 34 | "bold": false, 35 | "italic": false 36 | }, 37 | { 38 | "tag": "??", 39 | "aliases": ["Idea", "Find", "Research"], 40 | "color": "#3498DB", 41 | "overline": false, 42 | "strikethrough": false, 43 | "underline": false, 44 | "backgroundColor": "transparent", 45 | "bold": false, 46 | "italic": false 47 | }, 48 | { 49 | "tag": "NOTE", 50 | "aliases": ["Notice", "Look", "Info", "Information", "Tip"], 51 | "color": "#3498DB", 52 | "overline": false, 53 | "strikethrough": false, 54 | "underline": false, 55 | "backgroundColor": "transparent", 56 | "bold": false, 57 | "italic": true 58 | }, 59 | { 60 | "tag": "//", 61 | "aliases": ["-----"], 62 | "color": "#474747", 63 | "overline": false, 64 | "strikethrough": true, 65 | "underline": false, 66 | "backgroundColor": "transparent", 67 | "bold": false, 68 | "italic": false 69 | }, 70 | { 71 | "tag": "TODO", 72 | "aliases": ["Fixme", "Address", "Fix"], 73 | "color": "#FF8C00", 74 | "overline": false, 75 | "strikethrough": false, 76 | "underline": false, 77 | "backgroundColor": "transparent", 78 | "bold": false, 79 | "italic": false 80 | }, 81 | { 82 | "tag": "WARN", 83 | "aliases": ["Warning"], 84 | "color": "#FF8C00", 85 | "overline": false, 86 | "strikethrough": false, 87 | "underline": false, 88 | "backgroundColor": "transparent", 89 | "bold": true, 90 | "italic": false 91 | }, 92 | { 93 | "tag": "**", 94 | "aliases": [ 95 | "Important", 96 | "Label", 97 | "Key", 98 | "Highlight", 99 | "Begin", 100 | "End", 101 | "Start", 102 | "Stop", 103 | "~~~~~" 104 | ], 105 | "color": "#98C379", 106 | "overline": false, 107 | "strikethrough": false, 108 | "underline": false, 109 | "backgroundColor": "transparent", 110 | "bold": false, 111 | "italic": false 112 | }, 113 | { 114 | "tag": "WIP", 115 | "aliases": [ 116 | "Work in Progress", 117 | "(WIP)", 118 | "Draft", 119 | "Not Ready", 120 | "Not Finished", 121 | "Incomplete", 122 | "Unfinished", 123 | "Not Final" 124 | ], 125 | "color": "#98C379", 126 | "overline": false, 127 | "strikethrough": false, 128 | "underline": false, 129 | "backgroundColor": "transparent", 130 | "bold": false, 131 | "italic": true 132 | } 133 | ] 134 | } 135 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | 2 | # Contributor Covenant Code of Conduct 3 | 4 | ## Our Pledge 5 | 6 | We as members, contributors, and leaders pledge to make participation in our 7 | community a harassment-free experience for everyone, regardless of age, body 8 | size, visible or invisible disability, ethnicity, sex characteristics, gender 9 | identity and expression, level of experience, education, socio-economic status, 10 | nationality, personal appearance, race, religion, or sexual identity 11 | and orientation. 12 | 13 | We pledge to act and interact in ways that contribute to an open, welcoming, 14 | diverse, inclusive, and healthy community. 15 | 16 | ## Our Standards 17 | 18 | Examples of behavior that contributes to a positive environment for our 19 | community include: 20 | 21 | * Demonstrating empathy and kindness toward other people 22 | * Being respectful of differing opinions, viewpoints, and experiences 23 | * Giving and gracefully accepting constructive feedback 24 | * Accepting responsibility and apologizing to those affected by our mistakes, 25 | and learning from the experience 26 | * Focusing on what is best not just for us as individuals, but for the 27 | overall community 28 | 29 | Examples of unacceptable behavior include: 30 | 31 | * The use of sexualized language or imagery, and sexual attention or 32 | advances of any kind 33 | * Trolling, insulting or derogatory comments, and personal or political attacks 34 | * Public or private harassment 35 | * Publishing others' private information, such as a physical or email 36 | address, without their explicit permission 37 | * Other conduct which could reasonably be considered inappropriate in a 38 | professional setting 39 | 40 | ## Enforcement Responsibilities 41 | 42 | Community leaders are responsible for clarifying and enforcing our standards of 43 | acceptable behavior and will take appropriate and fair corrective action in 44 | response to any behavior that they deem inappropriate, threatening, offensive, 45 | or harmful. 46 | 47 | Community leaders have the right and responsibility to remove, edit, or reject 48 | comments, commits, code, wiki edits, issues, and other contributions that are 49 | not aligned to this Code of Conduct, and will communicate reasons for moderation 50 | decisions when appropriate. 51 | 52 | ## Scope 53 | 54 | This Code of Conduct applies within all community spaces, and also applies when 55 | an individual is officially representing the community in public spaces. 56 | Examples of representing our community include using an official e-mail address, 57 | posting via an official social media account, or acting as an appointed 58 | representative at an online or offline event. 59 | 60 | ## Enforcement 61 | 62 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 63 | reported to the community leaders responsible for enforcement on the [Official Gravy Discord Server](https://discord.gg/7cBw5KHe6q). 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | [https://www.contributor-covenant.org/version/2/0/code_of_conduct.html][v2.0]. 120 | 121 | Community Impact Guidelines were inspired by 122 | [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. 123 | 124 | For answers to common questions about this code of conduct, see the FAQ at 125 | [https://www.contributor-covenant.org/faq][FAQ]. Translations are available 126 | at [https://www.contributor-covenant.org/translations][translations]. 127 | 128 | [homepage]: https://www.contributor-covenant.org 129 | [v2.0]: https://www.contributor-covenant.org/version/2/0/code_of_conduct.html 130 | [Mozilla CoC]: https://github.com/mozilla/diversity 131 | [FAQ]: https://www.contributor-covenant.org/faq 132 | [translations]: https://www.contributor-covenant.org/translations 133 | -------------------------------------------------------------------------------- /COPYRIGHT.md: -------------------------------------------------------------------------------- 1 | # Licensing Information 2 | 3 | Copyright 2023 Source Labs [[doc@thedocruby.dev](mailto:doc@thedocruby.dev)]. 4 | 5 | Copyrights in this project are retained by contributors. No copyright assignment 6 | is required to contribute to this project. 7 | 8 | Except as otherwise noted (below and/or in individual files), this project is 9 | licensed under the Apache License, Version 2.0 10 | ([`LICENSE-APACHE`](LICENSE-APACHE) or 11 | http://www.apache.org/licenses/LICENSE-2.0) or the MIT license, 12 | ([`LICENSE-MIT`](LICENSE-MIT) or http://opensource.org/licenses/MIT), at your 13 | option. -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- 1 | # This file is automatically @generated by Cargo. 2 | # It is not intended for manual editing. 3 | version = 3 4 | 5 | [[package]] 6 | name = "ab_glyph" 7 | version = "0.2.22" 8 | source = "registry+https://github.com/rust-lang/crates.io-index" 9 | checksum = "b1061f3ff92c2f65800df1f12fc7b4ff44ee14783104187dd04dfee6f11b0fd2" 10 | dependencies = [ 11 | "ab_glyph_rasterizer", 12 | "owned_ttf_parser", 13 | ] 14 | 15 | [[package]] 16 | name = "ab_glyph_rasterizer" 17 | version = "0.1.8" 18 | source = "registry+https://github.com/rust-lang/crates.io-index" 19 | checksum = "c71b1793ee61086797f5c80b6efa2b8ffa6d5dd703f118545808a7f2e27f7046" 20 | 21 | [[package]] 22 | name = "addr2line" 23 | version = "0.21.0" 24 | source = "registry+https://github.com/rust-lang/crates.io-index" 25 | checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" 26 | dependencies = [ 27 | "gimli", 28 | ] 29 | 30 | [[package]] 31 | name = "adler" 32 | version = "1.0.2" 33 | source = "registry+https://github.com/rust-lang/crates.io-index" 34 | checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" 35 | 36 | [[package]] 37 | name = "ahash" 38 | version = "0.7.6" 39 | source = "registry+https://github.com/rust-lang/crates.io-index" 40 | checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" 41 | dependencies = [ 42 | "getrandom", 43 | "once_cell", 44 | "version_check", 45 | ] 46 | 47 | [[package]] 48 | name = "ahash" 49 | version = "0.8.3" 50 | source = "registry+https://github.com/rust-lang/crates.io-index" 51 | checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" 52 | dependencies = [ 53 | "cfg-if", 54 | "getrandom", 55 | "once_cell", 56 | "version_check", 57 | ] 58 | 59 | [[package]] 60 | name = "aho-corasick" 61 | version = "1.1.2" 62 | source = "registry+https://github.com/rust-lang/crates.io-index" 63 | checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0" 64 | dependencies = [ 65 | "memchr", 66 | ] 67 | 68 | [[package]] 69 | name = "allocator-api2" 70 | version = "0.2.16" 71 | source = "registry+https://github.com/rust-lang/crates.io-index" 72 | checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5" 73 | 74 | [[package]] 75 | name = "android-activity" 76 | version = "0.5.0" 77 | source = "registry+https://github.com/rust-lang/crates.io-index" 78 | checksum = "052ad56e336bcc615a214bffbeca6c181ee9550acec193f0327e0b103b033a4d" 79 | dependencies = [ 80 | "android-properties", 81 | "bitflags 2.4.1", 82 | "cc", 83 | "cesu8", 84 | "jni", 85 | "jni-sys", 86 | "libc", 87 | "log", 88 | "ndk", 89 | "ndk-context", 90 | "ndk-sys", 91 | "num_enum", 92 | "thiserror", 93 | ] 94 | 95 | [[package]] 96 | name = "android-properties" 97 | version = "0.2.2" 98 | source = "registry+https://github.com/rust-lang/crates.io-index" 99 | checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" 100 | 101 | [[package]] 102 | name = "android_system_properties" 103 | version = "0.1.5" 104 | source = "registry+https://github.com/rust-lang/crates.io-index" 105 | checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" 106 | dependencies = [ 107 | "libc", 108 | ] 109 | 110 | [[package]] 111 | name = "ar" 112 | version = "0.9.0" 113 | source = "registry+https://github.com/rust-lang/crates.io-index" 114 | checksum = "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69" 115 | 116 | [[package]] 117 | name = "arrayref" 118 | version = "0.3.7" 119 | source = "registry+https://github.com/rust-lang/crates.io-index" 120 | checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545" 121 | 122 | [[package]] 123 | name = "arrayvec" 124 | version = "0.7.4" 125 | source = "registry+https://github.com/rust-lang/crates.io-index" 126 | checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" 127 | 128 | [[package]] 129 | name = "as-raw-xcb-connection" 130 | version = "1.0.0" 131 | source = "registry+https://github.com/rust-lang/crates.io-index" 132 | checksum = "2d5f312b0a56c5cdf967c0aeb67f6289603354951683bc97ddc595ab974ba9aa" 133 | 134 | [[package]] 135 | name = "ash" 136 | version = "0.37.3+1.3.251" 137 | source = "registry+https://github.com/rust-lang/crates.io-index" 138 | checksum = "39e9c3835d686b0a6084ab4234fcd1b07dbf6e4767dce60874b12356a25ecd4a" 139 | dependencies = [ 140 | "libloading 0.7.4", 141 | ] 142 | 143 | [[package]] 144 | name = "atomic-waker" 145 | version = "1.1.2" 146 | source = "registry+https://github.com/rust-lang/crates.io-index" 147 | checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 148 | 149 | [[package]] 150 | name = "autocfg" 151 | version = "1.1.0" 152 | source = "registry+https://github.com/rust-lang/crates.io-index" 153 | checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" 154 | 155 | [[package]] 156 | name = "backtrace" 157 | version = "0.3.69" 158 | source = "registry+https://github.com/rust-lang/crates.io-index" 159 | checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" 160 | dependencies = [ 161 | "addr2line", 162 | "cc", 163 | "cfg-if", 164 | "libc", 165 | "miniz_oxide", 166 | "object", 167 | "rustc-demangle", 168 | ] 169 | 170 | [[package]] 171 | name = "bit-set" 172 | version = "0.5.3" 173 | source = "registry+https://github.com/rust-lang/crates.io-index" 174 | checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1" 175 | dependencies = [ 176 | "bit-vec", 177 | ] 178 | 179 | [[package]] 180 | name = "bit-vec" 181 | version = "0.6.3" 182 | source = "registry+https://github.com/rust-lang/crates.io-index" 183 | checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb" 184 | 185 | [[package]] 186 | name = "bitflags" 187 | version = "1.3.2" 188 | source = "registry+https://github.com/rust-lang/crates.io-index" 189 | checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 190 | 191 | [[package]] 192 | name = "bitflags" 193 | version = "2.4.1" 194 | source = "registry+https://github.com/rust-lang/crates.io-index" 195 | checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" 196 | 197 | [[package]] 198 | name = "block" 199 | version = "0.1.6" 200 | source = "registry+https://github.com/rust-lang/crates.io-index" 201 | checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" 202 | 203 | [[package]] 204 | name = "block-sys" 205 | version = "0.2.0" 206 | source = "registry+https://github.com/rust-lang/crates.io-index" 207 | checksum = "2dd7cf50912cddc06dc5ea7c08c5e81c1b2c842a70d19def1848d54c586fed92" 208 | dependencies = [ 209 | "objc-sys", 210 | ] 211 | 212 | [[package]] 213 | name = "block2" 214 | version = "0.3.0" 215 | source = "registry+https://github.com/rust-lang/crates.io-index" 216 | checksum = "15b55663a85f33501257357e6421bb33e769d5c9ffb5ba0921c975a123e35e68" 217 | dependencies = [ 218 | "block-sys", 219 | "objc2", 220 | ] 221 | 222 | [[package]] 223 | name = "bumpalo" 224 | version = "3.14.0" 225 | source = "registry+https://github.com/rust-lang/crates.io-index" 226 | checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" 227 | 228 | [[package]] 229 | name = "bytemuck" 230 | version = "1.14.0" 231 | source = "registry+https://github.com/rust-lang/crates.io-index" 232 | checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6" 233 | dependencies = [ 234 | "bytemuck_derive", 235 | ] 236 | 237 | [[package]] 238 | name = "bytemuck_derive" 239 | version = "1.5.0" 240 | source = "registry+https://github.com/rust-lang/crates.io-index" 241 | checksum = "965ab7eb5f8f97d2a083c799f3a1b994fc397b2fe2da5d1da1626ce15a39f2b1" 242 | dependencies = [ 243 | "proc-macro2", 244 | "quote", 245 | "syn 2.0.38", 246 | ] 247 | 248 | [[package]] 249 | name = "byteorder" 250 | version = "1.5.0" 251 | source = "registry+https://github.com/rust-lang/crates.io-index" 252 | checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" 253 | 254 | [[package]] 255 | name = "bytes" 256 | version = "1.5.0" 257 | source = "registry+https://github.com/rust-lang/crates.io-index" 258 | checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" 259 | 260 | [[package]] 261 | name = "calloop" 262 | version = "0.12.3" 263 | source = "registry+https://github.com/rust-lang/crates.io-index" 264 | checksum = "7b50b5a44d59a98c55a9eeb518f39bf7499ba19fd98ee7d22618687f3f10adbf" 265 | dependencies = [ 266 | "bitflags 2.4.1", 267 | "log", 268 | "polling", 269 | "rustix", 270 | "slab", 271 | "thiserror", 272 | ] 273 | 274 | [[package]] 275 | name = "calloop-wayland-source" 276 | version = "0.2.0" 277 | source = "registry+https://github.com/rust-lang/crates.io-index" 278 | checksum = "0f0ea9b9476c7fad82841a8dbb380e2eae480c21910feba80725b46931ed8f02" 279 | dependencies = [ 280 | "calloop", 281 | "rustix", 282 | "wayland-backend", 283 | "wayland-client", 284 | ] 285 | 286 | [[package]] 287 | name = "cc" 288 | version = "1.0.83" 289 | source = "registry+https://github.com/rust-lang/crates.io-index" 290 | checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" 291 | dependencies = [ 292 | "jobserver", 293 | "libc", 294 | ] 295 | 296 | [[package]] 297 | name = "cesu8" 298 | version = "1.1.0" 299 | source = "registry+https://github.com/rust-lang/crates.io-index" 300 | checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" 301 | 302 | [[package]] 303 | name = "cfg-if" 304 | version = "1.0.0" 305 | source = "registry+https://github.com/rust-lang/crates.io-index" 306 | checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" 307 | 308 | [[package]] 309 | name = "cfg_aliases" 310 | version = "0.1.1" 311 | source = "registry+https://github.com/rust-lang/crates.io-index" 312 | checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e" 313 | 314 | [[package]] 315 | name = "codespan-reporting" 316 | version = "0.11.1" 317 | source = "registry+https://github.com/rust-lang/crates.io-index" 318 | checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" 319 | dependencies = [ 320 | "termcolor", 321 | "unicode-width", 322 | ] 323 | 324 | [[package]] 325 | name = "com-rs" 326 | version = "0.2.1" 327 | source = "registry+https://github.com/rust-lang/crates.io-index" 328 | checksum = "bf43edc576402991846b093a7ca18a3477e0ef9c588cde84964b5d3e43016642" 329 | 330 | [[package]] 331 | name = "combine" 332 | version = "4.6.6" 333 | source = "registry+https://github.com/rust-lang/crates.io-index" 334 | checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4" 335 | dependencies = [ 336 | "bytes", 337 | "memchr", 338 | ] 339 | 340 | [[package]] 341 | name = "concurrent-queue" 342 | version = "2.3.0" 343 | source = "registry+https://github.com/rust-lang/crates.io-index" 344 | checksum = "f057a694a54f12365049b0958a1685bb52d567f5593b355fbf685838e873d400" 345 | dependencies = [ 346 | "crossbeam-utils", 347 | ] 348 | 349 | [[package]] 350 | name = "convert_case" 351 | version = "0.4.0" 352 | source = "registry+https://github.com/rust-lang/crates.io-index" 353 | checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" 354 | 355 | [[package]] 356 | name = "core-foundation" 357 | version = "0.9.3" 358 | source = "registry+https://github.com/rust-lang/crates.io-index" 359 | checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146" 360 | dependencies = [ 361 | "core-foundation-sys", 362 | "libc", 363 | ] 364 | 365 | [[package]] 366 | name = "core-foundation-sys" 367 | version = "0.8.4" 368 | source = "registry+https://github.com/rust-lang/crates.io-index" 369 | checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa" 370 | 371 | [[package]] 372 | name = "core-graphics" 373 | version = "0.23.1" 374 | source = "registry+https://github.com/rust-lang/crates.io-index" 375 | checksum = "970a29baf4110c26fedbc7f82107d42c23f7e88e404c4577ed73fe99ff85a212" 376 | dependencies = [ 377 | "bitflags 1.3.2", 378 | "core-foundation", 379 | "core-graphics-types", 380 | "foreign-types", 381 | "libc", 382 | ] 383 | 384 | [[package]] 385 | name = "core-graphics-types" 386 | version = "0.1.2" 387 | source = "registry+https://github.com/rust-lang/crates.io-index" 388 | checksum = "2bb142d41022986c1d8ff29103a1411c8a3dfad3552f87a4f8dc50d61d4f4e33" 389 | dependencies = [ 390 | "bitflags 1.3.2", 391 | "core-foundation", 392 | "libc", 393 | ] 394 | 395 | [[package]] 396 | name = "crossbeam-channel" 397 | version = "0.5.8" 398 | source = "registry+https://github.com/rust-lang/crates.io-index" 399 | checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200" 400 | dependencies = [ 401 | "cfg-if", 402 | "crossbeam-utils", 403 | ] 404 | 405 | [[package]] 406 | name = "crossbeam-utils" 407 | version = "0.8.16" 408 | source = "registry+https://github.com/rust-lang/crates.io-index" 409 | checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294" 410 | dependencies = [ 411 | "cfg-if", 412 | ] 413 | 414 | [[package]] 415 | name = "cursor-icon" 416 | version = "1.1.0" 417 | source = "registry+https://github.com/rust-lang/crates.io-index" 418 | checksum = "96a6ac251f4a2aca6b3f91340350eab87ae57c3f127ffeb585e92bd336717991" 419 | 420 | [[package]] 421 | name = "d3d12" 422 | version = "0.7.0" 423 | source = "registry+https://github.com/rust-lang/crates.io-index" 424 | checksum = "e16e44ab292b1dddfdaf7be62cfd8877df52f2f3fde5858d95bab606be259f20" 425 | dependencies = [ 426 | "bitflags 2.4.1", 427 | "libloading 0.8.1", 428 | "winapi", 429 | ] 430 | 431 | [[package]] 432 | name = "derive_more" 433 | version = "0.99.17" 434 | source = "registry+https://github.com/rust-lang/crates.io-index" 435 | checksum = "4fb810d30a7c1953f91334de7244731fc3f3c10d7fe163338a35b9f640960321" 436 | dependencies = [ 437 | "convert_case", 438 | "proc-macro2", 439 | "quote", 440 | "rustc_version", 441 | "syn 1.0.109", 442 | ] 443 | 444 | [[package]] 445 | name = "dispatch" 446 | version = "0.2.0" 447 | source = "registry+https://github.com/rust-lang/crates.io-index" 448 | checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" 449 | 450 | [[package]] 451 | name = "dlib" 452 | version = "0.5.2" 453 | source = "registry+https://github.com/rust-lang/crates.io-index" 454 | checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412" 455 | dependencies = [ 456 | "libloading 0.8.1", 457 | ] 458 | 459 | [[package]] 460 | name = "downcast-rs" 461 | version = "1.2.0" 462 | source = "registry+https://github.com/rust-lang/crates.io-index" 463 | checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650" 464 | 465 | [[package]] 466 | name = "either" 467 | version = "1.9.0" 468 | source = "registry+https://github.com/rust-lang/crates.io-index" 469 | checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07" 470 | 471 | [[package]] 472 | name = "elsa" 473 | version = "1.9.0" 474 | source = "registry+https://github.com/rust-lang/crates.io-index" 475 | checksum = "714f766f3556b44e7e4776ad133fcc3445a489517c25c704ace411bb14790194" 476 | dependencies = [ 477 | "indexmap 1.9.3", 478 | "stable_deref_trait", 479 | ] 480 | 481 | [[package]] 482 | name = "equivalent" 483 | version = "1.0.1" 484 | source = "registry+https://github.com/rust-lang/crates.io-index" 485 | checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" 486 | 487 | [[package]] 488 | name = "errno" 489 | version = "0.3.5" 490 | source = "registry+https://github.com/rust-lang/crates.io-index" 491 | checksum = "ac3e13f66a2f95e32a39eaa81f6b95d42878ca0e1db0c7543723dfe12557e860" 492 | dependencies = [ 493 | "libc", 494 | "windows-sys 0.48.0", 495 | ] 496 | 497 | [[package]] 498 | name = "fastrand" 499 | version = "2.0.1" 500 | source = "registry+https://github.com/rust-lang/crates.io-index" 501 | checksum = "25cbce373ec4653f1a01a31e8a5e5ec0c622dc27ff9c4e6606eefef5cbbed4a5" 502 | 503 | [[package]] 504 | name = "filetime" 505 | version = "0.2.22" 506 | source = "registry+https://github.com/rust-lang/crates.io-index" 507 | checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0" 508 | dependencies = [ 509 | "cfg-if", 510 | "libc", 511 | "redox_syscall 0.3.5", 512 | "windows-sys 0.48.0", 513 | ] 514 | 515 | [[package]] 516 | name = "fixedbitset" 517 | version = "0.4.2" 518 | source = "registry+https://github.com/rust-lang/crates.io-index" 519 | checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80" 520 | 521 | [[package]] 522 | name = "flume" 523 | version = "0.11.0" 524 | source = "registry+https://github.com/rust-lang/crates.io-index" 525 | checksum = "55ac459de2512911e4b674ce33cf20befaba382d05b62b008afc1c8b57cbf181" 526 | dependencies = [ 527 | "futures-core", 528 | "futures-sink", 529 | "nanorand", 530 | "spin", 531 | ] 532 | 533 | [[package]] 534 | name = "foreign-types" 535 | version = "0.5.0" 536 | source = "registry+https://github.com/rust-lang/crates.io-index" 537 | checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" 538 | dependencies = [ 539 | "foreign-types-macros", 540 | "foreign-types-shared", 541 | ] 542 | 543 | [[package]] 544 | name = "foreign-types-macros" 545 | version = "0.2.3" 546 | source = "registry+https://github.com/rust-lang/crates.io-index" 547 | checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" 548 | dependencies = [ 549 | "proc-macro2", 550 | "quote", 551 | "syn 2.0.38", 552 | ] 553 | 554 | [[package]] 555 | name = "foreign-types-shared" 556 | version = "0.3.1" 557 | source = "registry+https://github.com/rust-lang/crates.io-index" 558 | checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" 559 | 560 | [[package]] 561 | name = "fsevent-sys" 562 | version = "4.1.0" 563 | source = "registry+https://github.com/rust-lang/crates.io-index" 564 | checksum = "76ee7a02da4d231650c7cea31349b889be2f45ddb3ef3032d2ec8185f6313fd2" 565 | dependencies = [ 566 | "libc", 567 | ] 568 | 569 | [[package]] 570 | name = "futures" 571 | version = "0.3.28" 572 | source = "registry+https://github.com/rust-lang/crates.io-index" 573 | checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40" 574 | dependencies = [ 575 | "futures-channel", 576 | "futures-core", 577 | "futures-executor", 578 | "futures-io", 579 | "futures-sink", 580 | "futures-task", 581 | "futures-util", 582 | ] 583 | 584 | [[package]] 585 | name = "futures-channel" 586 | version = "0.3.28" 587 | source = "registry+https://github.com/rust-lang/crates.io-index" 588 | checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" 589 | dependencies = [ 590 | "futures-core", 591 | "futures-sink", 592 | ] 593 | 594 | [[package]] 595 | name = "futures-core" 596 | version = "0.3.28" 597 | source = "registry+https://github.com/rust-lang/crates.io-index" 598 | checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" 599 | 600 | [[package]] 601 | name = "futures-executor" 602 | version = "0.3.28" 603 | source = "registry+https://github.com/rust-lang/crates.io-index" 604 | checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0" 605 | dependencies = [ 606 | "futures-core", 607 | "futures-task", 608 | "futures-util", 609 | ] 610 | 611 | [[package]] 612 | name = "futures-io" 613 | version = "0.3.28" 614 | source = "registry+https://github.com/rust-lang/crates.io-index" 615 | checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964" 616 | 617 | [[package]] 618 | name = "futures-sink" 619 | version = "0.3.28" 620 | source = "registry+https://github.com/rust-lang/crates.io-index" 621 | checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" 622 | 623 | [[package]] 624 | name = "futures-task" 625 | version = "0.3.28" 626 | source = "registry+https://github.com/rust-lang/crates.io-index" 627 | checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" 628 | 629 | [[package]] 630 | name = "futures-util" 631 | version = "0.3.28" 632 | source = "registry+https://github.com/rust-lang/crates.io-index" 633 | checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" 634 | dependencies = [ 635 | "futures-channel", 636 | "futures-core", 637 | "futures-io", 638 | "futures-sink", 639 | "futures-task", 640 | "memchr", 641 | "pin-project-lite", 642 | "pin-utils", 643 | "slab", 644 | ] 645 | 646 | [[package]] 647 | name = "fxhash" 648 | version = "0.2.1" 649 | source = "registry+https://github.com/rust-lang/crates.io-index" 650 | checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" 651 | dependencies = [ 652 | "byteorder", 653 | ] 654 | 655 | [[package]] 656 | name = "gethostname" 657 | version = "0.3.0" 658 | source = "registry+https://github.com/rust-lang/crates.io-index" 659 | checksum = "bb65d4ba3173c56a500b555b532f72c42e8d1fe64962b518897f8959fae2c177" 660 | dependencies = [ 661 | "libc", 662 | "winapi", 663 | ] 664 | 665 | [[package]] 666 | name = "getrandom" 667 | version = "0.2.10" 668 | source = "registry+https://github.com/rust-lang/crates.io-index" 669 | checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427" 670 | dependencies = [ 671 | "cfg-if", 672 | "js-sys", 673 | "libc", 674 | "wasi", 675 | "wasm-bindgen", 676 | ] 677 | 678 | [[package]] 679 | name = "gimli" 680 | version = "0.28.0" 681 | source = "registry+https://github.com/rust-lang/crates.io-index" 682 | checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" 683 | 684 | [[package]] 685 | name = "gl_generator" 686 | version = "0.14.0" 687 | source = "registry+https://github.com/rust-lang/crates.io-index" 688 | checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" 689 | dependencies = [ 690 | "khronos_api", 691 | "log", 692 | "xml-rs", 693 | ] 694 | 695 | [[package]] 696 | name = "glam" 697 | version = "0.24.2" 698 | source = "registry+https://github.com/rust-lang/crates.io-index" 699 | checksum = "b5418c17512bdf42730f9032c74e1ae39afc408745ebb2acf72fbc4691c17945" 700 | dependencies = [ 701 | "libm", 702 | ] 703 | 704 | [[package]] 705 | name = "glow" 706 | version = "0.13.0" 707 | source = "registry+https://github.com/rust-lang/crates.io-index" 708 | checksum = "886c2a30b160c4c6fec8f987430c26b526b7988ca71f664e6a699ddf6f9601e4" 709 | dependencies = [ 710 | "js-sys", 711 | "slotmap", 712 | "wasm-bindgen", 713 | "web-sys", 714 | ] 715 | 716 | [[package]] 717 | name = "glutin_wgl_sys" 718 | version = "0.5.0" 719 | source = "registry+https://github.com/rust-lang/crates.io-index" 720 | checksum = "6c8098adac955faa2d31079b65dc48841251f69efd3ac25477903fc424362ead" 721 | dependencies = [ 722 | "gl_generator", 723 | ] 724 | 725 | [[package]] 726 | name = "gpu-alloc" 727 | version = "0.6.0" 728 | source = "registry+https://github.com/rust-lang/crates.io-index" 729 | checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171" 730 | dependencies = [ 731 | "bitflags 2.4.1", 732 | "gpu-alloc-types", 733 | ] 734 | 735 | [[package]] 736 | name = "gpu-alloc-types" 737 | version = "0.3.0" 738 | source = "registry+https://github.com/rust-lang/crates.io-index" 739 | checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4" 740 | dependencies = [ 741 | "bitflags 2.4.1", 742 | ] 743 | 744 | [[package]] 745 | name = "gpu-allocator" 746 | version = "0.23.0" 747 | source = "registry+https://github.com/rust-lang/crates.io-index" 748 | checksum = "40fe17c8a05d60c38c0a4e5a3c802f2f1ceb66b76c67d96ffb34bef0475a7fad" 749 | dependencies = [ 750 | "backtrace", 751 | "log", 752 | "presser", 753 | "thiserror", 754 | "winapi", 755 | "windows", 756 | ] 757 | 758 | [[package]] 759 | name = "gpu-descriptor" 760 | version = "0.2.4" 761 | source = "registry+https://github.com/rust-lang/crates.io-index" 762 | checksum = "cc11df1ace8e7e564511f53af41f3e42ddc95b56fd07b3f4445d2a6048bc682c" 763 | dependencies = [ 764 | "bitflags 2.4.1", 765 | "gpu-descriptor-types", 766 | "hashbrown 0.14.2", 767 | ] 768 | 769 | [[package]] 770 | name = "gpu-descriptor-types" 771 | version = "0.1.2" 772 | source = "registry+https://github.com/rust-lang/crates.io-index" 773 | checksum = "6bf0b36e6f090b7e1d8a4b49c0cb81c1f8376f72198c65dd3ad9ff3556b8b78c" 774 | dependencies = [ 775 | "bitflags 2.4.1", 776 | ] 777 | 778 | [[package]] 779 | name = "gravylib" 780 | version = "0.1.0-alpha" 781 | dependencies = [ 782 | "bytemuck", 783 | "futures", 784 | "gravylib_helpers", 785 | "gravylib_macros", 786 | "spirv-builder", 787 | "wgpu", 788 | "winit", 789 | ] 790 | 791 | [[package]] 792 | name = "gravylib_helpers" 793 | version = "0.1.0-alpha" 794 | dependencies = [ 795 | "bytemuck", 796 | "gravylib_macros", 797 | "spirv-std", 798 | ] 799 | 800 | [[package]] 801 | name = "gravylib_macros" 802 | version = "0.1.0-alpha" 803 | dependencies = [ 804 | "proc-macro2", 805 | "quote", 806 | ] 807 | 808 | [[package]] 809 | name = "hashbrown" 810 | version = "0.11.2" 811 | source = "registry+https://github.com/rust-lang/crates.io-index" 812 | checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" 813 | dependencies = [ 814 | "ahash 0.7.6", 815 | ] 816 | 817 | [[package]] 818 | name = "hashbrown" 819 | version = "0.12.3" 820 | source = "registry+https://github.com/rust-lang/crates.io-index" 821 | checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" 822 | 823 | [[package]] 824 | name = "hashbrown" 825 | version = "0.14.2" 826 | source = "registry+https://github.com/rust-lang/crates.io-index" 827 | checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156" 828 | dependencies = [ 829 | "ahash 0.8.3", 830 | "allocator-api2", 831 | ] 832 | 833 | [[package]] 834 | name = "hassle-rs" 835 | version = "0.10.0" 836 | source = "registry+https://github.com/rust-lang/crates.io-index" 837 | checksum = "1397650ee315e8891a0df210707f0fc61771b0cc518c3023896064c5407cb3b0" 838 | dependencies = [ 839 | "bitflags 1.3.2", 840 | "com-rs", 841 | "libc", 842 | "libloading 0.7.4", 843 | "thiserror", 844 | "widestring", 845 | "winapi", 846 | ] 847 | 848 | [[package]] 849 | name = "hexf-parse" 850 | version = "0.2.1" 851 | source = "registry+https://github.com/rust-lang/crates.io-index" 852 | checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" 853 | 854 | [[package]] 855 | name = "icrate" 856 | version = "0.0.4" 857 | source = "registry+https://github.com/rust-lang/crates.io-index" 858 | checksum = "99d3aaff8a54577104bafdf686ff18565c3b6903ca5782a2026ef06e2c7aa319" 859 | dependencies = [ 860 | "block2", 861 | "dispatch", 862 | "objc2", 863 | ] 864 | 865 | [[package]] 866 | name = "indexmap" 867 | version = "1.9.3" 868 | source = "registry+https://github.com/rust-lang/crates.io-index" 869 | checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" 870 | dependencies = [ 871 | "autocfg", 872 | "hashbrown 0.12.3", 873 | ] 874 | 875 | [[package]] 876 | name = "indexmap" 877 | version = "2.0.2" 878 | source = "registry+https://github.com/rust-lang/crates.io-index" 879 | checksum = "8adf3ddd720272c6ea8bf59463c04e0f93d0bbf7c5439b691bca2987e0270897" 880 | dependencies = [ 881 | "equivalent", 882 | "hashbrown 0.14.2", 883 | ] 884 | 885 | [[package]] 886 | name = "inotify" 887 | version = "0.9.6" 888 | source = "registry+https://github.com/rust-lang/crates.io-index" 889 | checksum = "f8069d3ec154eb856955c1c0fbffefbf5f3c40a104ec912d4797314c1801abff" 890 | dependencies = [ 891 | "bitflags 1.3.2", 892 | "inotify-sys", 893 | "libc", 894 | ] 895 | 896 | [[package]] 897 | name = "inotify-sys" 898 | version = "0.1.5" 899 | source = "registry+https://github.com/rust-lang/crates.io-index" 900 | checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb" 901 | dependencies = [ 902 | "libc", 903 | ] 904 | 905 | [[package]] 906 | name = "internal-iterator" 907 | version = "0.2.1" 908 | source = "registry+https://github.com/rust-lang/crates.io-index" 909 | checksum = "a668ef46056a63366da9d74f48062da9ece1a27958f2f3704aa6f7421c4433f5" 910 | 911 | [[package]] 912 | name = "itertools" 913 | version = "0.10.5" 914 | source = "registry+https://github.com/rust-lang/crates.io-index" 915 | checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" 916 | dependencies = [ 917 | "either", 918 | ] 919 | 920 | [[package]] 921 | name = "itoa" 922 | version = "1.0.9" 923 | source = "registry+https://github.com/rust-lang/crates.io-index" 924 | checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" 925 | 926 | [[package]] 927 | name = "jni" 928 | version = "0.21.1" 929 | source = "registry+https://github.com/rust-lang/crates.io-index" 930 | checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" 931 | dependencies = [ 932 | "cesu8", 933 | "cfg-if", 934 | "combine", 935 | "jni-sys", 936 | "log", 937 | "thiserror", 938 | "walkdir", 939 | "windows-sys 0.45.0", 940 | ] 941 | 942 | [[package]] 943 | name = "jni-sys" 944 | version = "0.3.0" 945 | source = "registry+https://github.com/rust-lang/crates.io-index" 946 | checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" 947 | 948 | [[package]] 949 | name = "jobserver" 950 | version = "0.1.27" 951 | source = "registry+https://github.com/rust-lang/crates.io-index" 952 | checksum = "8c37f63953c4c63420ed5fd3d6d398c719489b9f872b9fa683262f8edd363c7d" 953 | dependencies = [ 954 | "libc", 955 | ] 956 | 957 | [[package]] 958 | name = "js-sys" 959 | version = "0.3.64" 960 | source = "registry+https://github.com/rust-lang/crates.io-index" 961 | checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" 962 | dependencies = [ 963 | "wasm-bindgen", 964 | ] 965 | 966 | [[package]] 967 | name = "khronos-egl" 968 | version = "6.0.0" 969 | source = "registry+https://github.com/rust-lang/crates.io-index" 970 | checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76" 971 | dependencies = [ 972 | "libc", 973 | "libloading 0.8.1", 974 | "pkg-config", 975 | ] 976 | 977 | [[package]] 978 | name = "khronos_api" 979 | version = "3.1.0" 980 | source = "registry+https://github.com/rust-lang/crates.io-index" 981 | checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" 982 | 983 | [[package]] 984 | name = "kqueue" 985 | version = "1.0.8" 986 | source = "registry+https://github.com/rust-lang/crates.io-index" 987 | checksum = "7447f1ca1b7b563588a205fe93dea8df60fd981423a768bc1c0ded35ed147d0c" 988 | dependencies = [ 989 | "kqueue-sys", 990 | "libc", 991 | ] 992 | 993 | [[package]] 994 | name = "kqueue-sys" 995 | version = "1.0.4" 996 | source = "registry+https://github.com/rust-lang/crates.io-index" 997 | checksum = "ed9625ffda8729b85e45cf04090035ac368927b8cebc34898e7c120f52e4838b" 998 | dependencies = [ 999 | "bitflags 1.3.2", 1000 | "libc", 1001 | ] 1002 | 1003 | [[package]] 1004 | name = "lazy_static" 1005 | version = "1.4.0" 1006 | source = "registry+https://github.com/rust-lang/crates.io-index" 1007 | checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" 1008 | 1009 | [[package]] 1010 | name = "libc" 1011 | version = "0.2.149" 1012 | source = "registry+https://github.com/rust-lang/crates.io-index" 1013 | checksum = "a08173bc88b7955d1b3145aa561539096c421ac8debde8cbc3612ec635fee29b" 1014 | 1015 | [[package]] 1016 | name = "libloading" 1017 | version = "0.7.4" 1018 | source = "registry+https://github.com/rust-lang/crates.io-index" 1019 | checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" 1020 | dependencies = [ 1021 | "cfg-if", 1022 | "winapi", 1023 | ] 1024 | 1025 | [[package]] 1026 | name = "libloading" 1027 | version = "0.8.1" 1028 | source = "registry+https://github.com/rust-lang/crates.io-index" 1029 | checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161" 1030 | dependencies = [ 1031 | "cfg-if", 1032 | "windows-sys 0.48.0", 1033 | ] 1034 | 1035 | [[package]] 1036 | name = "libm" 1037 | version = "0.2.8" 1038 | source = "registry+https://github.com/rust-lang/crates.io-index" 1039 | checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" 1040 | 1041 | [[package]] 1042 | name = "linux-raw-sys" 1043 | version = "0.4.10" 1044 | source = "registry+https://github.com/rust-lang/crates.io-index" 1045 | checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f" 1046 | 1047 | [[package]] 1048 | name = "lock_api" 1049 | version = "0.4.11" 1050 | source = "registry+https://github.com/rust-lang/crates.io-index" 1051 | checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45" 1052 | dependencies = [ 1053 | "autocfg", 1054 | "scopeguard", 1055 | ] 1056 | 1057 | [[package]] 1058 | name = "log" 1059 | version = "0.4.20" 1060 | source = "registry+https://github.com/rust-lang/crates.io-index" 1061 | checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" 1062 | 1063 | [[package]] 1064 | name = "longest-increasing-subsequence" 1065 | version = "0.1.0" 1066 | source = "registry+https://github.com/rust-lang/crates.io-index" 1067 | checksum = "b3bd0dd2cd90571056fdb71f6275fada10131182f84899f4b2a916e565d81d86" 1068 | 1069 | [[package]] 1070 | name = "malloc_buf" 1071 | version = "0.0.6" 1072 | source = "registry+https://github.com/rust-lang/crates.io-index" 1073 | checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" 1074 | dependencies = [ 1075 | "libc", 1076 | ] 1077 | 1078 | [[package]] 1079 | name = "memchr" 1080 | version = "2.6.4" 1081 | source = "registry+https://github.com/rust-lang/crates.io-index" 1082 | checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" 1083 | 1084 | [[package]] 1085 | name = "memmap2" 1086 | version = "0.9.0" 1087 | source = "registry+https://github.com/rust-lang/crates.io-index" 1088 | checksum = "deaba38d7abf1d4cca21cc89e932e542ba2b9258664d2a9ef0e61512039c9375" 1089 | dependencies = [ 1090 | "libc", 1091 | ] 1092 | 1093 | [[package]] 1094 | name = "memoffset" 1095 | version = "0.7.1" 1096 | source = "registry+https://github.com/rust-lang/crates.io-index" 1097 | checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4" 1098 | dependencies = [ 1099 | "autocfg", 1100 | ] 1101 | 1102 | [[package]] 1103 | name = "metal" 1104 | version = "0.27.0" 1105 | source = "registry+https://github.com/rust-lang/crates.io-index" 1106 | checksum = "c43f73953f8cbe511f021b58f18c3ce1c3d1ae13fe953293e13345bf83217f25" 1107 | dependencies = [ 1108 | "bitflags 2.4.1", 1109 | "block", 1110 | "core-graphics-types", 1111 | "foreign-types", 1112 | "log", 1113 | "objc", 1114 | "paste", 1115 | ] 1116 | 1117 | [[package]] 1118 | name = "minimal-lexical" 1119 | version = "0.2.1" 1120 | source = "registry+https://github.com/rust-lang/crates.io-index" 1121 | checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 1122 | 1123 | [[package]] 1124 | name = "miniz_oxide" 1125 | version = "0.7.1" 1126 | source = "registry+https://github.com/rust-lang/crates.io-index" 1127 | checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" 1128 | dependencies = [ 1129 | "adler", 1130 | ] 1131 | 1132 | [[package]] 1133 | name = "mio" 1134 | version = "0.8.8" 1135 | source = "registry+https://github.com/rust-lang/crates.io-index" 1136 | checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" 1137 | dependencies = [ 1138 | "libc", 1139 | "log", 1140 | "wasi", 1141 | "windows-sys 0.48.0", 1142 | ] 1143 | 1144 | [[package]] 1145 | name = "naga" 1146 | version = "0.14.0" 1147 | source = "registry+https://github.com/rust-lang/crates.io-index" 1148 | checksum = "61d829abac9f5230a85d8cc83ec0879b4c09790208ae25b5ea031ef84562e071" 1149 | dependencies = [ 1150 | "bit-set", 1151 | "bitflags 2.4.1", 1152 | "codespan-reporting", 1153 | "hexf-parse", 1154 | "indexmap 2.0.2", 1155 | "log", 1156 | "num-traits", 1157 | "petgraph", 1158 | "rustc-hash", 1159 | "spirv", 1160 | "termcolor", 1161 | "thiserror", 1162 | "unicode-xid", 1163 | ] 1164 | 1165 | [[package]] 1166 | name = "nanorand" 1167 | version = "0.7.0" 1168 | source = "registry+https://github.com/rust-lang/crates.io-index" 1169 | checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3" 1170 | dependencies = [ 1171 | "getrandom", 1172 | ] 1173 | 1174 | [[package]] 1175 | name = "ndk" 1176 | version = "0.8.0" 1177 | source = "registry+https://github.com/rust-lang/crates.io-index" 1178 | checksum = "2076a31b7010b17a38c01907c45b945e8f11495ee4dd588309718901b1f7a5b7" 1179 | dependencies = [ 1180 | "bitflags 2.4.1", 1181 | "jni-sys", 1182 | "log", 1183 | "ndk-sys", 1184 | "num_enum", 1185 | "raw-window-handle 0.5.2", 1186 | "raw-window-handle 0.6.0", 1187 | "thiserror", 1188 | ] 1189 | 1190 | [[package]] 1191 | name = "ndk-context" 1192 | version = "0.1.1" 1193 | source = "registry+https://github.com/rust-lang/crates.io-index" 1194 | checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" 1195 | 1196 | [[package]] 1197 | name = "ndk-sys" 1198 | version = "0.5.0+25.2.9519653" 1199 | source = "registry+https://github.com/rust-lang/crates.io-index" 1200 | checksum = "8c196769dd60fd4f363e11d948139556a344e79d451aeb2fa2fd040738ef7691" 1201 | dependencies = [ 1202 | "jni-sys", 1203 | ] 1204 | 1205 | [[package]] 1206 | name = "nix" 1207 | version = "0.26.4" 1208 | source = "registry+https://github.com/rust-lang/crates.io-index" 1209 | checksum = "598beaf3cc6fdd9a5dfb1630c2800c7acd31df7aaf0f565796fba2b53ca1af1b" 1210 | dependencies = [ 1211 | "bitflags 1.3.2", 1212 | "cfg-if", 1213 | "libc", 1214 | "memoffset", 1215 | ] 1216 | 1217 | [[package]] 1218 | name = "nom" 1219 | version = "7.1.3" 1220 | source = "registry+https://github.com/rust-lang/crates.io-index" 1221 | checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" 1222 | dependencies = [ 1223 | "memchr", 1224 | "minimal-lexical", 1225 | ] 1226 | 1227 | [[package]] 1228 | name = "notify" 1229 | version = "5.2.0" 1230 | source = "registry+https://github.com/rust-lang/crates.io-index" 1231 | checksum = "729f63e1ca555a43fe3efa4f3efdf4801c479da85b432242a7b726f353c88486" 1232 | dependencies = [ 1233 | "bitflags 1.3.2", 1234 | "crossbeam-channel", 1235 | "filetime", 1236 | "fsevent-sys", 1237 | "inotify", 1238 | "kqueue", 1239 | "libc", 1240 | "mio", 1241 | "walkdir", 1242 | "windows-sys 0.45.0", 1243 | ] 1244 | 1245 | [[package]] 1246 | name = "num-traits" 1247 | version = "0.2.17" 1248 | source = "registry+https://github.com/rust-lang/crates.io-index" 1249 | checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" 1250 | dependencies = [ 1251 | "autocfg", 1252 | "libm", 1253 | ] 1254 | 1255 | [[package]] 1256 | name = "num_enum" 1257 | version = "0.7.1" 1258 | source = "registry+https://github.com/rust-lang/crates.io-index" 1259 | checksum = "683751d591e6d81200c39fb0d1032608b77724f34114db54f571ff1317b337c0" 1260 | dependencies = [ 1261 | "num_enum_derive", 1262 | ] 1263 | 1264 | [[package]] 1265 | name = "num_enum_derive" 1266 | version = "0.7.1" 1267 | source = "registry+https://github.com/rust-lang/crates.io-index" 1268 | checksum = "6c11e44798ad209ccdd91fc192f0526a369a01234f7373e1b141c96d7cee4f0e" 1269 | dependencies = [ 1270 | "proc-macro-crate", 1271 | "proc-macro2", 1272 | "quote", 1273 | "syn 2.0.38", 1274 | ] 1275 | 1276 | [[package]] 1277 | name = "objc" 1278 | version = "0.2.7" 1279 | source = "registry+https://github.com/rust-lang/crates.io-index" 1280 | checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" 1281 | dependencies = [ 1282 | "malloc_buf", 1283 | "objc_exception", 1284 | ] 1285 | 1286 | [[package]] 1287 | name = "objc-sys" 1288 | version = "0.3.1" 1289 | source = "registry+https://github.com/rust-lang/crates.io-index" 1290 | checksum = "99e1d07c6eab1ce8b6382b8e3c7246fe117ff3f8b34be065f5ebace6749fe845" 1291 | 1292 | [[package]] 1293 | name = "objc2" 1294 | version = "0.4.1" 1295 | source = "registry+https://github.com/rust-lang/crates.io-index" 1296 | checksum = "559c5a40fdd30eb5e344fbceacf7595a81e242529fb4e21cf5f43fb4f11ff98d" 1297 | dependencies = [ 1298 | "objc-sys", 1299 | "objc2-encode", 1300 | ] 1301 | 1302 | [[package]] 1303 | name = "objc2-encode" 1304 | version = "3.0.0" 1305 | source = "registry+https://github.com/rust-lang/crates.io-index" 1306 | checksum = "d079845b37af429bfe5dfa76e6d087d788031045b25cfc6fd898486fd9847666" 1307 | 1308 | [[package]] 1309 | name = "objc_exception" 1310 | version = "0.1.2" 1311 | source = "registry+https://github.com/rust-lang/crates.io-index" 1312 | checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" 1313 | dependencies = [ 1314 | "cc", 1315 | ] 1316 | 1317 | [[package]] 1318 | name = "object" 1319 | version = "0.32.1" 1320 | source = "registry+https://github.com/rust-lang/crates.io-index" 1321 | checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" 1322 | dependencies = [ 1323 | "memchr", 1324 | ] 1325 | 1326 | [[package]] 1327 | name = "once_cell" 1328 | version = "1.18.0" 1329 | source = "registry+https://github.com/rust-lang/crates.io-index" 1330 | checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" 1331 | 1332 | [[package]] 1333 | name = "orbclient" 1334 | version = "0.3.46" 1335 | source = "registry+https://github.com/rust-lang/crates.io-index" 1336 | checksum = "8378ac0dfbd4e7895f2d2c1f1345cab3836910baf3a300b000d04250f0c8428f" 1337 | dependencies = [ 1338 | "redox_syscall 0.3.5", 1339 | ] 1340 | 1341 | [[package]] 1342 | name = "owned_ttf_parser" 1343 | version = "0.19.0" 1344 | source = "registry+https://github.com/rust-lang/crates.io-index" 1345 | checksum = "706de7e2214113d63a8238d1910463cfce781129a6f263d13fdb09ff64355ba4" 1346 | dependencies = [ 1347 | "ttf-parser", 1348 | ] 1349 | 1350 | [[package]] 1351 | name = "parking_lot" 1352 | version = "0.12.1" 1353 | source = "registry+https://github.com/rust-lang/crates.io-index" 1354 | checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f" 1355 | dependencies = [ 1356 | "lock_api", 1357 | "parking_lot_core", 1358 | ] 1359 | 1360 | [[package]] 1361 | name = "parking_lot_core" 1362 | version = "0.9.9" 1363 | source = "registry+https://github.com/rust-lang/crates.io-index" 1364 | checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e" 1365 | dependencies = [ 1366 | "cfg-if", 1367 | "libc", 1368 | "redox_syscall 0.4.1", 1369 | "smallvec", 1370 | "windows-targets 0.48.5", 1371 | ] 1372 | 1373 | [[package]] 1374 | name = "paste" 1375 | version = "1.0.14" 1376 | source = "registry+https://github.com/rust-lang/crates.io-index" 1377 | checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" 1378 | 1379 | [[package]] 1380 | name = "percent-encoding" 1381 | version = "2.3.0" 1382 | source = "registry+https://github.com/rust-lang/crates.io-index" 1383 | checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" 1384 | 1385 | [[package]] 1386 | name = "petgraph" 1387 | version = "0.6.4" 1388 | source = "registry+https://github.com/rust-lang/crates.io-index" 1389 | checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9" 1390 | dependencies = [ 1391 | "fixedbitset", 1392 | "indexmap 2.0.2", 1393 | ] 1394 | 1395 | [[package]] 1396 | name = "pin-project-lite" 1397 | version = "0.2.13" 1398 | source = "registry+https://github.com/rust-lang/crates.io-index" 1399 | checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" 1400 | 1401 | [[package]] 1402 | name = "pin-utils" 1403 | version = "0.1.0" 1404 | source = "registry+https://github.com/rust-lang/crates.io-index" 1405 | checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" 1406 | 1407 | [[package]] 1408 | name = "pkg-config" 1409 | version = "0.3.27" 1410 | source = "registry+https://github.com/rust-lang/crates.io-index" 1411 | checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964" 1412 | 1413 | [[package]] 1414 | name = "polling" 1415 | version = "3.3.0" 1416 | source = "registry+https://github.com/rust-lang/crates.io-index" 1417 | checksum = "e53b6af1f60f36f8c2ac2aad5459d75a5a9b4be1e8cdd40264f315d78193e531" 1418 | dependencies = [ 1419 | "cfg-if", 1420 | "concurrent-queue", 1421 | "pin-project-lite", 1422 | "rustix", 1423 | "tracing", 1424 | "windows-sys 0.48.0", 1425 | ] 1426 | 1427 | [[package]] 1428 | name = "presser" 1429 | version = "0.3.1" 1430 | source = "registry+https://github.com/rust-lang/crates.io-index" 1431 | checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" 1432 | 1433 | [[package]] 1434 | name = "proc-macro-crate" 1435 | version = "1.3.1" 1436 | source = "registry+https://github.com/rust-lang/crates.io-index" 1437 | checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" 1438 | dependencies = [ 1439 | "once_cell", 1440 | "toml_edit", 1441 | ] 1442 | 1443 | [[package]] 1444 | name = "proc-macro2" 1445 | version = "1.0.69" 1446 | source = "registry+https://github.com/rust-lang/crates.io-index" 1447 | checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da" 1448 | dependencies = [ 1449 | "unicode-ident", 1450 | ] 1451 | 1452 | [[package]] 1453 | name = "profiling" 1454 | version = "1.0.11" 1455 | source = "registry+https://github.com/rust-lang/crates.io-index" 1456 | checksum = "f89dff0959d98c9758c88826cc002e2c3d0b9dfac4139711d1f30de442f1139b" 1457 | 1458 | [[package]] 1459 | name = "quick-xml" 1460 | version = "0.30.0" 1461 | source = "registry+https://github.com/rust-lang/crates.io-index" 1462 | checksum = "eff6510e86862b57b210fd8cbe8ed3f0d7d600b9c2863cd4549a2e033c66e956" 1463 | dependencies = [ 1464 | "memchr", 1465 | ] 1466 | 1467 | [[package]] 1468 | name = "quote" 1469 | version = "1.0.33" 1470 | source = "registry+https://github.com/rust-lang/crates.io-index" 1471 | checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" 1472 | dependencies = [ 1473 | "proc-macro2", 1474 | ] 1475 | 1476 | [[package]] 1477 | name = "range-alloc" 1478 | version = "0.1.3" 1479 | source = "registry+https://github.com/rust-lang/crates.io-index" 1480 | checksum = "9c8a99fddc9f0ba0a85884b8d14e3592853e787d581ca1816c91349b10e4eeab" 1481 | 1482 | [[package]] 1483 | name = "raw-string" 1484 | version = "0.3.5" 1485 | source = "registry+https://github.com/rust-lang/crates.io-index" 1486 | checksum = "e0501e134c6905fee1f10fed25b0a7e1261bf676cffac9543a7d0730dec01af2" 1487 | 1488 | [[package]] 1489 | name = "raw-window-handle" 1490 | version = "0.5.2" 1491 | source = "registry+https://github.com/rust-lang/crates.io-index" 1492 | checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9" 1493 | 1494 | [[package]] 1495 | name = "raw-window-handle" 1496 | version = "0.6.0" 1497 | source = "registry+https://github.com/rust-lang/crates.io-index" 1498 | checksum = "42a9830a0e1b9fb145ebb365b8bc4ccd75f290f98c0247deafbbe2c75cefb544" 1499 | 1500 | [[package]] 1501 | name = "redox_syscall" 1502 | version = "0.3.5" 1503 | source = "registry+https://github.com/rust-lang/crates.io-index" 1504 | checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29" 1505 | dependencies = [ 1506 | "bitflags 1.3.2", 1507 | ] 1508 | 1509 | [[package]] 1510 | name = "redox_syscall" 1511 | version = "0.4.1" 1512 | source = "registry+https://github.com/rust-lang/crates.io-index" 1513 | checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" 1514 | dependencies = [ 1515 | "bitflags 1.3.2", 1516 | ] 1517 | 1518 | [[package]] 1519 | name = "regex" 1520 | version = "1.10.2" 1521 | source = "registry+https://github.com/rust-lang/crates.io-index" 1522 | checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343" 1523 | dependencies = [ 1524 | "aho-corasick", 1525 | "memchr", 1526 | "regex-automata", 1527 | "regex-syntax", 1528 | ] 1529 | 1530 | [[package]] 1531 | name = "regex-automata" 1532 | version = "0.4.3" 1533 | source = "registry+https://github.com/rust-lang/crates.io-index" 1534 | checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f" 1535 | dependencies = [ 1536 | "aho-corasick", 1537 | "memchr", 1538 | "regex-syntax", 1539 | ] 1540 | 1541 | [[package]] 1542 | name = "regex-syntax" 1543 | version = "0.8.2" 1544 | source = "registry+https://github.com/rust-lang/crates.io-index" 1545 | checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" 1546 | 1547 | [[package]] 1548 | name = "renderdoc-sys" 1549 | version = "1.0.0" 1550 | source = "registry+https://github.com/rust-lang/crates.io-index" 1551 | checksum = "216080ab382b992234dda86873c18d4c48358f5cfcb70fd693d7f6f2131b628b" 1552 | 1553 | [[package]] 1554 | name = "rspirv" 1555 | version = "0.11.0+1.5.4" 1556 | source = "registry+https://github.com/rust-lang/crates.io-index" 1557 | checksum = "1503993b59ca9ae4127365c3293517576d7ce56be9f3d8abb1625c85ddc583ba" 1558 | dependencies = [ 1559 | "fxhash", 1560 | "num-traits", 1561 | "spirv", 1562 | ] 1563 | 1564 | [[package]] 1565 | name = "rustc-demangle" 1566 | version = "0.1.23" 1567 | source = "registry+https://github.com/rust-lang/crates.io-index" 1568 | checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" 1569 | 1570 | [[package]] 1571 | name = "rustc-hash" 1572 | version = "1.1.0" 1573 | source = "registry+https://github.com/rust-lang/crates.io-index" 1574 | checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" 1575 | 1576 | [[package]] 1577 | name = "rustc_codegen_spirv" 1578 | version = "0.9.0" 1579 | source = "registry+https://github.com/rust-lang/crates.io-index" 1580 | checksum = "00f05d43c1d9ef3b0e5e2be3dcc9025e5ed103f99c36bb29a1b396386bd032ce" 1581 | dependencies = [ 1582 | "ar", 1583 | "either", 1584 | "hashbrown 0.11.2", 1585 | "indexmap 1.9.3", 1586 | "itertools", 1587 | "lazy_static", 1588 | "libc", 1589 | "num-traits", 1590 | "once_cell", 1591 | "regex", 1592 | "rspirv", 1593 | "rustc-demangle", 1594 | "rustc_codegen_spirv-types", 1595 | "sanitize-filename", 1596 | "serde", 1597 | "serde_json", 1598 | "smallvec", 1599 | "spirt", 1600 | "spirv-tools", 1601 | "syn 1.0.109", 1602 | ] 1603 | 1604 | [[package]] 1605 | name = "rustc_codegen_spirv-types" 1606 | version = "0.9.0" 1607 | source = "registry+https://github.com/rust-lang/crates.io-index" 1608 | checksum = "13333711bd68d2a02617c2093fa6535ae40024fef610c37e6826d1ea77e97710" 1609 | dependencies = [ 1610 | "rspirv", 1611 | "serde", 1612 | ] 1613 | 1614 | [[package]] 1615 | name = "rustc_version" 1616 | version = "0.4.0" 1617 | source = "registry+https://github.com/rust-lang/crates.io-index" 1618 | checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" 1619 | dependencies = [ 1620 | "semver", 1621 | ] 1622 | 1623 | [[package]] 1624 | name = "rustix" 1625 | version = "0.38.20" 1626 | source = "registry+https://github.com/rust-lang/crates.io-index" 1627 | checksum = "67ce50cb2e16c2903e30d1cbccfd8387a74b9d4c938b6a4c5ec6cc7556f7a8a0" 1628 | dependencies = [ 1629 | "bitflags 2.4.1", 1630 | "errno", 1631 | "libc", 1632 | "linux-raw-sys", 1633 | "windows-sys 0.48.0", 1634 | ] 1635 | 1636 | [[package]] 1637 | name = "ryu" 1638 | version = "1.0.15" 1639 | source = "registry+https://github.com/rust-lang/crates.io-index" 1640 | checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" 1641 | 1642 | [[package]] 1643 | name = "same-file" 1644 | version = "1.0.6" 1645 | source = "registry+https://github.com/rust-lang/crates.io-index" 1646 | checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" 1647 | dependencies = [ 1648 | "winapi-util", 1649 | ] 1650 | 1651 | [[package]] 1652 | name = "sanitize-filename" 1653 | version = "0.4.0" 1654 | source = "registry+https://github.com/rust-lang/crates.io-index" 1655 | checksum = "08c502bdb638f1396509467cb0580ef3b29aa2a45c5d43e5d84928241280296c" 1656 | dependencies = [ 1657 | "lazy_static", 1658 | "regex", 1659 | ] 1660 | 1661 | [[package]] 1662 | name = "scoped-tls" 1663 | version = "1.0.1" 1664 | source = "registry+https://github.com/rust-lang/crates.io-index" 1665 | checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" 1666 | 1667 | [[package]] 1668 | name = "scopeguard" 1669 | version = "1.2.0" 1670 | source = "registry+https://github.com/rust-lang/crates.io-index" 1671 | checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1672 | 1673 | [[package]] 1674 | name = "sctk-adwaita" 1675 | version = "0.7.0" 1676 | source = "registry+https://github.com/rust-lang/crates.io-index" 1677 | checksum = "1729a30a469de249c6effc17ec8d039b0aa29b3af79b819b7f51cb6ab8046a90" 1678 | dependencies = [ 1679 | "ab_glyph", 1680 | "log", 1681 | "memmap2", 1682 | "smithay-client-toolkit", 1683 | "tiny-skia", 1684 | ] 1685 | 1686 | [[package]] 1687 | name = "semver" 1688 | version = "1.0.20" 1689 | source = "registry+https://github.com/rust-lang/crates.io-index" 1690 | checksum = "836fa6a3e1e547f9a2c4040802ec865b5d85f4014efe00555d7090a3dcaa1090" 1691 | 1692 | [[package]] 1693 | name = "serde" 1694 | version = "1.0.189" 1695 | source = "registry+https://github.com/rust-lang/crates.io-index" 1696 | checksum = "8e422a44e74ad4001bdc8eede9a4570ab52f71190e9c076d14369f38b9200537" 1697 | dependencies = [ 1698 | "serde_derive", 1699 | ] 1700 | 1701 | [[package]] 1702 | name = "serde_derive" 1703 | version = "1.0.189" 1704 | source = "registry+https://github.com/rust-lang/crates.io-index" 1705 | checksum = "1e48d1f918009ce3145511378cf68d613e3b3d9137d67272562080d68a2b32d5" 1706 | dependencies = [ 1707 | "proc-macro2", 1708 | "quote", 1709 | "syn 2.0.38", 1710 | ] 1711 | 1712 | [[package]] 1713 | name = "serde_json" 1714 | version = "1.0.107" 1715 | source = "registry+https://github.com/rust-lang/crates.io-index" 1716 | checksum = "6b420ce6e3d8bd882e9b243c6eed35dbc9a6110c9769e74b584e0d68d1f20c65" 1717 | dependencies = [ 1718 | "itoa", 1719 | "ryu", 1720 | "serde", 1721 | ] 1722 | 1723 | [[package]] 1724 | name = "slab" 1725 | version = "0.4.9" 1726 | source = "registry+https://github.com/rust-lang/crates.io-index" 1727 | checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" 1728 | dependencies = [ 1729 | "autocfg", 1730 | ] 1731 | 1732 | [[package]] 1733 | name = "slotmap" 1734 | version = "1.0.6" 1735 | source = "registry+https://github.com/rust-lang/crates.io-index" 1736 | checksum = "e1e08e261d0e8f5c43123b7adf3e4ca1690d655377ac93a03b2c9d3e98de1342" 1737 | dependencies = [ 1738 | "version_check", 1739 | ] 1740 | 1741 | [[package]] 1742 | name = "smallvec" 1743 | version = "1.11.1" 1744 | source = "registry+https://github.com/rust-lang/crates.io-index" 1745 | checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" 1746 | dependencies = [ 1747 | "serde", 1748 | ] 1749 | 1750 | [[package]] 1751 | name = "smithay-client-toolkit" 1752 | version = "0.18.0" 1753 | source = "registry+https://github.com/rust-lang/crates.io-index" 1754 | checksum = "60e3d9941fa3bacf7c2bf4b065304faa14164151254cd16ce1b1bc8fc381600f" 1755 | dependencies = [ 1756 | "bitflags 2.4.1", 1757 | "calloop", 1758 | "calloop-wayland-source", 1759 | "cursor-icon", 1760 | "libc", 1761 | "log", 1762 | "memmap2", 1763 | "rustix", 1764 | "thiserror", 1765 | "wayland-backend", 1766 | "wayland-client", 1767 | "wayland-csd-frame", 1768 | "wayland-cursor", 1769 | "wayland-protocols", 1770 | "wayland-protocols-wlr", 1771 | "wayland-scanner", 1772 | "xkeysym", 1773 | ] 1774 | 1775 | [[package]] 1776 | name = "smol_str" 1777 | version = "0.2.0" 1778 | source = "registry+https://github.com/rust-lang/crates.io-index" 1779 | checksum = "74212e6bbe9a4352329b2f68ba3130c15a3f26fe88ff22dbdc6cdd58fa85e99c" 1780 | dependencies = [ 1781 | "serde", 1782 | ] 1783 | 1784 | [[package]] 1785 | name = "spin" 1786 | version = "0.9.8" 1787 | source = "registry+https://github.com/rust-lang/crates.io-index" 1788 | checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67" 1789 | dependencies = [ 1790 | "lock_api", 1791 | ] 1792 | 1793 | [[package]] 1794 | name = "spirt" 1795 | version = "0.3.0" 1796 | source = "registry+https://github.com/rust-lang/crates.io-index" 1797 | checksum = "64e1f7903720ff818d6da824edf2c4082c6e7a029a99317fd10c39dd7c40c7ff" 1798 | dependencies = [ 1799 | "arrayvec", 1800 | "bytemuck", 1801 | "derive_more", 1802 | "elsa", 1803 | "indexmap 1.9.3", 1804 | "internal-iterator", 1805 | "itertools", 1806 | "lazy_static", 1807 | "longest-increasing-subsequence", 1808 | "rustc-hash", 1809 | "serde", 1810 | "serde_json", 1811 | "smallvec", 1812 | ] 1813 | 1814 | [[package]] 1815 | name = "spirv" 1816 | version = "0.2.0+1.5.4" 1817 | source = "registry+https://github.com/rust-lang/crates.io-index" 1818 | checksum = "246bfa38fe3db3f1dfc8ca5a2cdeb7348c78be2112740cc0ec8ef18b6d94f830" 1819 | dependencies = [ 1820 | "bitflags 1.3.2", 1821 | "num-traits", 1822 | ] 1823 | 1824 | [[package]] 1825 | name = "spirv-builder" 1826 | version = "0.9.0" 1827 | source = "registry+https://github.com/rust-lang/crates.io-index" 1828 | checksum = "8ee97a4472a73b2f6adc911468b16405fa5b732f510e5ae11a33a914f36fe5ad" 1829 | dependencies = [ 1830 | "memchr", 1831 | "notify", 1832 | "raw-string", 1833 | "rustc_codegen_spirv", 1834 | "rustc_codegen_spirv-types", 1835 | "serde", 1836 | "serde_json", 1837 | ] 1838 | 1839 | [[package]] 1840 | name = "spirv-std" 1841 | version = "0.9.0" 1842 | source = "registry+https://github.com/rust-lang/crates.io-index" 1843 | checksum = "68c3c0972a2df79abe2c8af2fe7f7937a9aa558b6a1f78fc5edf93f4d480d757" 1844 | dependencies = [ 1845 | "bitflags 1.3.2", 1846 | "glam", 1847 | "num-traits", 1848 | "spirv-std-macros", 1849 | "spirv-std-types", 1850 | ] 1851 | 1852 | [[package]] 1853 | name = "spirv-std-macros" 1854 | version = "0.9.0" 1855 | source = "registry+https://github.com/rust-lang/crates.io-index" 1856 | checksum = "73f776bf9f2897ea7acff15d7753711fdf1693592bd7459a01c394262b1df45c" 1857 | dependencies = [ 1858 | "proc-macro2", 1859 | "quote", 1860 | "spirv-std-types", 1861 | "syn 1.0.109", 1862 | ] 1863 | 1864 | [[package]] 1865 | name = "spirv-std-types" 1866 | version = "0.9.0" 1867 | source = "registry+https://github.com/rust-lang/crates.io-index" 1868 | checksum = "a73417b7d72d95b4995c840dceb4e3b4bcbad4ff7f35df9c1655b6826c18d3a9" 1869 | 1870 | [[package]] 1871 | name = "spirv-tools" 1872 | version = "0.9.0" 1873 | source = "registry+https://github.com/rust-lang/crates.io-index" 1874 | checksum = "dc7c8ca2077515286505bd3ccd396e55ac5706e80322e1d6d22a82e1cad4f7c3" 1875 | dependencies = [ 1876 | "memchr", 1877 | "spirv-tools-sys", 1878 | "tempfile", 1879 | ] 1880 | 1881 | [[package]] 1882 | name = "spirv-tools-sys" 1883 | version = "0.7.0" 1884 | source = "registry+https://github.com/rust-lang/crates.io-index" 1885 | checksum = "b4b32d9d6469cd6b50dcd6bd841204b5946b4fb7b70a97872717cdc417659c9a" 1886 | dependencies = [ 1887 | "cc", 1888 | ] 1889 | 1890 | [[package]] 1891 | name = "stable_deref_trait" 1892 | version = "1.2.0" 1893 | source = "registry+https://github.com/rust-lang/crates.io-index" 1894 | checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" 1895 | 1896 | [[package]] 1897 | name = "static_assertions" 1898 | version = "1.1.0" 1899 | source = "registry+https://github.com/rust-lang/crates.io-index" 1900 | checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" 1901 | 1902 | [[package]] 1903 | name = "strict-num" 1904 | version = "0.1.1" 1905 | source = "registry+https://github.com/rust-lang/crates.io-index" 1906 | checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" 1907 | 1908 | [[package]] 1909 | name = "syn" 1910 | version = "1.0.109" 1911 | source = "registry+https://github.com/rust-lang/crates.io-index" 1912 | checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 1913 | dependencies = [ 1914 | "proc-macro2", 1915 | "quote", 1916 | "unicode-ident", 1917 | ] 1918 | 1919 | [[package]] 1920 | name = "syn" 1921 | version = "2.0.38" 1922 | source = "registry+https://github.com/rust-lang/crates.io-index" 1923 | checksum = "e96b79aaa137db8f61e26363a0c9b47d8b4ec75da28b7d1d614c2303e232408b" 1924 | dependencies = [ 1925 | "proc-macro2", 1926 | "quote", 1927 | "unicode-ident", 1928 | ] 1929 | 1930 | [[package]] 1931 | name = "tempfile" 1932 | version = "3.8.0" 1933 | source = "registry+https://github.com/rust-lang/crates.io-index" 1934 | checksum = "cb94d2f3cc536af71caac6b6fcebf65860b347e7ce0cc9ebe8f70d3e521054ef" 1935 | dependencies = [ 1936 | "cfg-if", 1937 | "fastrand", 1938 | "redox_syscall 0.3.5", 1939 | "rustix", 1940 | "windows-sys 0.48.0", 1941 | ] 1942 | 1943 | [[package]] 1944 | name = "termcolor" 1945 | version = "1.3.0" 1946 | source = "registry+https://github.com/rust-lang/crates.io-index" 1947 | checksum = "6093bad37da69aab9d123a8091e4be0aa4a03e4d601ec641c327398315f62b64" 1948 | dependencies = [ 1949 | "winapi-util", 1950 | ] 1951 | 1952 | [[package]] 1953 | name = "thiserror" 1954 | version = "1.0.50" 1955 | source = "registry+https://github.com/rust-lang/crates.io-index" 1956 | checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2" 1957 | dependencies = [ 1958 | "thiserror-impl", 1959 | ] 1960 | 1961 | [[package]] 1962 | name = "thiserror-impl" 1963 | version = "1.0.50" 1964 | source = "registry+https://github.com/rust-lang/crates.io-index" 1965 | checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8" 1966 | dependencies = [ 1967 | "proc-macro2", 1968 | "quote", 1969 | "syn 2.0.38", 1970 | ] 1971 | 1972 | [[package]] 1973 | name = "tiny-skia" 1974 | version = "0.11.2" 1975 | source = "registry+https://github.com/rust-lang/crates.io-index" 1976 | checksum = "3b72a92a05db376db09fe6d50b7948d106011761c05a6a45e23e17ee9b556222" 1977 | dependencies = [ 1978 | "arrayref", 1979 | "arrayvec", 1980 | "bytemuck", 1981 | "cfg-if", 1982 | "log", 1983 | "tiny-skia-path", 1984 | ] 1985 | 1986 | [[package]] 1987 | name = "tiny-skia-path" 1988 | version = "0.11.2" 1989 | source = "registry+https://github.com/rust-lang/crates.io-index" 1990 | checksum = "6ac3865b9708fc7e1961a65c3a4fa55e984272f33092d3c859929f887fceb647" 1991 | dependencies = [ 1992 | "arrayref", 1993 | "bytemuck", 1994 | "strict-num", 1995 | ] 1996 | 1997 | [[package]] 1998 | name = "toml_datetime" 1999 | version = "0.6.3" 2000 | source = "registry+https://github.com/rust-lang/crates.io-index" 2001 | checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" 2002 | 2003 | [[package]] 2004 | name = "toml_edit" 2005 | version = "0.19.15" 2006 | source = "registry+https://github.com/rust-lang/crates.io-index" 2007 | checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" 2008 | dependencies = [ 2009 | "indexmap 2.0.2", 2010 | "toml_datetime", 2011 | "winnow", 2012 | ] 2013 | 2014 | [[package]] 2015 | name = "tracing" 2016 | version = "0.1.40" 2017 | source = "registry+https://github.com/rust-lang/crates.io-index" 2018 | checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" 2019 | dependencies = [ 2020 | "pin-project-lite", 2021 | "tracing-core", 2022 | ] 2023 | 2024 | [[package]] 2025 | name = "tracing-core" 2026 | version = "0.1.32" 2027 | source = "registry+https://github.com/rust-lang/crates.io-index" 2028 | checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" 2029 | 2030 | [[package]] 2031 | name = "ttf-parser" 2032 | version = "0.19.2" 2033 | source = "registry+https://github.com/rust-lang/crates.io-index" 2034 | checksum = "49d64318d8311fc2668e48b63969f4343e0a85c4a109aa8460d6672e364b8bd1" 2035 | 2036 | [[package]] 2037 | name = "unicode-ident" 2038 | version = "1.0.12" 2039 | source = "registry+https://github.com/rust-lang/crates.io-index" 2040 | checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" 2041 | 2042 | [[package]] 2043 | name = "unicode-segmentation" 2044 | version = "1.10.1" 2045 | source = "registry+https://github.com/rust-lang/crates.io-index" 2046 | checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36" 2047 | 2048 | [[package]] 2049 | name = "unicode-width" 2050 | version = "0.1.11" 2051 | source = "registry+https://github.com/rust-lang/crates.io-index" 2052 | checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85" 2053 | 2054 | [[package]] 2055 | name = "unicode-xid" 2056 | version = "0.2.4" 2057 | source = "registry+https://github.com/rust-lang/crates.io-index" 2058 | checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" 2059 | 2060 | [[package]] 2061 | name = "version_check" 2062 | version = "0.9.4" 2063 | source = "registry+https://github.com/rust-lang/crates.io-index" 2064 | checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" 2065 | 2066 | [[package]] 2067 | name = "walkdir" 2068 | version = "2.4.0" 2069 | source = "registry+https://github.com/rust-lang/crates.io-index" 2070 | checksum = "d71d857dc86794ca4c280d616f7da00d2dbfd8cd788846559a6813e6aa4b54ee" 2071 | dependencies = [ 2072 | "same-file", 2073 | "winapi-util", 2074 | ] 2075 | 2076 | [[package]] 2077 | name = "wasi" 2078 | version = "0.11.0+wasi-snapshot-preview1" 2079 | source = "registry+https://github.com/rust-lang/crates.io-index" 2080 | checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" 2081 | 2082 | [[package]] 2083 | name = "wasm-bindgen" 2084 | version = "0.2.87" 2085 | source = "registry+https://github.com/rust-lang/crates.io-index" 2086 | checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" 2087 | dependencies = [ 2088 | "cfg-if", 2089 | "wasm-bindgen-macro", 2090 | ] 2091 | 2092 | [[package]] 2093 | name = "wasm-bindgen-backend" 2094 | version = "0.2.87" 2095 | source = "registry+https://github.com/rust-lang/crates.io-index" 2096 | checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" 2097 | dependencies = [ 2098 | "bumpalo", 2099 | "log", 2100 | "once_cell", 2101 | "proc-macro2", 2102 | "quote", 2103 | "syn 2.0.38", 2104 | "wasm-bindgen-shared", 2105 | ] 2106 | 2107 | [[package]] 2108 | name = "wasm-bindgen-futures" 2109 | version = "0.4.37" 2110 | source = "registry+https://github.com/rust-lang/crates.io-index" 2111 | checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" 2112 | dependencies = [ 2113 | "cfg-if", 2114 | "js-sys", 2115 | "wasm-bindgen", 2116 | "web-sys", 2117 | ] 2118 | 2119 | [[package]] 2120 | name = "wasm-bindgen-macro" 2121 | version = "0.2.87" 2122 | source = "registry+https://github.com/rust-lang/crates.io-index" 2123 | checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" 2124 | dependencies = [ 2125 | "quote", 2126 | "wasm-bindgen-macro-support", 2127 | ] 2128 | 2129 | [[package]] 2130 | name = "wasm-bindgen-macro-support" 2131 | version = "0.2.87" 2132 | source = "registry+https://github.com/rust-lang/crates.io-index" 2133 | checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" 2134 | dependencies = [ 2135 | "proc-macro2", 2136 | "quote", 2137 | "syn 2.0.38", 2138 | "wasm-bindgen-backend", 2139 | "wasm-bindgen-shared", 2140 | ] 2141 | 2142 | [[package]] 2143 | name = "wasm-bindgen-shared" 2144 | version = "0.2.87" 2145 | source = "registry+https://github.com/rust-lang/crates.io-index" 2146 | checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" 2147 | 2148 | [[package]] 2149 | name = "wayland-backend" 2150 | version = "0.3.2" 2151 | source = "registry+https://github.com/rust-lang/crates.io-index" 2152 | checksum = "19152ddd73f45f024ed4534d9ca2594e0ef252c1847695255dae47f34df9fbe4" 2153 | dependencies = [ 2154 | "cc", 2155 | "downcast-rs", 2156 | "nix", 2157 | "scoped-tls", 2158 | "smallvec", 2159 | "wayland-sys", 2160 | ] 2161 | 2162 | [[package]] 2163 | name = "wayland-client" 2164 | version = "0.31.1" 2165 | source = "registry+https://github.com/rust-lang/crates.io-index" 2166 | checksum = "1ca7d52347346f5473bf2f56705f360e8440873052e575e55890c4fa57843ed3" 2167 | dependencies = [ 2168 | "bitflags 2.4.1", 2169 | "nix", 2170 | "wayland-backend", 2171 | "wayland-scanner", 2172 | ] 2173 | 2174 | [[package]] 2175 | name = "wayland-csd-frame" 2176 | version = "0.3.0" 2177 | source = "registry+https://github.com/rust-lang/crates.io-index" 2178 | checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e" 2179 | dependencies = [ 2180 | "bitflags 2.4.1", 2181 | "cursor-icon", 2182 | "wayland-backend", 2183 | ] 2184 | 2185 | [[package]] 2186 | name = "wayland-cursor" 2187 | version = "0.31.0" 2188 | source = "registry+https://github.com/rust-lang/crates.io-index" 2189 | checksum = "a44aa20ae986659d6c77d64d808a046996a932aa763913864dc40c359ef7ad5b" 2190 | dependencies = [ 2191 | "nix", 2192 | "wayland-client", 2193 | "xcursor", 2194 | ] 2195 | 2196 | [[package]] 2197 | name = "wayland-protocols" 2198 | version = "0.31.0" 2199 | source = "registry+https://github.com/rust-lang/crates.io-index" 2200 | checksum = "e253d7107ba913923dc253967f35e8561a3c65f914543e46843c88ddd729e21c" 2201 | dependencies = [ 2202 | "bitflags 2.4.1", 2203 | "wayland-backend", 2204 | "wayland-client", 2205 | "wayland-scanner", 2206 | ] 2207 | 2208 | [[package]] 2209 | name = "wayland-protocols-plasma" 2210 | version = "0.2.0" 2211 | source = "registry+https://github.com/rust-lang/crates.io-index" 2212 | checksum = "23803551115ff9ea9bce586860c5c5a971e360825a0309264102a9495a5ff479" 2213 | dependencies = [ 2214 | "bitflags 2.4.1", 2215 | "wayland-backend", 2216 | "wayland-client", 2217 | "wayland-protocols", 2218 | "wayland-scanner", 2219 | ] 2220 | 2221 | [[package]] 2222 | name = "wayland-protocols-wlr" 2223 | version = "0.2.0" 2224 | source = "registry+https://github.com/rust-lang/crates.io-index" 2225 | checksum = "ad1f61b76b6c2d8742e10f9ba5c3737f6530b4c243132c2a2ccc8aa96fe25cd6" 2226 | dependencies = [ 2227 | "bitflags 2.4.1", 2228 | "wayland-backend", 2229 | "wayland-client", 2230 | "wayland-protocols", 2231 | "wayland-scanner", 2232 | ] 2233 | 2234 | [[package]] 2235 | name = "wayland-scanner" 2236 | version = "0.31.0" 2237 | source = "registry+https://github.com/rust-lang/crates.io-index" 2238 | checksum = "fb8e28403665c9f9513202b7e1ed71ec56fde5c107816843fb14057910b2c09c" 2239 | dependencies = [ 2240 | "proc-macro2", 2241 | "quick-xml", 2242 | "quote", 2243 | ] 2244 | 2245 | [[package]] 2246 | name = "wayland-sys" 2247 | version = "0.31.1" 2248 | source = "registry+https://github.com/rust-lang/crates.io-index" 2249 | checksum = "15a0c8eaff5216d07f226cb7a549159267f3467b289d9a2e52fd3ef5aae2b7af" 2250 | dependencies = [ 2251 | "dlib", 2252 | "log", 2253 | "once_cell", 2254 | "pkg-config", 2255 | ] 2256 | 2257 | [[package]] 2258 | name = "web-sys" 2259 | version = "0.3.64" 2260 | source = "registry+https://github.com/rust-lang/crates.io-index" 2261 | checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" 2262 | dependencies = [ 2263 | "js-sys", 2264 | "wasm-bindgen", 2265 | ] 2266 | 2267 | [[package]] 2268 | name = "web-time" 2269 | version = "0.2.3" 2270 | source = "registry+https://github.com/rust-lang/crates.io-index" 2271 | checksum = "57099a701fb3a8043f993e8228dc24229c7b942e2b009a1b962e54489ba1d3bf" 2272 | dependencies = [ 2273 | "js-sys", 2274 | "wasm-bindgen", 2275 | ] 2276 | 2277 | [[package]] 2278 | name = "wgpu" 2279 | version = "0.18.0" 2280 | source = "registry+https://github.com/rust-lang/crates.io-index" 2281 | checksum = "30e7d227c9f961f2061c26f4cb0fbd4df0ef37e056edd0931783599d6c94ef24" 2282 | dependencies = [ 2283 | "arrayvec", 2284 | "cfg-if", 2285 | "flume", 2286 | "js-sys", 2287 | "log", 2288 | "naga", 2289 | "parking_lot", 2290 | "profiling", 2291 | "raw-window-handle 0.5.2", 2292 | "smallvec", 2293 | "static_assertions", 2294 | "wasm-bindgen", 2295 | "wasm-bindgen-futures", 2296 | "web-sys", 2297 | "wgpu-core", 2298 | "wgpu-hal", 2299 | "wgpu-types", 2300 | ] 2301 | 2302 | [[package]] 2303 | name = "wgpu-core" 2304 | version = "0.18.0" 2305 | source = "registry+https://github.com/rust-lang/crates.io-index" 2306 | checksum = "837e02ddcdc6d4a9b56ba4598f7fd4202a7699ab03f6ef4dcdebfad2c966aea6" 2307 | dependencies = [ 2308 | "arrayvec", 2309 | "bit-vec", 2310 | "bitflags 2.4.1", 2311 | "codespan-reporting", 2312 | "log", 2313 | "naga", 2314 | "parking_lot", 2315 | "profiling", 2316 | "raw-window-handle 0.5.2", 2317 | "rustc-hash", 2318 | "smallvec", 2319 | "thiserror", 2320 | "web-sys", 2321 | "wgpu-hal", 2322 | "wgpu-types", 2323 | ] 2324 | 2325 | [[package]] 2326 | name = "wgpu-hal" 2327 | version = "0.18.0" 2328 | source = "registry+https://github.com/rust-lang/crates.io-index" 2329 | checksum = "1e30b9a8155c83868e82a8c5d3ce899de6c3961d2ef595de8fc168a1677fc2d8" 2330 | dependencies = [ 2331 | "android_system_properties", 2332 | "arrayvec", 2333 | "ash", 2334 | "bit-set", 2335 | "bitflags 2.4.1", 2336 | "block", 2337 | "core-graphics-types", 2338 | "d3d12", 2339 | "glow", 2340 | "glutin_wgl_sys", 2341 | "gpu-alloc", 2342 | "gpu-allocator", 2343 | "gpu-descriptor", 2344 | "hassle-rs", 2345 | "js-sys", 2346 | "khronos-egl", 2347 | "libc", 2348 | "libloading 0.8.1", 2349 | "log", 2350 | "metal", 2351 | "naga", 2352 | "objc", 2353 | "once_cell", 2354 | "parking_lot", 2355 | "profiling", 2356 | "range-alloc", 2357 | "raw-window-handle 0.5.2", 2358 | "renderdoc-sys", 2359 | "rustc-hash", 2360 | "smallvec", 2361 | "thiserror", 2362 | "wasm-bindgen", 2363 | "web-sys", 2364 | "wgpu-types", 2365 | "winapi", 2366 | ] 2367 | 2368 | [[package]] 2369 | name = "wgpu-types" 2370 | version = "0.18.0" 2371 | source = "registry+https://github.com/rust-lang/crates.io-index" 2372 | checksum = "0d5ed5f0edf0de351fe311c53304986315ce866f394a2e6df0c4b3c70774bcdd" 2373 | dependencies = [ 2374 | "bitflags 2.4.1", 2375 | "js-sys", 2376 | "web-sys", 2377 | ] 2378 | 2379 | [[package]] 2380 | name = "widestring" 2381 | version = "1.0.2" 2382 | source = "registry+https://github.com/rust-lang/crates.io-index" 2383 | checksum = "653f141f39ec16bba3c5abe400a0c60da7468261cc2cbf36805022876bc721a8" 2384 | 2385 | [[package]] 2386 | name = "winapi" 2387 | version = "0.3.9" 2388 | source = "registry+https://github.com/rust-lang/crates.io-index" 2389 | checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" 2390 | dependencies = [ 2391 | "winapi-i686-pc-windows-gnu", 2392 | "winapi-x86_64-pc-windows-gnu", 2393 | ] 2394 | 2395 | [[package]] 2396 | name = "winapi-i686-pc-windows-gnu" 2397 | version = "0.4.0" 2398 | source = "registry+https://github.com/rust-lang/crates.io-index" 2399 | checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" 2400 | 2401 | [[package]] 2402 | name = "winapi-util" 2403 | version = "0.1.6" 2404 | source = "registry+https://github.com/rust-lang/crates.io-index" 2405 | checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596" 2406 | dependencies = [ 2407 | "winapi", 2408 | ] 2409 | 2410 | [[package]] 2411 | name = "winapi-wsapoll" 2412 | version = "0.1.1" 2413 | source = "registry+https://github.com/rust-lang/crates.io-index" 2414 | checksum = "44c17110f57155602a80dca10be03852116403c9ff3cd25b079d666f2aa3df6e" 2415 | dependencies = [ 2416 | "winapi", 2417 | ] 2418 | 2419 | [[package]] 2420 | name = "winapi-x86_64-pc-windows-gnu" 2421 | version = "0.4.0" 2422 | source = "registry+https://github.com/rust-lang/crates.io-index" 2423 | checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 2424 | 2425 | [[package]] 2426 | name = "windows" 2427 | version = "0.51.1" 2428 | source = "registry+https://github.com/rust-lang/crates.io-index" 2429 | checksum = "ca229916c5ee38c2f2bc1e9d8f04df975b4bd93f9955dc69fabb5d91270045c9" 2430 | dependencies = [ 2431 | "windows-core", 2432 | "windows-targets 0.48.5", 2433 | ] 2434 | 2435 | [[package]] 2436 | name = "windows-core" 2437 | version = "0.51.1" 2438 | source = "registry+https://github.com/rust-lang/crates.io-index" 2439 | checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64" 2440 | dependencies = [ 2441 | "windows-targets 0.48.5", 2442 | ] 2443 | 2444 | [[package]] 2445 | name = "windows-sys" 2446 | version = "0.45.0" 2447 | source = "registry+https://github.com/rust-lang/crates.io-index" 2448 | checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" 2449 | dependencies = [ 2450 | "windows-targets 0.42.2", 2451 | ] 2452 | 2453 | [[package]] 2454 | name = "windows-sys" 2455 | version = "0.48.0" 2456 | source = "registry+https://github.com/rust-lang/crates.io-index" 2457 | checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 2458 | dependencies = [ 2459 | "windows-targets 0.48.5", 2460 | ] 2461 | 2462 | [[package]] 2463 | name = "windows-targets" 2464 | version = "0.42.2" 2465 | source = "registry+https://github.com/rust-lang/crates.io-index" 2466 | checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" 2467 | dependencies = [ 2468 | "windows_aarch64_gnullvm 0.42.2", 2469 | "windows_aarch64_msvc 0.42.2", 2470 | "windows_i686_gnu 0.42.2", 2471 | "windows_i686_msvc 0.42.2", 2472 | "windows_x86_64_gnu 0.42.2", 2473 | "windows_x86_64_gnullvm 0.42.2", 2474 | "windows_x86_64_msvc 0.42.2", 2475 | ] 2476 | 2477 | [[package]] 2478 | name = "windows-targets" 2479 | version = "0.48.5" 2480 | source = "registry+https://github.com/rust-lang/crates.io-index" 2481 | checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" 2482 | dependencies = [ 2483 | "windows_aarch64_gnullvm 0.48.5", 2484 | "windows_aarch64_msvc 0.48.5", 2485 | "windows_i686_gnu 0.48.5", 2486 | "windows_i686_msvc 0.48.5", 2487 | "windows_x86_64_gnu 0.48.5", 2488 | "windows_x86_64_gnullvm 0.48.5", 2489 | "windows_x86_64_msvc 0.48.5", 2490 | ] 2491 | 2492 | [[package]] 2493 | name = "windows_aarch64_gnullvm" 2494 | version = "0.42.2" 2495 | source = "registry+https://github.com/rust-lang/crates.io-index" 2496 | checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" 2497 | 2498 | [[package]] 2499 | name = "windows_aarch64_gnullvm" 2500 | version = "0.48.5" 2501 | source = "registry+https://github.com/rust-lang/crates.io-index" 2502 | checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" 2503 | 2504 | [[package]] 2505 | name = "windows_aarch64_msvc" 2506 | version = "0.42.2" 2507 | source = "registry+https://github.com/rust-lang/crates.io-index" 2508 | checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" 2509 | 2510 | [[package]] 2511 | name = "windows_aarch64_msvc" 2512 | version = "0.48.5" 2513 | source = "registry+https://github.com/rust-lang/crates.io-index" 2514 | checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" 2515 | 2516 | [[package]] 2517 | name = "windows_i686_gnu" 2518 | version = "0.42.2" 2519 | source = "registry+https://github.com/rust-lang/crates.io-index" 2520 | checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" 2521 | 2522 | [[package]] 2523 | name = "windows_i686_gnu" 2524 | version = "0.48.5" 2525 | source = "registry+https://github.com/rust-lang/crates.io-index" 2526 | checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" 2527 | 2528 | [[package]] 2529 | name = "windows_i686_msvc" 2530 | version = "0.42.2" 2531 | source = "registry+https://github.com/rust-lang/crates.io-index" 2532 | checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" 2533 | 2534 | [[package]] 2535 | name = "windows_i686_msvc" 2536 | version = "0.48.5" 2537 | source = "registry+https://github.com/rust-lang/crates.io-index" 2538 | checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" 2539 | 2540 | [[package]] 2541 | name = "windows_x86_64_gnu" 2542 | version = "0.42.2" 2543 | source = "registry+https://github.com/rust-lang/crates.io-index" 2544 | checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" 2545 | 2546 | [[package]] 2547 | name = "windows_x86_64_gnu" 2548 | version = "0.48.5" 2549 | source = "registry+https://github.com/rust-lang/crates.io-index" 2550 | checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" 2551 | 2552 | [[package]] 2553 | name = "windows_x86_64_gnullvm" 2554 | version = "0.42.2" 2555 | source = "registry+https://github.com/rust-lang/crates.io-index" 2556 | checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" 2557 | 2558 | [[package]] 2559 | name = "windows_x86_64_gnullvm" 2560 | version = "0.48.5" 2561 | source = "registry+https://github.com/rust-lang/crates.io-index" 2562 | checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" 2563 | 2564 | [[package]] 2565 | name = "windows_x86_64_msvc" 2566 | version = "0.42.2" 2567 | source = "registry+https://github.com/rust-lang/crates.io-index" 2568 | checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" 2569 | 2570 | [[package]] 2571 | name = "windows_x86_64_msvc" 2572 | version = "0.48.5" 2573 | source = "registry+https://github.com/rust-lang/crates.io-index" 2574 | checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" 2575 | 2576 | [[package]] 2577 | name = "winit" 2578 | version = "0.29.3" 2579 | source = "registry+https://github.com/rust-lang/crates.io-index" 2580 | checksum = "161598019a9da35ab6c34dc46cd13546cba9dbf9816475d4dd9a639455016563" 2581 | dependencies = [ 2582 | "ahash 0.8.3", 2583 | "android-activity", 2584 | "atomic-waker", 2585 | "bitflags 2.4.1", 2586 | "bytemuck", 2587 | "calloop", 2588 | "cfg_aliases", 2589 | "core-foundation", 2590 | "core-graphics", 2591 | "cursor-icon", 2592 | "icrate", 2593 | "js-sys", 2594 | "libc", 2595 | "log", 2596 | "memmap2", 2597 | "ndk", 2598 | "ndk-sys", 2599 | "objc2", 2600 | "once_cell", 2601 | "orbclient", 2602 | "percent-encoding", 2603 | "raw-window-handle 0.5.2", 2604 | "raw-window-handle 0.6.0", 2605 | "redox_syscall 0.3.5", 2606 | "rustix", 2607 | "sctk-adwaita", 2608 | "smithay-client-toolkit", 2609 | "smol_str", 2610 | "unicode-segmentation", 2611 | "wasm-bindgen", 2612 | "wasm-bindgen-futures", 2613 | "wayland-backend", 2614 | "wayland-client", 2615 | "wayland-protocols", 2616 | "wayland-protocols-plasma", 2617 | "web-sys", 2618 | "web-time", 2619 | "windows-sys 0.48.0", 2620 | "x11-dl", 2621 | "x11rb", 2622 | "xkbcommon-dl", 2623 | ] 2624 | 2625 | [[package]] 2626 | name = "winnow" 2627 | version = "0.5.17" 2628 | source = "registry+https://github.com/rust-lang/crates.io-index" 2629 | checksum = "a3b801d0e0a6726477cc207f60162da452f3a95adb368399bef20a946e06f65c" 2630 | dependencies = [ 2631 | "memchr", 2632 | ] 2633 | 2634 | [[package]] 2635 | name = "x11-dl" 2636 | version = "2.21.0" 2637 | source = "registry+https://github.com/rust-lang/crates.io-index" 2638 | checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" 2639 | dependencies = [ 2640 | "libc", 2641 | "once_cell", 2642 | "pkg-config", 2643 | ] 2644 | 2645 | [[package]] 2646 | name = "x11rb" 2647 | version = "0.12.0" 2648 | source = "registry+https://github.com/rust-lang/crates.io-index" 2649 | checksum = "b1641b26d4dec61337c35a1b1aaf9e3cba8f46f0b43636c609ab0291a648040a" 2650 | dependencies = [ 2651 | "as-raw-xcb-connection", 2652 | "gethostname", 2653 | "libc", 2654 | "libloading 0.7.4", 2655 | "nix", 2656 | "once_cell", 2657 | "winapi", 2658 | "winapi-wsapoll", 2659 | "x11rb-protocol", 2660 | ] 2661 | 2662 | [[package]] 2663 | name = "x11rb-protocol" 2664 | version = "0.12.0" 2665 | source = "registry+https://github.com/rust-lang/crates.io-index" 2666 | checksum = "82d6c3f9a0fb6701fab8f6cea9b0c0bd5d6876f1f89f7fada07e558077c344bc" 2667 | dependencies = [ 2668 | "nix", 2669 | ] 2670 | 2671 | [[package]] 2672 | name = "xcursor" 2673 | version = "0.3.4" 2674 | source = "registry+https://github.com/rust-lang/crates.io-index" 2675 | checksum = "463705a63313cd4301184381c5e8042f0a7e9b4bb63653f216311d4ae74690b7" 2676 | dependencies = [ 2677 | "nom", 2678 | ] 2679 | 2680 | [[package]] 2681 | name = "xkbcommon-dl" 2682 | version = "0.4.1" 2683 | source = "registry+https://github.com/rust-lang/crates.io-index" 2684 | checksum = "6924668544c48c0133152e7eec86d644a056ca3d09275eb8d5cdb9855f9d8699" 2685 | dependencies = [ 2686 | "bitflags 2.4.1", 2687 | "dlib", 2688 | "log", 2689 | "once_cell", 2690 | "xkeysym", 2691 | ] 2692 | 2693 | [[package]] 2694 | name = "xkeysym" 2695 | version = "0.2.0" 2696 | source = "registry+https://github.com/rust-lang/crates.io-index" 2697 | checksum = "054a8e68b76250b253f671d1268cb7f1ae089ec35e195b2efb2a4e9a836d0621" 2698 | 2699 | [[package]] 2700 | name = "xml-rs" 2701 | version = "0.8.19" 2702 | source = "registry+https://github.com/rust-lang/crates.io-index" 2703 | checksum = "0fcb9cbac069e033553e8bb871be2fbdffcab578eb25bd0f7c508cedc6dcd75a" 2704 | -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "gravylib" 3 | version = "0.1.0-alpha" 4 | edition = "2021" 5 | license = "MIT OR Apache-2.0" 6 | authors = ["Dr. Rubisco "] 7 | description = "Making GPU-first development a reality, with the power of GPU Rust." 8 | keywords = [ 9 | "rust-gpu", 10 | "wgpu", 11 | "compute-shader", 12 | "vulkan", 13 | "toolkit", 14 | "framework", 15 | ] 16 | 17 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html 18 | 19 | [lib] 20 | crate-type = ["lib", "cdylib"] 21 | 22 | [dependencies] 23 | futures = { version = "0.3", default-features = false, features = [ 24 | "std", 25 | "executor", 26 | ] } 27 | wgpu = { version = "0.18", features = ["spirv", "vulkan-portability"] } 28 | winit = { version = "0.29", features = [ 29 | "rwh_05" # This is to maintain support with the latest version of wgpu. Should be removed once wgpu implements rwh_06. 30 | ] } 31 | gravylib_helpers = { path = "./gravylib_helpers" } 32 | gravylib_macros = { path = "./gravylib_macros" } 33 | bytemuck = "1.6.3" 34 | 35 | [build-dependencies] 36 | spirv-builder = { version = "=0.9.0", features = ["watch"] } 37 | 38 | [workspace] 39 | resolver = "2" 40 | members = ["gravylib_helpers", "gravylib_macros"] 41 | exclude = ["gravylib_example/runner", "gravylib_example/shader"] 42 | 43 | # See rustc_codegen_spirv/Cargo.toml for details on these features 44 | [features] 45 | default = ["use-compiled-tools"] 46 | use-installed-tools = ["spirv-builder/use-installed-tools"] 47 | use-compiled-tools = ["spirv-builder/use-compiled-tools"] 48 | 49 | [workspace.package] 50 | version = "0.1.0-alpha" 51 | edition = "2021" 52 | license = "MIT OR Apache-2.0" 53 | repository = "https://github.com/thedocruby/gravylib" 54 | authors = ["Dr. Rubisco "] 55 | 56 | [workspace.dependencies] 57 | spirv-std = { version = "=0.9.0" } 58 | spirv-std-types = { version = "=0.9.0" } 59 | spirv-std-macros = { version = "=0.9.0" } 60 | spirv-builder = { version = "=0.9.0", default-features = false } 61 | -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2023 Source Labs 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright 2023 Source Labs [doc@thedocruby.dev]. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Gravy (WIP) 2 | 3 | ###### _Ya know, my momma always said everything's better with Gravy..._ 4 | 5 | **Gravy** is a shader programming framework and toolkit built on the union of GPU programming and the [Rust Programming Language](https://www.rust-lang.org/). Gravy brings amazing features to shader development, such as **custom data structures**, **node-based pipelining**, and even **package manager support**. With Gravy, you can implement existing techniques with a simple package install, and construct novel techniques with the latest programming tools, all while effortlessly building and testing your render pipeline. **This is the future of the shaderdev.** 6 | 7 | ## What is Gravy? 8 | 9 | **Gravy** sits in a niche with the likes of [**Shadertoy**](https://www.shadertoy.com/) and Unity's [**ShaderGraph**](https://unity.com/features/shader-graph) but stands apart in some key ways: 10 | 11 | - **Gravy is an framework *and* a toolkit.** You can build applications with Gravy in flexible ways. Whether using all of `gravylib` as a development framework (like e.g. `bevyengine`), or using `gravylib` modules directly as a GPU toolkit (like e.g. `raylib`), the creative possibilities are endless. 12 | - **Gravy is a development environment.** Like Shadertoy, Gravy gives you the power to build amazing and beautiful shader programs, without having to worry about asset loading, windowing, i/o, graphics APIs, etc. You can focus on building your masterpiece, and leave the dirty work to us. 13 | - **Gravy is a node graph.** Like ShaderGraph, `gravylib` allows you to build your shader program quickly and intuitively with a simple node-oriented API. Once the API is stable, `gravylib` will be used to build an IDE-like experience for Gravy, with a visual node editor for easily building managing your render graph. 14 | - **Gravy is Rusty.** Featuring a core built on Embark's [`rust-gpu`](https://github.com/EmbarkStudios/rust-gpu), `gravylib` lets you leverage the power of the modern and powerful [Rust Programming Language](https://www.rust-lang.org/). With Gravy, you can make more complex and beautiful shaders than ever possible before, with the most developer friendly programming experience of our age.[^1] 15 | 16 | #### *For the nerds:* 17 | 18 | *More technically, `gravylib` is an attempt to build a modern programming framework and development toolkit to enable GPU-first development. It builds on [`rust-gpu`](https://github.com/EmbarkStudios/rust-gpu) as a backend to compile Rust syntax into SPIR-V bytecode, and then makes use of [`wgpu`](https://github.com/gfx-rs/wgpu) and [`winit`](https://github.com/rust-windowing/winit) to run the program on the GPU with cross-platform support. Gravy is usable as a standalone Rust library crate (`gravylib`), but the goal is to build an IDE-like experience on top of `gravylib` to make GPU-first development simple and accessible for all developers.* 19 | 20 | ## Why Gravy? 21 | 22 | Perhaps the most compelling feature of Gravy is **shader crates**. Using Rust's [official package manager](https://github.com/rust-lang/cargo) and [public user repository](https://crates.io/), you can build your own Rust packages (called **crates**) with Gravy's shader framework, and **publish them for anyone to use**. Gone are the days of copy-pasting code from another dev's blog just to implement a standard technique. With package manager support, you can use the latest tools and techniques in your own piplene just by adding the package to your project. When you start using shader crates, shader development quickly becomes more powerful and more dev-friendly at the same time. 23 | 24 | Still, Rust has more to give to shader devs; it's also the most developer friendly language of our age, **rated highest in developer satisfaction for the last 8 years!**[^1] For an industry plagued by confusing errors and complex code bases, this is a much needed improvement. It also lowers the barrier to entry for learning shader development, by using a language people already know and love, instead of requiring developers to learn an entirely new language. 25 | 26 | But it doesn't end there. Gravy empowers the devs of today to create the **digital masterpieces of tomorrow**, with powerful features like **node-based render graphs**, **platform-agnostic APIs**, and more. **This is the future of shader dev.** 27 | 28 | ## Where do I start? 29 | 30 | If you would like to try it out, you can clone the repo and run the example program at `gravylib/gravylib_example/runner` 31 | **_However_**, this project is still a **Work In Progress**: The structure and API are in a highly fluid state and are constantly being reworked. Keep this in mind before starting any big projects with `gravylib`. 32 | 33 | 34 | 35 | ## How can I help? 36 | 37 | As stated above, the structure is constantly changing, so Pull Requests are discouraged until the initial alpha release. 38 | 39 | **That being said,** if you think you could help with any of the unfinished tasks below, please reach out to me on [**Discord**](https://discord.gg/7cBw5KHe6q). I'd love to work with you! 40 | 41 | ## Alpha release checklist (v0.1.0) 42 | **(SUBJECT TO CHANGE, NO ETA)** 43 | 44 | - [x] Eliminate custom constants system; use `gravylib_helpers::Constants` instead 45 | - [x] Implement `helpers` as a module expansion of `gravylib` 46 | - [x] Use `lib.rs` as the common module instead of `common.rs` 47 | - [x] Use macros to reduce boilerplate 48 | - [x] Upgrade wgpu version 49 | - [x] Upgrade winit version 50 | - [x] Isolate examples (they live [here](https://github.com/srclabs/gravylib_example) now) 51 | - [x] Add back as a git submodule :P 52 | - [x] Start a company (lolol, welcome to `_src`! [Website](https://srclabs.dev) | [GitHub](https://github.com/srclabs)) 53 | - [ ] Reprinciple backend 54 | - [ ] Implement hot reloading 55 | - [ ] Basic image buffer support 56 | - [ ] More examples from shadertoy 57 | - [ ] Make a custom example or two to showcase rust features in shaders 58 | - [ ] Add an example library shader crate to showcase dependency powers 59 | - [ ] Add linter (clippy?) 60 | - [ ] Add automated tests 61 | - [ ] Testing & refactoring 62 | - [ ] Cleanup codebase 63 | - [ ] Final quality check 64 | - [ ] Add documentation 65 | - [ ] Prepare for contributors 66 | - [ ] Shiny new README (with images!) 67 | - [ ] Branding? Logo? Website? mdBook? 68 | - [ ] Release on crates.io 69 | 70 | [^1]: According to the [Annual Stack Overflow Developer Survey](https://survey.stackoverflow.co/), Rust has been voted as most loved/most admired language by developers every year since 2015. 71 | -------------------------------------------------------------------------------- /build.rs: -------------------------------------------------------------------------------- 1 | use std::error::Error; 2 | 3 | use spirv_builder::{SpirvBuilder, MetadataPrintout}; 4 | 5 | fn main() -> Result<(), Box> { 6 | // Internal shader-like dependencies, built alongside `gravylib` 7 | SpirvBuilder::new("gravylib_helpers", "spirv-unknown-vulkan1.1") 8 | .print_metadata(MetadataPrintout::Full) 9 | .build()?; 10 | 11 | Ok(()) 12 | } -------------------------------------------------------------------------------- /gravylib_helpers/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "gravylib_helpers" 3 | version = "0.1.0-alpha" 4 | publish = false 5 | authors.workspace = true 6 | edition.workspace = true 7 | license.workspace = true 8 | repository.workspace = true 9 | 10 | [lib] 11 | crate-type = ["lib", "dylib"] 12 | 13 | [dependencies] 14 | spirv-std = { workspace = true } 15 | bytemuck = { version = "1.6.3", features = ["derive"] } 16 | gravylib_macros = { path = "../gravylib_macros" } -------------------------------------------------------------------------------- /gravylib_helpers/src/lib.rs: -------------------------------------------------------------------------------- 1 | #![cfg_attr(target_arch = "spirv", no_std)] 2 | #![deny(warnings)] 3 | pub use spirv_std::*; 4 | pub use glam::*; 5 | #[cfg(target_arch = "spirv")] 6 | pub use spirv_std::num_traits::Float; 7 | 8 | pub use gravylib_macros as macros; 9 | pub use macros::*; 10 | 11 | use bytemuck::{Pod, Zeroable}; 12 | #[derive(Copy, Clone, Pod, Zeroable)] 13 | #[repr(C)] 14 | pub struct Constants { 15 | pub width: u32, 16 | pub height: u32, 17 | pub time: f32, 18 | pub gravylib: [u32; 3] 19 | } 20 | 21 | #[cfg(not(target_arch = "spirv"))] 22 | #[derive(Debug, Copy, Clone)] 23 | pub enum ShaderType { 24 | Pixel, 25 | // One day... 26 | //// Compute, 27 | //// Audio, 28 | //// Mesh, 29 | //// Task, 30 | } 31 | 32 | #[cfg(not(target_arch = "spirv"))] 33 | pub struct RawShader { 34 | pub shader_type: ShaderType, 35 | pub crate_name: &'static str, 36 | pub crate_path: &'static str, 37 | pub entry_point: &'static str, 38 | } 39 | 40 | #[spirv(vertex)] 41 | pub fn pixel_vs(#[spirv(vertex_index)] vert_idx: i32, #[spirv(position)] builtin_pos: &mut Vec4) { 42 | // Create a "full screen triangle" by mapping the vertex index. 43 | // Ported from https://www.saschawillems.de/blog/2016/08/13/vulkan-tutorial-on-rendering-a-fullscreen-quad-without-buffers/ 44 | let uv = vec2(((vert_idx << 1) & 2) as f32, (vert_idx & 2) as f32); 45 | let pos = 2.0 * uv - Vec2::ONE; 46 | 47 | *builtin_pos = pos.extend(0.0).extend(1.0); 48 | } -------------------------------------------------------------------------------- /gravylib_macros/Cargo.toml: -------------------------------------------------------------------------------- 1 | [package] 2 | name = "gravylib_macros" 3 | version = "0.1.0-alpha" 4 | publish = false 5 | authors.workspace = true 6 | edition.workspace = true 7 | license.workspace = true 8 | repository.workspace = true 9 | 10 | [lib] 11 | proc-macro = true 12 | 13 | [dependencies] 14 | quote = "1.0" 15 | proc-macro2 = "1.0" -------------------------------------------------------------------------------- /gravylib_macros/src/lib.rs: -------------------------------------------------------------------------------- 1 | use proc_macro::*; 2 | use quote::quote; 3 | 4 | #[proc_macro] 5 | pub fn shader(name: TokenStream) -> TokenStream { 6 | let const_case = name.to_string() 7 | .replace([' ', '-'], "_") 8 | .to_uppercase(); 9 | let snake_case = const_case.to_lowercase(); 10 | let _pascal_case = snake_case 11 | .split('_') 12 | .map(|s| { 13 | let mut c = s.chars(); 14 | match c.next() { 15 | None => String::new(), 16 | Some(f) => f.to_uppercase().collect::() + c.as_str(), 17 | } 18 | }) 19 | .collect::(); 20 | let function = proc_macro2::Ident::new(&snake_case, proc_macro2::Span::call_site()); 21 | let module = proc_macro2::Ident::new(&snake_case, proc_macro2::Span::call_site()); 22 | let constant = proc_macro2::Ident::new(&const_case, proc_macro2::Span::call_site()); 23 | let code = quote! { 24 | mod #module; 25 | 26 | #[spirv(fragment)] 27 | pub fn #function( 28 | #[spirv(frag_coord)] in_frag_coord: Vec4, 29 | #[spirv(push_constant)] constants: &Constants, 30 | output: &mut Vec4, 31 | ) { 32 | let frag_coord = vec2(in_frag_coord.x, in_frag_coord.y); 33 | *output = #module::#function(constants, frag_coord); 34 | } 35 | 36 | #[cfg(not(target_arch = "spirv"))] 37 | #[allow(dead_code)] 38 | pub const #constant: &RawShader = &RawShader { 39 | shader_type: ShaderType::Pixel, 40 | crate_name: env!("CARGO_CRATE_NAME"), 41 | crate_path: env!("CARGO_MANIFEST_DIR"), 42 | entry_point: stringify!(#function), 43 | }; 44 | }; 45 | 46 | code.into() 47 | } -------------------------------------------------------------------------------- /rust-toolchain: -------------------------------------------------------------------------------- 1 | [toolchain] 2 | channel = "nightly-2023-05-27" 3 | components = ["rust-src", "rustc-dev", "llvm-tools-preview"] -------------------------------------------------------------------------------- /src/graphics.rs: -------------------------------------------------------------------------------- 1 | use std::borrow::Cow; 2 | 3 | use gravylib_helpers::Constants; 4 | use winit::{ 5 | event::{ElementState, Event, WindowEvent, KeyEvent}, 6 | event_loop::EventLoop, 7 | window::Window, keyboard::{Key, NamedKey}, 8 | }; 9 | 10 | use crate::Shader; 11 | 12 | fn build_pipeline(device: &wgpu::Device, config: &wgpu::SurfaceConfiguration, shader: &Shader) -> wgpu::RenderPipeline { 13 | 14 | let layout = device.create_pipeline_layout(&wgpu::PipelineLayoutDescriptor { 15 | label: None, 16 | bind_group_layouts: &[], 17 | push_constant_ranges: &[wgpu::PushConstantRange { 18 | stages: wgpu::ShaderStages::VERTEX | wgpu::ShaderStages::FRAGMENT, 19 | range: 0..std::mem::size_of::() as u32, 20 | }], 21 | }); 22 | 23 | fn load_shader(device: &wgpu::Device, path: &str) -> wgpu::ShaderModule { 24 | let spirv = &std::fs::read(path).unwrap_or_else(|_| panic!("Failed to read shader at {}!", path)); 25 | let spirv = Cow::Owned(wgpu::util::make_spirv_raw(spirv).into_owned()); 26 | device.create_shader_module(wgpu::ShaderModuleDescriptor { 27 | label: None, 28 | source: wgpu::ShaderSource::SpirV(spirv), 29 | }) 30 | } 31 | 32 | device.create_render_pipeline(&wgpu::RenderPipelineDescriptor { 33 | label: None, 34 | layout: Some(&layout), 35 | // TODO: Don't hardcode `pixel_vs`, parse `shader_type` instead. 36 | vertex: wgpu::VertexState { 37 | module: &load_shader(device, env!("gravylib_helpers.spv")), 38 | entry_point: "pixel_vs", 39 | buffers: &[], 40 | }, 41 | primitive: wgpu::PrimitiveState { 42 | topology: wgpu::PrimitiveTopology::TriangleList, 43 | strip_index_format: None, 44 | front_face: wgpu::FrontFace::Ccw, 45 | cull_mode: None, 46 | unclipped_depth: false, 47 | polygon_mode: wgpu::PolygonMode::Fill, 48 | conservative: false, 49 | }, 50 | depth_stencil: None, 51 | multisample: wgpu::MultisampleState { 52 | count: 1, 53 | mask: !0, 54 | alpha_to_coverage_enabled: false, 55 | }, 56 | // TODO: Figure out how to render to an `ImageBuffer` instead of a `Surface` 57 | fragment: Some(wgpu::FragmentState { 58 | module: &load_shader(device, &shader.bin_path.to_string_lossy()), 59 | entry_point: &shader.entry_point, 60 | targets: &[Some(wgpu::ColorTargetState { 61 | format: config.format, 62 | blend: None, 63 | write_mask: wgpu::ColorWrites::ALL, 64 | })], 65 | }), 66 | multiview: None, 67 | }) 68 | } 69 | 70 | // ** Program state 71 | 72 | // TODO: Generalize this to fit with a `RenderGraphBuilder` structure for the external interface 73 | // ?? How should we chunk this up? 74 | #[allow(dead_code)] 75 | struct State { 76 | instance: wgpu::Instance, 77 | // TODO: Figure out how to use `ImageBuffer`s as shader inputs and outputs 78 | surface: wgpu::Surface, 79 | adapter: wgpu::Adapter, 80 | device: wgpu::Device, 81 | queue: wgpu::Queue, 82 | config: wgpu::SurfaceConfiguration, 83 | size: winit::dpi::PhysicalSize, 84 | window: Window, 85 | shader: Shader, 86 | // TODO: Research `wgpu` render pipelines to determine how to generalize them 87 | pipeline: wgpu::RenderPipeline, 88 | } 89 | 90 | impl State { 91 | // Creating some of the wgpu types requires async code 92 | async fn new(window: Window, shader: Shader) -> Self { 93 | let size = window.inner_size(); 94 | 95 | let instance = wgpu::Instance::new(wgpu::InstanceDescriptor { 96 | backends: wgpu::util::backend_bits_from_env() 97 | .unwrap_or(wgpu::Backends::VULKAN | wgpu::Backends::METAL | wgpu::Backends::DX12), 98 | dx12_shader_compiler: wgpu::util::dx12_shader_compiler_from_env().unwrap_or_default(), 99 | gles_minor_version: wgpu::Gles3MinorVersion::Automatic, 100 | flags: wgpu::InstanceFlags::VALIDATION, 101 | }); 102 | 103 | let surface = unsafe { instance.create_surface(&window) } 104 | .expect("Failed to create surface from window!"); 105 | 106 | let adapter = instance.request_adapter( 107 | &wgpu::RequestAdapterOptions { 108 | power_preference: wgpu::PowerPreference::default(), 109 | compatible_surface: Some(&surface), 110 | force_fallback_adapter: false, 111 | }, 112 | ).await 113 | .expect("Failed to find an appropriate adapter!"); 114 | 115 | let (device, queue) = adapter 116 | .request_device( 117 | &wgpu::DeviceDescriptor { 118 | label: None, 119 | features: wgpu::Features::PUSH_CONSTANTS, 120 | limits: wgpu::Limits { 121 | max_push_constant_size: 128, 122 | ..Default::default() 123 | }, 124 | }, 125 | None, 126 | ) 127 | .await 128 | .expect("Failed to create device!"); 129 | 130 | let surface_caps = surface.get_capabilities(&adapter); 131 | 132 | let surface_format = surface_caps.formats.iter() 133 | .copied() 134 | .find(|f| f.is_srgb()) 135 | .unwrap_or(surface_caps.formats[0]); 136 | 137 | let mut config = wgpu::SurfaceConfiguration { 138 | usage: wgpu::TextureUsages::RENDER_ATTACHMENT, 139 | format: surface_format, 140 | width: size.width, 141 | height: size.height, 142 | present_mode: surface_caps.present_modes[0], 143 | alpha_mode: surface_caps.alpha_modes[0], 144 | view_formats: vec![], 145 | }; 146 | 147 | // NOTE(eddyb) VSync was disabled in the past, but without VSync, 148 | // especially for simpler shaders, you can easily hit thousands 149 | // of frames per second, stressing GPUs for no reason. 150 | config.present_mode = wgpu::PresentMode::AutoVsync; 151 | 152 | surface.configure(&device, &config); 153 | 154 | let pipeline = build_pipeline(&device, &config, &shader); 155 | 156 | Self { 157 | instance, 158 | window, 159 | surface, 160 | adapter, 161 | device, 162 | queue, 163 | config, 164 | size, 165 | shader, 166 | pipeline 167 | } 168 | } 169 | 170 | fn window(&self) -> &Window { 171 | &self.window 172 | } 173 | 174 | fn resize(&mut self, new_size: winit::dpi::PhysicalSize) { 175 | if new_size.width > 0 && new_size.height > 0 { 176 | self.size = new_size; 177 | self.config.width = new_size.width; 178 | self.config.height = new_size.height; 179 | self.surface.configure(&self.device, &self.config); 180 | } 181 | } 182 | 183 | fn input(&mut self, event: &WindowEvent) -> bool { 184 | match event { 185 | _ => false, // TODO: Add input handling 186 | } 187 | } 188 | 189 | fn render(&mut self, time: f32) -> Result<(), wgpu::SurfaceError> { 190 | let output = self.surface.get_current_texture()?; 191 | 192 | let view = output.texture.create_view(&wgpu::TextureViewDescriptor::default()); 193 | 194 | let mut encoder = self.device 195 | .create_command_encoder(&wgpu::CommandEncoderDescriptor { label: None }); 196 | 197 | { // ?? Why is this scoped? 198 | let mut pass = encoder.begin_render_pass(&wgpu::RenderPassDescriptor { 199 | label: None, 200 | color_attachments: &[Some(wgpu::RenderPassColorAttachment { 201 | view: &view, 202 | resolve_target: None, 203 | ops: wgpu::Operations { 204 | load: wgpu::LoadOp::Clear(wgpu::Color { 205 | r: 1.0, 206 | g: 0.0, 207 | b: 1.0, 208 | a: 1.0, 209 | }), 210 | store: wgpu::StoreOp::Store, 211 | }, 212 | })], 213 | depth_stencil_attachment: None, 214 | ..Default::default() 215 | }); 216 | 217 | let push_constants = Constants { 218 | width: self.window().inner_size().width, 219 | height: self.window().inner_size().height, 220 | time, 221 | gravylib: [0, 1, 0], 222 | }; 223 | 224 | pass.set_pipeline(&self.pipeline); 225 | pass.set_push_constants( 226 | wgpu::ShaderStages::VERTEX | wgpu::ShaderStages::FRAGMENT, 227 | 0, 228 | bytemuck::bytes_of(&push_constants), 229 | ); 230 | pass.draw(0..3, 0..1); 231 | } 232 | 233 | self.queue.submit(Some(encoder.finish())); 234 | output.present(); 235 | 236 | Ok(()) 237 | } 238 | } 239 | 240 | // ** Run the main loop 241 | 242 | pub(crate) async fn run( 243 | event_loop: EventLoop<()>, 244 | window: Window, 245 | shader: Shader 246 | ) { 247 | // ** Create the state 248 | 249 | let mut state = State::new(window, shader).await; 250 | 251 | // ** Start main loop 252 | 253 | let start = std::time::Instant::now(); 254 | 255 | event_loop.run(move |event, target| { 256 | // Have the closure take ownership of the resources. 257 | // `event_loop.run` never returns, therefore we must do this to ensure 258 | // the resources are properly cleaned up. 259 | // ?? Is this still needed? 260 | let _ = &state; 261 | 262 | // ** Handle events 263 | match event { 264 | // ** Handle window events 265 | Event::WindowEvent { 266 | ref event, 267 | window_id, 268 | } if window_id == state.window().id() => if !state.input(event) { 269 | match event { 270 | 271 | // ** Close window 272 | WindowEvent::CloseRequested 273 | | WindowEvent::KeyboardInput { 274 | event: 275 | KeyEvent { 276 | state: ElementState::Pressed, 277 | logical_key: Key::Named(NamedKey::Escape), 278 | .. 279 | }, 280 | .. 281 | } => target.exit(), 282 | 283 | // ** Toggle fullscreen 284 | WindowEvent::KeyboardInput { 285 | event: 286 | KeyEvent { 287 | logical_key: Key::Named(NamedKey::F11), 288 | state: ElementState::Pressed, 289 | .. 290 | }, 291 | .. 292 | } => { 293 | if state.window().fullscreen().is_some() { 294 | state.window().set_fullscreen(None); 295 | } else { 296 | state.window().set_fullscreen(Some(winit::window::Fullscreen::Borderless(None))); 297 | } 298 | }, 299 | 300 | // ** Redraw window 301 | WindowEvent::RedrawRequested => { 302 | state.window().request_redraw(); 303 | 304 | match state.render( 305 | start.elapsed().as_secs_f32() 306 | ) { 307 | Ok(()) => (), 308 | Err(err) => { 309 | eprintln!("Error! Could not find surface texture to display to: {err:?}"); 310 | match err { 311 | wgpu::SurfaceError::Lost => { 312 | state.surface.configure(&state.device, &state.config); 313 | } 314 | wgpu::SurfaceError::OutOfMemory => { 315 | target.exit(); 316 | } 317 | _ => (), 318 | } 319 | } 320 | } 321 | }, 322 | 323 | 324 | // ** Resize window 325 | WindowEvent::Resized(physical_size) => { 326 | state.resize(*physical_size); 327 | }, 328 | 329 | // ** Ignore other window events 330 | _ => {} 331 | } 332 | }, 333 | 334 | // ** Ignore other events 335 | _ => {} 336 | } 337 | }).expect("Event loop crashed unexpectedly!"); 338 | } -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- 1 | #![warn( 2 | future_incompatible, 3 | nonstandard_style, 4 | rust_2018_idioms 5 | )] 6 | 7 | use std::path::{Path, PathBuf}; 8 | 9 | use winit::event_loop::EventLoopBuilder; 10 | 11 | mod graphics; 12 | 13 | use graphics::run; 14 | use gravylib_helpers::*; 15 | 16 | pub struct Shader { 17 | #[allow(dead_code)] 18 | shader_type: ShaderType, 19 | bin_path: PathBuf, 20 | entry_point: String, 21 | } 22 | 23 | impl Shader{ 24 | pub fn execute(self) { 25 | // create event loop 26 | let mut event_loop_builder = EventLoopBuilder::with_user_event(); 27 | let event_loop = event_loop_builder.build().expect("Failed to create event loop!"); 28 | 29 | // create window 30 | let window = winit::window::WindowBuilder::new() 31 | .with_title("gravylib alpha (WIP)") 32 | .with_inner_size(winit::dpi::LogicalSize::new(1280.0, 720.0)) 33 | .build(&event_loop) 34 | .expect("Failed to create window!"); 35 | 36 | // run the main loop 37 | futures::executor::block_on(run( 38 | event_loop, 39 | window, 40 | self 41 | )); 42 | } 43 | } 44 | 45 | impl From<&RawShader> for Shader { 46 | fn from(raw: &RawShader) -> Self { 47 | Self { 48 | shader_type: raw.shader_type, 49 | bin_path: Path::new(raw.crate_path).join(raw.crate_name.replace("-", "_") + ".spv"), 50 | entry_point: raw.entry_point.to_owned(), 51 | } 52 | } 53 | } 54 | 55 | // TODO: Use a `RenderGraphBuilder` for the external interface 56 | --------------------------------------------------------------------------------