From 6f36527bc69a7f1c69688451703dad53bd56be14 Mon Sep 17 00:00:00 2001 From: Xinzhao Xu Date: Thu, 22 Feb 2024 17:18:34 +0800 Subject: [PATCH] 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 --- crates/gpui/Cargo.toml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/gpui/Cargo.toml b/crates/gpui/Cargo.toml index a55edcab19..715ce36be7 100644 --- a/crates/gpui/Cargo.toml +++ b/crates/gpui/Cargo.toml @@ -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"