Checkpoint
This commit is contained in:
@@ -13,7 +13,7 @@ anyhow.workspace = true
|
||||
derive_more.workspace = true
|
||||
gpui = { path = ".." }
|
||||
log.workspace = true
|
||||
playground_macros = { path = "../playground_macros" }
|
||||
gpui2_macros = { path = "../../gpui2_macros" }
|
||||
parking_lot.workspace = true
|
||||
refineable.workspace = true
|
||||
rust-embed.workspace = true
|
||||
|
||||
@@ -7,7 +7,7 @@ use crate::{
|
||||
// themes::Theme,
|
||||
};
|
||||
use gpui::{platform::MouseButton, ViewContext};
|
||||
use playground_macros::Element;
|
||||
use gpui2_macros::Element;
|
||||
use std::{marker::PhantomData, rc::Rc};
|
||||
|
||||
struct ButtonHandlers<V, D> {
|
||||
|
||||
@@ -16,7 +16,7 @@ use gpui::{
|
||||
},
|
||||
taffy,
|
||||
};
|
||||
use playground_macros::styleable_helpers;
|
||||
use gpui2_macros::styleable_helpers;
|
||||
use refineable::{Refineable, RefinementCascade};
|
||||
|
||||
#[derive(Clone, Refineable)]
|
||||
|
||||
@@ -5,7 +5,7 @@ use crate::{
|
||||
themes::theme,
|
||||
};
|
||||
use gpui::{geometry::pixels, ViewContext};
|
||||
use playground_macros::Element;
|
||||
use gpui2_macros::Element;
|
||||
|
||||
use crate as playground;
|
||||
#[derive(Element)]
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
[package]
|
||||
name = "gpui2"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
@@ -0,0 +1,14 @@
|
||||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
[package]
|
||||
name = "playground_macros"
|
||||
name = "gpui2_macros"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
publish = false
|
||||
|
||||
[lib]
|
||||
path = "src/playground_macros.rs"
|
||||
path = "src/gpui2_macros.rs"
|
||||
proc-macro = true
|
||||
|
||||
[dependencies]
|
||||
Reference in New Issue
Block a user