Add ui2 crate
This commit is contained in:
Generated
+16
@@ -7829,6 +7829,7 @@ dependencies = [
|
|||||||
"smallvec",
|
"smallvec",
|
||||||
"strum",
|
"strum",
|
||||||
"theme",
|
"theme",
|
||||||
|
"ui2",
|
||||||
"util",
|
"util",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -9051,6 +9052,21 @@ dependencies = [
|
|||||||
"theme",
|
"theme",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "ui2"
|
||||||
|
version = "0.1.0"
|
||||||
|
dependencies = [
|
||||||
|
"anyhow",
|
||||||
|
"chrono",
|
||||||
|
"gpui3",
|
||||||
|
"rand 0.8.5",
|
||||||
|
"serde",
|
||||||
|
"settings",
|
||||||
|
"smallvec",
|
||||||
|
"strum",
|
||||||
|
"theme",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "unicase"
|
name = "unicase"
|
||||||
version = "2.7.0"
|
version = "2.7.0"
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ members = [
|
|||||||
"crates/theme",
|
"crates/theme",
|
||||||
"crates/theme_selector",
|
"crates/theme_selector",
|
||||||
"crates/ui",
|
"crates/ui",
|
||||||
|
"crates/ui2",
|
||||||
"crates/util",
|
"crates/util",
|
||||||
"crates/semantic_index",
|
"crates/semantic_index",
|
||||||
"crates/vim",
|
"crates/vim",
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ simplelog = "0.9"
|
|||||||
smallvec.workspace = true
|
smallvec.workspace = true
|
||||||
strum = { version = "0.25.0", features = ["derive"] }
|
strum = { version = "0.25.0", features = ["derive"] }
|
||||||
theme = { path = "../theme" }
|
theme = { path = "../theme" }
|
||||||
|
ui = { package = "ui2", path = "../ui2" }
|
||||||
util = { path = "../util" }
|
util = { path = "../util" }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
@@ -0,0 +1,16 @@
|
|||||||
|
[package]
|
||||||
|
name = "ui2"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2021"
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
anyhow.workspace = true
|
||||||
|
chrono = "0.4"
|
||||||
|
gpui3 = { path = "../gpui3" }
|
||||||
|
serde.workspace = true
|
||||||
|
settings = { path = "../settings" }
|
||||||
|
smallvec.workspace = true
|
||||||
|
strum = { version = "0.25.0", features = ["derive"] }
|
||||||
|
theme = { path = "../theme" }
|
||||||
|
rand = "0.8"
|
||||||
@@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user