1
0
Fork 0
forked from wry/wry

all: reorganize packages for release

This commit is contained in:
Julian Orth 2024-04-04 15:48:36 +02:00
parent c659b478cf
commit b374947b45
9 changed files with 32 additions and 21 deletions

18
Cargo.lock generated
View file

@ -39,13 +39,6 @@ dependencies = [
"memchr", "memchr",
] ]
[[package]]
name = "algorithms"
version = "0.1.0"
dependencies = [
"smallvec",
]
[[package]] [[package]]
name = "android-tzdata" name = "android-tzdata"
version = "0.1.1" version = "0.1.1"
@ -500,11 +493,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
[[package]] [[package]]
name = "jay" name = "jay-algorithms"
version = "0.1.0"
dependencies = [
"smallvec",
]
[[package]]
name = "jay-compositor"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"ahash", "ahash",
"algorithms",
"anyhow", "anyhow",
"arrayvec", "arrayvec",
"ash", "ash",
@ -523,6 +522,7 @@ dependencies = [
"humantime", "humantime",
"indexmap", "indexmap",
"isnt", "isnt",
"jay-algorithms",
"jay-config", "jay-config",
"jay-toml-config", "jay-toml-config",
"libloading 0.8.1", "libloading 0.8.1",

View file

@ -1,8 +1,15 @@
[package] [package]
name = "jay" name = "jay-compositor"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
build = "build/build.rs" build = "build/build.rs"
license = "GPL-3.0-only"
description = "The Jay compositor"
repository = "https://github.com/mahkoh/jay"
[[bin]]
name = "jay"
path = "src/main.rs"
[workspace] [workspace]
members = ["jay-config", "toml-config", "algorithms", "toml-spec"] members = ["jay-config", "toml-config", "algorithms", "toml-spec"]
@ -14,6 +21,10 @@ panic = "abort"
panic = "abort" panic = "abort"
[dependencies] [dependencies]
jay-config = { path = "jay-config" }
jay-toml-config = { path = "toml-config" }
jay-algorithms = { path = "algorithms" }
uapi = "0.2.13" uapi = "0.2.13"
thiserror = "1.0.56" thiserror = "1.0.56"
ahash = "0.8.7" ahash = "0.8.7"
@ -29,9 +40,6 @@ rand = "0.8.5"
smallvec = { version = "1.11.1", features = ["const_generics", "const_new", "union"] } smallvec = { version = "1.11.1", features = ["const_generics", "const_new", "union"] }
byteorder = "1.5.0" byteorder = "1.5.0"
bincode = "1.3.3" bincode = "1.3.3"
jay-config = { path = "jay-config" }
jay-toml-config = { path = "toml-config" }
algorithms = { path = "algorithms" }
pin-project = "1.1.4" pin-project = "1.1.4"
clap = { version = "4.4.18", features = ["derive", "wrap_help"] } clap = { version = "4.4.18", features = ["derive", "wrap_help"] }
clap_complete = "4.4.10" clap_complete = "4.4.10"
@ -57,7 +65,7 @@ cc = "1.0.86"
#[profile.dev.build-override] #[profile.dev.build-override]
#opt-level = 3 #opt-level = 3
[profile.dev.package."algorithms"] [profile.dev.package."jay-algorithms"]
opt-level = 3 opt-level = 3
[profile.dev.package."smallvec"] [profile.dev.package."smallvec"]

View file

@ -1,9 +1,9 @@
[package] [package]
name = "algorithms" name = "jay-algorithms"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
license = "GPL-3.0-only"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html description = "Internal dependency of the Jay compositor"
[dependencies] [dependencies]
smallvec = { version = "1.8.0", features = ["const_generics", "const_new", "union"] } smallvec = { version = "1.8.0", features = ["const_generics", "const_new", "union"] }

View file

@ -4,6 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
license = "GPL-3.0-only" license = "GPL-3.0-only"
description = "Configuration crate for the Jay compositor" description = "Configuration crate for the Jay compositor"
repository = "https://github.com/mahkoh/jay"
[dependencies] [dependencies]
bincode = "1.3.3" bincode = "1.3.3"

View file

@ -14,8 +14,8 @@ use {
jay_screenshot::{Dmabuf, Error}, jay_screenshot::{Dmabuf, Error},
}, },
}, },
algorithms::qoi::xrgb8888_encode_qoi,
chrono::Local, chrono::Local,
jay_algorithms::qoi::xrgb8888_encode_qoi,
std::rc::Rc, std::rc::Rc,
}; };

View file

@ -5,7 +5,7 @@ mod tests;
pub use region::RegionBuilder; pub use region::RegionBuilder;
use { use {
algorithms::rect::RectRaw, jay_algorithms::rect::RectRaw,
smallvec::SmallVec, smallvec::SmallVec,
std::fmt::{Debug, Formatter}, std::fmt::{Debug, Formatter},
}; };

View file

@ -1,6 +1,6 @@
use { use {
crate::rect::{Rect, Region}, crate::rect::{Rect, Region},
algorithms::rect::{ jay_algorithms::rect::{
region::{extents, rects_to_bands, subtract, union}, region::{extents, rects_to_bands, subtract, union},
RectRaw, RectRaw,
}, },

View file

@ -1,6 +1,6 @@
use { use {
crate::rect::{Rect, Region}, crate::rect::{Rect, Region},
algorithms::rect::RectRaw, jay_algorithms::rect::RectRaw,
}; };
#[test] #[test]

View file

@ -2,6 +2,8 @@
name = "jay-toml-config" name = "jay-toml-config"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
license = "GPL-3.0-only"
description = "Internal dependency of the Jay compositor"
[lib] [lib]
crate-type = ["lib", "cdylib"] crate-type = ["lib", "cdylib"]