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 17:18:34 +08:00 committed by GitHub
parent aa34e306f7
commit 6f36527bc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"