| 1 | [package] |
| 2 | description = "Behavior, interaction, and infrastructure foundations for GPUI applications." |
| 3 | keywords = ["desktop", "gpui", "ui", "foundation"] |
| 4 | license = "Apache-2.0" |
| 5 | name = "gpui-base" |
| 6 | # The examples are development tools that read fixtures from `crates/story`; |
| 7 | # they stay out of the published package. |
| 8 | exclude = ["examples/"] |
| 9 | repository = "https://github.com/longbridge/gpui-kit" |
| 10 | homepage = "https://gpui-kit.com" |
| 11 | documentation = "https://docs.rs/gpui-base" |
| 12 | version = "0.7.1" |
| 13 | publish = true |
| 14 | edition.workspace = true |
| 15 | |
| 16 | [lib] |
| 17 | doctest = false |
| 18 | |
| 19 | [[bench]] |
| 20 | name = "motion" |
| 21 | harness = false |
| 22 | |
| 23 | [[bench]] |
| 24 | name = "text_view_scroll" |
| 25 | harness = false |
| 26 | |
| 27 | [features] |
| 28 | decimal = ["dep:rust_decimal"] |
| 29 | test-support = ["gpui/test-support"] |
| 30 | inspector = ["gpui_macros/inspector", "gpui/inspector"] |
| 31 | |
| 32 | [dependencies] |
| 33 | anyhow.workspace = true |
| 34 | aho-corasick = "1.1.3" |
| 35 | chrono = "0.4.38" |
| 36 | data-url = "0.3" |
| 37 | futures = "0.3" |
| 38 | gpui.workspace = true |
| 39 | gpui_macros.workspace = true |
| 40 | instant.workspace = true |
| 41 | itertools = "0.13.0" |
| 42 | lsp-types.workspace = true |
| 43 | markdown = { version = "1.0.0", features = ["serde"] } |
| 44 | html5ever = "0.27" |
| 45 | markup5ever_rcdom = "0.3.0" |
| 46 | num-traits = "0.2" |
| 47 | ropey.workspace = true |
| 48 | regex = "1" |
| 49 | rust_decimal = { version = "1.37.0", optional = true } |
| 50 | schemars.workspace = true |
| 51 | serde.workspace = true |
| 52 | serde_json.workspace = true |
| 53 | smallvec.workspace = true |
| 54 | sum-tree.workspace = true |
| 55 | tracing.workspace = true |
| 56 | unicode-linebreak = "0.1.5" |
| 57 | unicode-segmentation = "1.12.0" |
| 58 | web-time = "1" |
| 59 | |
| 60 | [target.'cfg(not(target_family = "wasm"))'.dependencies] |
| 61 | smol.workspace = true |
| 62 | |
| 63 | [target.'cfg(target_family = "wasm")'.dependencies] |
| 64 | async-channel = "2.3.1" |
| 65 | |
| 66 | [target.'cfg(target_os = "macos")'.dependencies] |
| 67 | raw-window-handle.workspace = true |
| 68 | objc2 = "0.6" |
| 69 | objc2-app-kit = { version = "0.3", features = ["NSAccessibility", "NSView", "NSWindow", "NSWorkspace"] } |
| 70 | objc2-foundation = { version = "0.3", features = ["NSGeometry", "NSString"] } |
| 71 | |
| 72 | [target.'cfg(target_os = "windows")'.dependencies] |
| 73 | # The reduced-motion preference (SystemParametersInfoW). |
| 74 | windows = { workspace = true, features = ["Win32_Foundation", "Win32_UI_WindowsAndMessaging"] } |
| 75 | |
| 76 | [target.'cfg(target_os = "linux")'.dependencies] |
| 77 | # The reduced-motion preference, through the XDG desktop portal's Settings |
| 78 | # interface. The same version and features `gpui-pre-linux` already pulls in. |
| 79 | ashpd = { version = "0.13", default-features = false, features = ["async-io", "settings"] } |
| 80 | |
| 81 | [dev-dependencies] |
| 82 | criterion = "0.5" |
| 83 | gpui = { workspace = true, features = ["test-support", "bench-support"] } |
| 84 | gpui_platform = { workspace = true, features = ["bench-support"] } |
| 85 | indoc = "2" |
| 86 | reqwest_client.workspace = true |
| 87 | |
| 88 | [lints] |
| 89 | workspace = true |