| 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] |
| 13 | edition = "2024" |
| 14 | name = "gpui-base" |
| 15 | version = "0.7.1" |
| 16 | build = false |
| 17 | exclude = ["examples/"] |
| 18 | publish = true |
| 19 | autolib = false |
| 20 | autobins = false |
| 21 | autoexamples = false |
| 22 | autotests = false |
| 23 | autobenches = false |
| 24 | description = "Behavior, interaction, and infrastructure foundations for GPUI applications." |
| 25 | homepage = "https://gpui-kit.com" |
| 26 | documentation = "https://docs.rs/gpui-base" |
| 27 | readme = "README.md" |
| 28 | keywords = [ |
| 29 | "desktop", |
| 30 | "gpui", |
| 31 | "ui", |
| 32 | "foundation", |
| 33 | ] |
| 34 | license = "Apache-2.0" |
| 35 | repository = "https://github.com/longbridge/gpui-kit" |
| 36 | resolver = "2" |
| 37 | |
| 38 | [features] |
| 39 | decimal = ["dep:rust_decimal"] |
| 40 | inspector = [ |
| 41 | "gpui_macros/inspector", |
| 42 | "gpui/inspector", |
| 43 | ] |
| 44 | test-support = ["gpui/test-support"] |
| 45 | |
| 46 | [lib] |
| 47 | name = "gpui_base" |
| 48 | path = "src/lib.rs" |
| 49 | doctest = false |
| 50 | |
| 51 | [[test]] |
| 52 | name = "element_ext" |
| 53 | path = "tests/element_ext.rs" |
| 54 | |
| 55 | [[bench]] |
| 56 | name = "motion" |
| 57 | path = "benches/motion.rs" |
| 58 | harness = false |
| 59 | |
| 60 | [[bench]] |
| 61 | name = "text_view_scroll" |
| 62 | path = "benches/text_view_scroll.rs" |
| 63 | harness = false |
| 64 | |
| 65 | [dependencies.aho-corasick] |
| 66 | version = "1.1.3" |
| 67 | |
| 68 | [dependencies.anyhow] |
| 69 | version = "1" |
| 70 | |
| 71 | [dependencies.chrono] |
| 72 | version = "0.4.38" |
| 73 | |
| 74 | [dependencies.data-url] |
| 75 | version = "0.3" |
| 76 | |
| 77 | [dependencies.futures] |
| 78 | version = "0.3" |
| 79 | |
| 80 | [dependencies.gpui] |
| 81 | version = "=0.3.8" |
| 82 | package = "gpui-pre" |
| 83 | |
| 84 | [dependencies.gpui_macros] |
| 85 | version = "=0.3.8" |
| 86 | package = "gpui-pre-macros" |
| 87 | |
| 88 | [dependencies.html5ever] |
| 89 | version = "0.27" |
| 90 | |
| 91 | [dependencies.instant] |
| 92 | version = "0.1" |
| 93 | features = ["wasm-bindgen"] |
| 94 | |
| 95 | [dependencies.itertools] |
| 96 | version = "0.13.0" |
| 97 | |
| 98 | [dependencies.lsp-types] |
| 99 | version = "0.97.0" |
| 100 | features = ["proposed"] |
| 101 | |
| 102 | [dependencies.markdown] |
| 103 | version = "1.0.0" |
| 104 | features = ["serde"] |
| 105 | |
| 106 | [dependencies.markup5ever_rcdom] |
| 107 | version = "0.3.0" |
| 108 | |
| 109 | [dependencies.num-traits] |
| 110 | version = "0.2" |
| 111 | |
| 112 | [dependencies.regex] |
| 113 | version = "1" |
| 114 | |
| 115 | [dependencies.ropey] |
| 116 | version = "=2.0.0-beta.1" |
| 117 | features = [ |
| 118 | "metric_chars", |
| 119 | "metric_lines_lf", |
| 120 | "metric_utf16", |
| 121 | ] |
| 122 | |
| 123 | [dependencies.rust_decimal] |
| 124 | version = "1.37.0" |
| 125 | optional = true |
| 126 | |
| 127 | [dependencies.schemars] |
| 128 | version = "1" |
| 129 | |
| 130 | [dependencies.serde] |
| 131 | version = "1.0.219" |
| 132 | features = ["derive"] |
| 133 | |
| 134 | [dependencies.serde_json] |
| 135 | version = "1" |
| 136 | |
| 137 | [dependencies.smallvec] |
| 138 | version = "1" |
| 139 | |
| 140 | [dependencies.sum-tree] |
| 141 | version = "=0.3.8" |
| 142 | package = "gpui-pre-sum-tree" |
| 143 | |
| 144 | [dependencies.tracing] |
| 145 | version = "0.1.41" |
| 146 | |
| 147 | [dependencies.unicode-linebreak] |
| 148 | version = "0.1.5" |
| 149 | |
| 150 | [dependencies.unicode-segmentation] |
| 151 | version = "1.12.0" |
| 152 | |
| 153 | [dependencies.web-time] |
| 154 | version = "1" |
| 155 | |
| 156 | [dev-dependencies.criterion] |
| 157 | version = "0.5" |
| 158 | |
| 159 | [dev-dependencies.gpui] |
| 160 | version = "=0.3.8" |
| 161 | features = [ |
| 162 | "test-support", |
| 163 | "bench-support", |
| 164 | ] |
| 165 | package = "gpui-pre" |
| 166 | |
| 167 | [dev-dependencies.gpui_platform] |
| 168 | version = "=0.3.8" |
| 169 | features = [ |
| 170 | "font-kit", |
| 171 | "x11", |
| 172 | "wayland", |
| 173 | "runtime_shaders", |
| 174 | "bench-support", |
| 175 | ] |
| 176 | package = "gpui-pre-platform" |
| 177 | |
| 178 | [dev-dependencies.indoc] |
| 179 | version = "2" |
| 180 | |
| 181 | [dev-dependencies.reqwest_client] |
| 182 | version = "=0.3.8" |
| 183 | package = "gpui-pre-reqwest-client" |
| 184 | |
| 185 | [target.'cfg(not(target_family = "wasm"))'.dependencies.smol] |
| 186 | version = "2" |
| 187 | |
| 188 | [target.'cfg(target_family = "wasm")'.dependencies.async-channel] |
| 189 | version = "2.3.1" |
| 190 | |
| 191 | [target.'cfg(target_os = "linux")'.dependencies.ashpd] |
| 192 | version = "0.13" |
| 193 | features = [ |
| 194 | "async-io", |
| 195 | "settings", |
| 196 | ] |
| 197 | default-features = false |
| 198 | |
| 199 | [target.'cfg(target_os = "macos")'.dependencies.objc2] |
| 200 | version = "0.6" |
| 201 | |
| 202 | [target.'cfg(target_os = "macos")'.dependencies.objc2-app-kit] |
| 203 | version = "0.3" |
| 204 | features = [ |
| 205 | "NSAccessibility", |
| 206 | "NSView", |
| 207 | "NSWindow", |
| 208 | "NSWorkspace", |
| 209 | ] |
| 210 | |
| 211 | [target.'cfg(target_os = "macos")'.dependencies.objc2-foundation] |
| 212 | version = "0.3" |
| 213 | features = [ |
| 214 | "NSGeometry", |
| 215 | "NSString", |
| 216 | ] |
| 217 | |
| 218 | [target.'cfg(target_os = "macos")'.dependencies.raw-window-handle] |
| 219 | version = "0.6.2" |
| 220 | |
| 221 | [target.'cfg(target_os = "windows")'.dependencies.windows] |
| 222 | version = "0.58.0" |
| 223 | features = [ |
| 224 | "Wdk", |
| 225 | "Wdk_System", |
| 226 | "Wdk_System_SystemServices", |
| 227 | "Win32_Foundation", |
| 228 | "Win32_UI_WindowsAndMessaging", |
| 229 | ] |
| 230 | |
| 231 | [lints.clippy] |
| 232 | almost_complete_range = "allow" |
| 233 | arc_with_non_send_sync = "allow" |
| 234 | borrowed_box = "allow" |
| 235 | dbg_macro = "deny" |
| 236 | let_underscore_future = "allow" |
| 237 | manual_is_multiple_of = "allow" |
| 238 | map_entry = "allow" |
| 239 | module_inception = "allow" |
| 240 | non_canonical_partial_ord_impl = "allow" |
| 241 | reversed_empty_ranges = "allow" |
| 242 | single_range_in_vec_init = "allow" |
| 243 | todo = "deny" |
| 244 | type_complexity = "allow" |
| 245 | useless_conversion = "allow" |
| 246 | |
| 247 | [lints.clippy.style] |
| 248 | level = "allow" |
| 249 | priority = -1 |
| 250 | |
| 251 | [workspace] |