Add blade dependency

This commit is contained in:
Dzmitry Malyshau
2024-02-01 21:27:43 -08:00
parent 69e0ea92e4
commit ef4ef5f0e8
6 changed files with 16 additions and 11 deletions
+3 -3
View File
@@ -23,6 +23,6 @@ serde_derive.workspace = true
util = { path = "../util" }
[target.'cfg(target_os = "macos")'.dependencies]
core-foundation = "0.9"
core-services = "0.2"
plist = "1.3"
#core-foundation = "0.9"
#core-services = "0.2"
#plist = "1.3"
+2
View File
@@ -26,6 +26,8 @@ anyhow.workspace = true
async-task = "4.7"
backtrace = { version = "0.3", optional = true }
bitflags = "2.4.0"
blade-graphics = "0.3"
blade-macros = "0.2"
collections = { path = "../collections" }
ctor.workspace = true
derive_more.workspace = true
+5 -5
View File
@@ -6,12 +6,12 @@ use std::{
use cbindgen::Config;
fn main() {
generate_dispatch_bindings();
//generate_dispatch_bindings();
let header_path = generate_shader_bindings();
#[cfg(feature = "runtime_shaders")]
emit_stitched_shaders(&header_path);
#[cfg(not(feature = "runtime_shaders"))]
compile_metal_shaders(&header_path);
//#[cfg(feature = "runtime_shaders")]
//emit_stitched_shaders(&header_path);
//#[cfg(not(feature = "runtime_shaders"))]
//compile_metal_shaders(&header_path);
}
fn generate_dispatch_bindings() {
+1 -2
View File
@@ -6,8 +6,7 @@
//! ## Getting Started
//!
//! GPUI is still in active development as we work on the Zed code editor and isn't yet on crates.io.
//! You'll also need to use the latest version of stable rust and be on macOS. Add the following to your
//! Cargo.toml:
//! You'll also need to use the latest version of stable rust. Add the following to your Cargo.toml:
//!
//! ```
//! gpui = { git = "https://github.com/zed-industries/zed" }