forge
Explore
Log in

Don't you dare go Hollow

edith

Clone
★ 0

0 watching0 forksRust18.3 MiBff99ad6Tahinli6 days ago1055 commits

Cargo.toml749 lines, 15.2 KiBHistoryRawDownload
1# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2#
3# When uploading crates to the registry Cargo will automatically
4# "normalize" Cargo.toml files for maximal compatibility
5# with all versions of Cargo and also rewrite `path` dependencies
6# to registry (e.g., crates.io) dependencies.
7#
8# If you are reading this file be aware that the original Cargo.toml
9# will likely look very different (and much more reasonable).
10# See Cargo.toml.orig for the original contents.
11
12[package]
13edition = "2024"
14name = "gpui"
15version = "0.2.2"
16authors = ["Nathan Sobo <nathan@zed.dev>"]
17build = "build.rs"
18publish = true
19autolib = false
20autobins = false
21autoexamples = false
22autotests = false
23autobenches = false
24description = "Zed's GPU-accelerated UI framework"
25homepage = "https://gpui.rs"
26readme = "README.md"
27keywords = [
28 "desktop",
29 "gui",
30 "immediate",
31]
32categories = ["gui"]
33license = "Apache-2.0"
34repository = "https://github.com/zed-industries/zed"
35resolver = "2"
36
37[features]
38default = [
39 "font-kit",
40 "wayland",
41 "x11",
42 "windows-manifest",
43]
44inspector = ["gpui_macros/inspector"]
45leak-detection = ["backtrace"]
46macos-blade = [
47 "blade-graphics",
48 "blade-macros",
49 "blade-util",
50 "bytemuck",
51 "objc2",
52 "objc2-metal",
53]
54runtime_shaders = []
55screen-capture = ["scap"]
56test-support = [
57 "leak-detection",
58 "collections/test-support",
59 "rand",
60 "util/test-support",
61 "http_client/test-support",
62 "wayland",
63 "x11",
64]
65wayland = [
66 "blade-graphics",
67 "blade-macros",
68 "blade-util",
69 "bytemuck",
70 "ashpd/wayland",
71 "cosmic-text",
72 "font-kit",
73 "calloop-wayland-source",
74 "wayland-backend",
75 "wayland-client",
76 "wayland-cursor",
77 "wayland-protocols",
78 "wayland-protocols-plasma",
79 "filedescriptor",
80 "xkbcommon",
81 "open",
82]
83windows-manifest = []
84x11 = [
85 "blade-graphics",
86 "blade-macros",
87 "blade-util",
88 "bytemuck",
89 "ashpd",
90 "cosmic-text",
91 "font-kit",
92 "as-raw-xcb-connection",
93 "x11rb",
94 "xkbcommon",
95 "xim",
96 "x11-clipboard",
97 "filedescriptor",
98 "open",
99 "scap?/x11",
100]
101
102[lib]
103name = "gpui"
104path = "src/gpui.rs"
105doctest = false
106
107[[example]]
108name = "animation"
109path = "examples/animation.rs"
110
111[[example]]
112name = "data_table"
113path = "examples/data_table.rs"
114
115[[example]]
116name = "drag_drop"
117path = "examples/drag_drop.rs"
118
119[[example]]
120name = "gif_viewer"
121path = "examples/gif_viewer.rs"
122
123[[example]]
124name = "gradient"
125path = "examples/gradient.rs"
126
127[[example]]
128name = "grid_layout"
129path = "examples/grid_layout.rs"
130
131[[example]]
132name = "hello_world"
133path = "examples/hello_world.rs"
134
135[[example]]
136name = "image"
137path = "examples/image/image.rs"
138
139[[example]]
140name = "image_gallery"
141path = "examples/image_gallery.rs"
142
143[[example]]
144name = "image_loading"
145path = "examples/image_loading.rs"
146
147[[example]]
148name = "input"
149path = "examples/input.rs"
150
151[[example]]
152name = "on_window_close_quit"
153path = "examples/on_window_close_quit.rs"
154
155[[example]]
156name = "opacity"
157path = "examples/opacity.rs"
158
159[[example]]
160name = "ownership_post"
161path = "examples/ownership_post.rs"
162
163[[example]]
164name = "painting"
165path = "examples/painting.rs"
166
167[[example]]
168name = "paths_bench"
169path = "examples/paths_bench.rs"
170
171[[example]]
172name = "pattern"
173path = "examples/pattern.rs"
174
175[[example]]
176name = "scrollable"
177path = "examples/scrollable.rs"
178
179[[example]]
180name = "set_menus"
181path = "examples/set_menus.rs"
182
183[[example]]
184name = "shadow"
185path = "examples/shadow.rs"
186
187[[example]]
188name = "svg"
189path = "examples/svg/svg.rs"
190
191[[example]]
192name = "tab_stop"
193path = "examples/tab_stop.rs"
194
195[[example]]
196name = "text"
197path = "examples/text.rs"
198
199[[example]]
200name = "text_layout"
201path = "examples/text_layout.rs"
202
203[[example]]
204name = "text_wrapper"
205path = "examples/text_wrapper.rs"
206
207[[example]]
208name = "tree"
209path = "examples/tree.rs"
210
211[[example]]
212name = "uniform_list"
213path = "examples/uniform_list.rs"
214
215[[example]]
216name = "window"
217path = "examples/window.rs"
218
219[[example]]
220name = "window_positioning"
221path = "examples/window_positioning.rs"
222
223[[example]]
224name = "window_shadow"
225path = "examples/window_shadow.rs"
226
227[[test]]
228name = "action_macros"
229path = "tests/action_macros.rs"
230
231[dependencies.anyhow]
232version = "1.0.86"
233
234[dependencies.async-task]
235version = "4.7"
236
237[dependencies.backtrace]
238version = "0.3"
239optional = true
240
241[dependencies.blade-graphics]
242version = "0.7.0"
243optional = true
244
245[dependencies.blade-macros]
246version = "0.3.0"
247optional = true
248
249[dependencies.blade-util]
250version = "0.3.0"
251optional = true
252
253[dependencies.bytemuck]
254version = "1"
255optional = true
256
257[dependencies.collections]
258version = "0.2.2"
259package = "gpui_collections"
260
261[dependencies.ctor]
262version = "0.4.0"
263
264[dependencies.derive_more]
265version = "0.99.17"
266
267[dependencies.etagere]
268version = "0.2"
269
270[dependencies.futures]
271version = "0.3"
272
273[dependencies.gpui_macros]
274version = "0.2.2"
275package = "gpui-macros"
276
277[dependencies.http_client]
278version = "0.2.2"
279package = "gpui_http_client"
280
281[dependencies.image]
282version = "0.25.1"
283
284[dependencies.inventory]
285version = "0.3.19"
286
287[dependencies.itertools]
288version = "0.14.0"
289
290[dependencies.libc]
291version = "0.2"
292
293[dependencies.log]
294version = "0.4.16"
295features = [
296 "kv_unstable_serde",
297 "serde",
298]
299
300[dependencies.lyon]
301version = "1.0"
302
303[dependencies.num_cpus]
304version = "1.13"
305
306[dependencies.parking]
307version = "2.0.0"
308
309[dependencies.parking_lot]
310version = "0.12.1"
311
312[dependencies.pin-project]
313version = "1.1.10"
314
315[dependencies.postage]
316version = "0.5"
317features = ["futures-traits"]
318
319[dependencies.profiling]
320version = "1"
321
322[dependencies.rand]
323version = "0.9"
324optional = true
325
326[dependencies.raw-window-handle]
327version = "0.6"
328
329[dependencies.refineable]
330version = "0.2.2"
331package = "gpui_refineable"
332
333[dependencies.resvg]
334version = "0.45.0"
335features = [
336 "text",
337 "system-fonts",
338 "memmap-fonts",
339]
340default-features = false
341
342[dependencies.schemars]
343version = "1.0"
344features = ["indexmap2"]
345
346[dependencies.seahash]
347version = "4.1"
348
349[dependencies.semantic_version]
350version = "0.2.2"
351package = "gpui_semantic_version"
352
353[dependencies.serde]
354version = "1.0.221"
355features = [
356 "derive",
357 "rc",
358]
359
360[dependencies.serde_json]
361version = "1.0.144"
362features = [
363 "preserve_order",
364 "raw_value",
365]
366
367[dependencies.slotmap]
368version = "1.0.6"
369
370[dependencies.smallvec]
371version = "1.6"
372features = ["union"]
373
374[dependencies.smol]
375version = "2.0"
376
377[dependencies.stacksafe]
378version = "0.1"
379
380[dependencies.strum]
381version = "0.27.2"
382features = ["derive"]
383
384[dependencies.sum_tree]
385version = "0.2.2"
386package = "gpui_sum_tree"
387
388[dependencies.taffy]
389version = "=0.9.0"
390
391[dependencies.thiserror]
392version = "2.0.12"
393
394[dependencies.usvg]
395version = "0.45.0"
396default-features = false
397
398[dependencies.util]
399version = "0.2.2"
400package = "gpui_util"
401
402[dependencies.util_macros]
403version = "0.2.2"
404package = "gpui_util_macros"
405
406[dependencies.uuid]
407version = "1.1.2"
408features = [
409 "v4",
410 "v5",
411 "v7",
412 "serde",
413]
414
415[dependencies.waker-fn]
416version = "1.2.0"
417
418[dev-dependencies.backtrace]
419version = "0.3"
420
421[dev-dependencies.collections]
422version = "0.2.2"
423features = ["test-support"]
424package = "gpui_collections"
425
426[dev-dependencies.env_logger]
427version = "0.11"
428
429[dev-dependencies.http_client]
430version = "0.2.2"
431features = ["test-support"]
432package = "gpui_http_client"
433
434[dev-dependencies.lyon]
435version = "1.0"
436features = ["extra"]
437
438[dev-dependencies.pretty_assertions]
439version = "1.3.0"
440features = ["unstable"]
441
442[dev-dependencies.rand]
443version = "0.9"
444
445[dev-dependencies.unicode-segmentation]
446version = "1.10"
447
448[dev-dependencies.util]
449version = "0.2.2"
450features = ["test-support"]
451package = "gpui_util"
452
453[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.as-raw-xcb-connection]
454version = "1"
455optional = true
456
457[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.ashpd]
458version = "0.11"
459features = ["async-std"]
460optional = true
461default-features = false
462
463[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.blade-graphics]
464version = "0.7.0"
465optional = true
466
467[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.blade-macros]
468version = "0.3.0"
469optional = true
470
471[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.blade-util]
472version = "0.3.0"
473optional = true
474
475[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.bytemuck]
476version = "1"
477optional = true
478
479[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.calloop]
480version = "0.13.0"
481
482[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.calloop-wayland-source]
483version = "0.3.0"
484optional = true
485
486[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.cosmic-text]
487version = "0.14.0"
488optional = true
489
490[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.filedescriptor]
491version = "0.8.2"
492optional = true
493
494[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.flume]
495version = "0.11"
496
497[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.font-kit]
498version = "0.14.1-zed"
499features = ["source-fontconfig-dlopen"]
500optional = true
501package = "zed-font-kit"
502
503[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.oo7]
504version = "0.5.0"
505features = [
506 "async-std",
507 "native_crypto",
508]
509default-features = false
510
511[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.open]
512version = "5.2.0"
513optional = true
514
515[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.wayland-backend]
516version = "0.3.3"
517features = [
518 "client_system",
519 "dlopen",
520]
521optional = true
522
523[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.wayland-client]
524version = "0.31.2"
525optional = true
526
527[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.wayland-cursor]
528version = "0.31.1"
529optional = true
530
531[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.wayland-protocols]
532version = "0.31.2"
533features = [
534 "client",
535 "staging",
536 "unstable",
537]
538optional = true
539
540[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.wayland-protocols-plasma]
541version = "0.2.0"
542features = ["client"]
543optional = true
544
545[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.x11-clipboard]
546version = "0.9.3"
547optional = true
548
549[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.x11rb]
550version = "0.13.1"
551features = [
552 "allow-unsafe-code",
553 "xkb",
554 "randr",
555 "xinput",
556 "cursor",
557 "resource_manager",
558 "sync",
559]
560optional = true
561
562[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.xim]
563version = "0.4.0-zed"
564features = [
565 "x11rb-xcb",
566 "x11rb-client",
567]
568optional = true
569package = "zed-xim"
570
571[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.dependencies.xkbcommon]
572version = "0.8.0"
573features = [
574 "wayland",
575 "x11",
576]
577optional = true
578
579[target.'cfg(any(target_os = "linux", target_os = "freebsd"))'.build-dependencies.naga]
580version = "25.0"
581features = ["wgsl-in"]
582
583[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "macos"))'.dependencies.pathfinder_geometry]
584version = "0.5"
585
586[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "windows"))'.dependencies.scap]
587version = "0.0.8-zed"
588optional = true
589default-features = false
590package = "zed-scap"
591
592[target.'cfg(target_os = "macos")'.dependencies.block]
593version = "0.1"
594
595[target.'cfg(target_os = "macos")'.dependencies.cocoa]
596version = "=0.26.0"
597
598[target.'cfg(target_os = "macos")'.dependencies.cocoa-foundation]
599version = "=0.2.0"
600
601[target.'cfg(target_os = "macos")'.dependencies.core-foundation]
602version = "=0.10.0"
603
604[target.'cfg(target_os = "macos")'.dependencies.core-foundation-sys]
605version = "0.8.6"
606
607[target.'cfg(target_os = "macos")'.dependencies.core-graphics]
608version = "0.24"
609
610[target.'cfg(target_os = "macos")'.dependencies.core-text]
611version = "21"
612
613[target.'cfg(target_os = "macos")'.dependencies.core-video]
614version = "0.4.3"
615features = ["metal"]
616
617[target.'cfg(target_os = "macos")'.dependencies.font-kit]
618version = "0.14.1-zed"
619optional = true
620package = "zed-font-kit"
621
622[target.'cfg(target_os = "macos")'.dependencies.foreign-types]
623version = "0.5"
624
625[target.'cfg(target_os = "macos")'.dependencies.log]
626version = "0.4.16"
627features = [
628 "kv_unstable_serde",
629 "serde",
630]
631
632[target.'cfg(target_os = "macos")'.dependencies.media]
633version = "0.2.2"
634package = "gpui_media"
635
636[target.'cfg(target_os = "macos")'.dependencies.metal]
637version = "0.29"
638
639[target.'cfg(target_os = "macos")'.dependencies.objc]
640version = "0.2"
641
642[target.'cfg(target_os = "macos")'.dependencies.objc2]
643version = "0.6"
644optional = true
645
646[target.'cfg(target_os = "macos")'.dependencies.objc2-metal]
647version = "0.3"
648optional = true
649
650[target.'cfg(target_os = "macos")'.build-dependencies.bindgen]
651version = "0.71"
652
653[target.'cfg(target_os = "macos")'.build-dependencies.cbindgen]
654version = "0.28.0"
655default-features = false
656
657[target.'cfg(target_os = "macos")'.build-dependencies.naga]
658version = "25.0"
659features = ["wgsl-in"]
660
661[target.'cfg(target_os = "windows")'.dependencies.flume]
662version = "0.11"
663
664[target.'cfg(target_os = "windows")'.dependencies.rand]
665version = "0.9"
666
667[target.'cfg(target_os = "windows")'.dependencies.windows]
668version = "0.61"
669features = [
670 "Foundation_Numerics",
671 "Storage_Search",
672 "Storage_Streams",
673 "System_Threading",
674 "UI_ViewManagement",
675 "Wdk_System_SystemServices",
676 "Win32_Globalization",
677 "Win32_Graphics_Direct3D",
678 "Win32_Graphics_Direct3D11",
679 "Win32_Graphics_Direct3D_Fxc",
680 "Win32_Graphics_DirectComposition",
681 "Win32_Graphics_DirectWrite",
682 "Win32_Graphics_Dwm",
683 "Win32_Graphics_Dxgi",
684 "Win32_Graphics_Dxgi_Common",
685 "Win32_Graphics_Gdi",
686 "Win32_Graphics_Imaging",
687 "Win32_Graphics_Hlsl",
688 "Win32_Networking_WinSock",
689 "Win32_Security",
690 "Win32_Security_Credentials",
691 "Win32_Security_Cryptography",
692 "Win32_Storage_FileSystem",
693 "Win32_System_Com",
694 "Win32_System_Com_StructuredStorage",
695 "Win32_System_Console",
696 "Win32_System_DataExchange",
697 "Win32_System_IO",
698 "Win32_System_LibraryLoader",
699 "Win32_System_Memory",
700 "Win32_System_Ole",
701 "Win32_System_Performance",
702 "Win32_System_Pipes",
703 "Win32_System_SystemInformation",
704 "Win32_System_SystemServices",
705 "Win32_System_Threading",
706 "Win32_System_Variant",
707 "Win32_System_WinRT",
708 "Win32_UI_Controls",
709 "Win32_UI_HiDpi",
710 "Win32_UI_Input_Ime",
711 "Win32_UI_Input_KeyboardAndMouse",
712 "Win32_UI_Shell",
713 "Win32_UI_Shell_Common",
714 "Win32_UI_Shell_PropertiesSystem",
715 "Win32_UI_WindowsAndMessaging",
716]
717
718[target.'cfg(target_os = "windows")'.dependencies.windows-core]
719version = "0.61"
720
721[target.'cfg(target_os = "windows")'.dependencies.windows-numerics]
722version = "0.2"
723
724[target.'cfg(target_os = "windows")'.dependencies.windows-registry]
725version = "0.5"
726
727[target.'cfg(target_os = "windows")'.build-dependencies.embed-resource]
728version = "3.0"
729
730[lints.clippy]
731dbg_macro = "deny"
732declare_interior_mutable_const = "deny"
733disallowed_methods = "deny"
734large_enum_variant = "allow"
735let_underscore_future = "allow"
736nonminimal_bool = "allow"
737redundant_clone = "deny"
738single_range_in_vec_init = "allow"
739todo = "deny"
740too_many_arguments = "allow"
741type_complexity = "allow"
742
743[lints.clippy.style]
744level = "allow"
745priority = -1
746
747[lints.rust.unexpected_cfgs]
748level = "allow"
749priority = 0