gpui: add example sections in Cargo.toml (#8174)

So that we can run the example simply by `cargo run --example hello_world`

Release Notes:
- N/A
This commit is contained in:
Xinzhao Xu
2024-02-22 11:18:34 +02:00
committed by GitHub
parent aa34e306f7
commit 6f36527bc6
+12
View File
@@ -115,3 +115,15 @@ blade-macros.workspace = true
blade-rwh.workspace = true
bytemuck = "1"
cosmic-text = "0.10.0"
[[example]]
name = "hello_world"
path = "examples/hello_world.rs"
[[example]]
name = "image"
path = "examples/image.rs"
[[example]]
name = "ownership_post"
path = "examples/ownership_post.rs"