
Fix bugs caused by the window context PR, where the window could be on the stack and is then requested from the App. This PR also adds derive macros for `AppContext` and `VisualContext` so that it's easy to define further contexts in API code, such as `editor::BlockContext`. Release Notes: - N/A
22 lines
379 B
TOML
22 lines
379 B
TOML
[package]
|
|
name = "gpui_macros"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
publish.workspace = true
|
|
license = "Apache-2.0"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[lib]
|
|
path = "src/gpui_macros.rs"
|
|
proc-macro = true
|
|
doctest = true
|
|
|
|
[dependencies]
|
|
proc-macro2 = "1.0.66"
|
|
quote = "1.0.9"
|
|
syn = { version = "1.0.72", features = ["full", "extra-traits"] }
|
|
|
|
[dev-dependencies]
|
|
gpui.workspace = true
|