Bump dependencies

This commit is contained in:
Ottatop 2024-08-05 18:37:05 -05:00
parent 083cb999d0
commit e5670a7fe6
5 changed files with 269 additions and 42 deletions

250
Cargo.lock generated
View file

@ -1036,8 +1036,18 @@ version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850" checksum = "7b750cb3417fd1b327431a470f388520309479ab0bf5e323505daf0290cd3850"
dependencies = [ dependencies = [
"darling_core", "darling_core 0.14.4",
"darling_macro", "darling_macro 0.14.4",
]
[[package]]
name = "darling"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f63b86c8a8826a49b8c21f08a2d07338eec8d900540f8630dc76284be802989"
dependencies = [
"darling_core 0.20.10",
"darling_macro 0.20.10",
] ]
[[package]] [[package]]
@ -1054,17 +1064,42 @@ dependencies = [
"syn 1.0.109", "syn 1.0.109",
] ]
[[package]]
name = "darling_core"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95133861a8032aaea082871032f5815eb9e98cef03fa916ab4500513994df9e5"
dependencies = [
"fnv",
"ident_case",
"proc-macro2",
"quote",
"strsim 0.11.1",
"syn 2.0.71",
]
[[package]] [[package]]
name = "darling_macro" name = "darling_macro"
version = "0.14.4" version = "0.14.4"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e" checksum = "a4aab4dbc9f7611d8b55048a3a16d2d010c2c8334e46304b40ac1cc14bf3b48e"
dependencies = [ dependencies = [
"darling_core", "darling_core 0.14.4",
"quote", "quote",
"syn 1.0.109", "syn 1.0.109",
] ]
[[package]]
name = "darling_macro"
version = "0.20.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806"
dependencies = [
"darling_core 0.20.10",
"quote",
"syn 2.0.71",
]
[[package]] [[package]]
name = "deranged" name = "deranged"
version = "0.3.11" version = "0.3.11"
@ -1074,6 +1109,37 @@ dependencies = [
"powerfmt", "powerfmt",
] ]
[[package]]
name = "derive_builder"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0350b5cb0331628a5916d6c5c0b72e97393b8b6b03b47a9284f4e7f5a405ffd7"
dependencies = [
"derive_builder_macro",
]
[[package]]
name = "derive_builder_core"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d48cda787f839151732d396ac69e3473923d54312c070ee21e9effcaa8ca0b1d"
dependencies = [
"darling 0.20.10",
"proc-macro2",
"quote",
"syn 2.0.71",
]
[[package]]
name = "derive_builder_macro"
version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "206868b8242f27cecce124c19fd88157fbd0dd334df2587f36417bafbc85097b"
dependencies = [
"derive_builder_core",
"syn 2.0.71",
]
[[package]] [[package]]
name = "dircpy" name = "dircpy"
version = "0.3.16" version = "0.3.16"
@ -1368,7 +1434,7 @@ version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55a5e644a80e6d96b2b4910fa7993301d7b7926c045b475b62202b20a36ce69e" checksum = "55a5e644a80e6d96b2b4910fa7993301d7b7926c045b475b62202b20a36ce69e"
dependencies = [ dependencies = [
"darling", "darling 0.14.4",
"proc-macro2", "proc-macro2",
"quote", "quote",
"syn 1.0.109", "syn 1.0.109",
@ -1519,6 +1585,18 @@ dependencies = [
"wasi", "wasi",
] ]
[[package]]
name = "getset"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e45727250e75cc04ff2846a66397da8ef2b3db8e40e0cef4df67950a07621eb9"
dependencies = [
"proc-macro-error",
"proc-macro2",
"quote",
"syn 1.0.109",
]
[[package]] [[package]]
name = "gimli" name = "gimli"
version = "0.29.0" version = "0.29.0"
@ -1604,7 +1682,7 @@ dependencies = [
"presser", "presser",
"thiserror", "thiserror",
"winapi", "winapi",
"windows", "windows 0.52.0",
] ]
[[package]] [[package]]
@ -1909,7 +1987,7 @@ dependencies = [
"iana-time-zone-haiku", "iana-time-zone-haiku",
"js-sys", "js-sys",
"wasm-bindgen", "wasm-bindgen",
"windows-core", "windows-core 0.52.0",
] ]
[[package]] [[package]]
@ -3223,7 +3301,7 @@ dependencies = [
"smithay-drm-extras", "smithay-drm-extras",
"snowcap", "snowcap",
"snowcap-api", "snowcap-api",
"sysinfo", "sysinfo 0.31.2",
"temp-env", "temp-env",
"tempfile", "tempfile",
"test-log", "test-log",
@ -3236,11 +3314,11 @@ dependencies = [
"tracing", "tracing",
"tracing-appender", "tracing-appender",
"tracing-subscriber", "tracing-subscriber",
"vergen", "vergen-gitcl",
"x11rb", "x11rb",
"xcursor", "xcursor",
"xdg", "xdg",
"xkbcommon", "xkbcommon 0.8.0",
] ]
[[package]] [[package]]
@ -3262,7 +3340,7 @@ dependencies = [
"tower", "tower",
"tracing", "tracing",
"tracing-subscriber", "tracing-subscriber",
"xkbcommon", "xkbcommon 0.8.0",
] ]
[[package]] [[package]]
@ -3361,6 +3439,30 @@ dependencies = [
"toml_edit 0.21.1", "toml_edit 0.21.1",
] ]
[[package]]
name = "proc-macro-error"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2",
"quote",
"syn 1.0.109",
"version_check",
]
[[package]]
name = "proc-macro-error-attr"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2",
"quote",
"version_check",
]
[[package]] [[package]]
name = "proc-macro2" name = "proc-macro2"
version = "1.0.86" version = "1.0.86"
@ -3936,7 +4038,7 @@ checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c"
[[package]] [[package]]
name = "smithay" name = "smithay"
version = "0.3.0" version = "0.3.0"
source = "git+https://github.com/Smithay/smithay?rev=5854e03#5854e0382a86c9fcae236928b93200b76df30928" source = "git+https://github.com/Smithay/smithay?rev=e7f0857#e7f08570bceab6107863267ae168d0afb018e8f5"
dependencies = [ dependencies = [
"appendlist", "appendlist",
"bitflags 2.6.0", "bitflags 2.6.0",
@ -3981,7 +4083,7 @@ dependencies = [
"wayland-sys", "wayland-sys",
"winit 0.30.3", "winit 0.30.3",
"x11rb", "x11rb",
"xkbcommon", "xkbcommon 0.8.0",
] ]
[[package]] [[package]]
@ -4033,7 +4135,7 @@ dependencies = [
"wayland-protocols 0.32.2", "wayland-protocols 0.32.2",
"wayland-protocols-wlr 0.3.2", "wayland-protocols-wlr 0.3.2",
"wayland-scanner", "wayland-scanner",
"xkbcommon", "xkbcommon 0.7.0",
"xkeysym", "xkeysym",
] ]
@ -4051,7 +4153,7 @@ dependencies = [
[[package]] [[package]]
name = "smithay-drm-extras" name = "smithay-drm-extras"
version = "0.1.0" version = "0.1.0"
source = "git+https://github.com/Smithay/smithay?rev=5854e03#5854e0382a86c9fcae236928b93200b76df30928" source = "git+https://github.com/Smithay/smithay?rev=e7f0857#e7f08570bceab6107863267ae168d0afb018e8f5"
dependencies = [ dependencies = [
"drm", "drm",
"edid-rs", "edid-rs",
@ -4088,7 +4190,7 @@ dependencies = [
"tracing", "tracing",
"tracing-subscriber", "tracing-subscriber",
"xdg", "xdg",
"xkbcommon", "xkbcommon 0.7.0",
] ]
[[package]] [[package]]
@ -4105,7 +4207,7 @@ dependencies = [
"tower", "tower",
"tracing", "tracing",
"xdg", "xdg",
"xkbcommon", "xkbcommon 0.7.0",
] ]
[[package]] [[package]]
@ -4265,8 +4367,21 @@ dependencies = [
"libc", "libc",
"ntapi", "ntapi",
"once_cell", "once_cell",
"windows 0.52.0",
]
[[package]]
name = "sysinfo"
version = "0.31.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d4115055da5f572fff541dd0c4e61b0262977f453cc9fe04be83aba25a89bdab"
dependencies = [
"core-foundation-sys",
"libc",
"memchr",
"ntapi",
"rayon", "rayon",
"windows", "windows 0.57.0",
] ]
[[package]] [[package]]
@ -4881,18 +4996,45 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d"
[[package]] [[package]]
name = "vergen" name = "vergen"
version = "8.3.2" version = "9.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2990d9ea5967266ea0ccf413a4aa5c42a93dbcfda9cb49a97de6931726b12566" checksum = "c32e7318e93a9ac53693b6caccfb05ff22e04a44c7cf8a279051f24c09da286f"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"cargo_metadata", "cargo_metadata",
"cfg-if", "derive_builder",
"getset",
"regex", "regex",
"rustc_version", "rustc_version",
"rustversion", "rustversion",
"sysinfo", "sysinfo 0.30.13",
"vergen-lib",
]
[[package]]
name = "vergen-gitcl"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3bbdc9746577cb4767f218d320ee0b623d415e8130332f8f562b910b61cc2c4e"
dependencies = [
"anyhow",
"derive_builder",
"rustversion",
"time", "time",
"vergen",
"vergen-lib",
]
[[package]]
name = "vergen-lib"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e06bee42361e43b60f363bad49d63798d0f42fb1768091812270eca00c784720"
dependencies = [
"anyhow",
"derive_builder",
"getset",
"rustversion",
] ]
[[package]] [[package]]
@ -5376,7 +5518,17 @@ version = "0.52.0"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be"
dependencies = [ dependencies = [
"windows-core", "windows-core 0.52.0",
"windows-targets 0.52.6",
]
[[package]]
name = "windows"
version = "0.57.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "12342cb4d8e3b046f3d80effd474a7a02447231330ef77d71daa6fbc40681143"
dependencies = [
"windows-core 0.57.0",
"windows-targets 0.52.6", "windows-targets 0.52.6",
] ]
@ -5389,6 +5541,49 @@ dependencies = [
"windows-targets 0.52.6", "windows-targets 0.52.6",
] ]
[[package]]
name = "windows-core"
version = "0.57.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2ed2439a290666cd67ecce2b0ffaad89c2a56b976b736e6ece670297897832d"
dependencies = [
"windows-implement",
"windows-interface",
"windows-result",
"windows-targets 0.52.6",
]
[[package]]
name = "windows-implement"
version = "0.57.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
]
[[package]]
name = "windows-interface"
version = "0.57.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7"
dependencies = [
"proc-macro2",
"quote",
"syn 2.0.71",
]
[[package]]
name = "windows-result"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e383302e8ec8515204254685643de10811af0ed97ea37210dc26fb0032647f8"
dependencies = [
"windows-targets 0.52.6",
]
[[package]] [[package]]
name = "windows-sys" name = "windows-sys"
version = "0.45.0" version = "0.45.0"
@ -5793,6 +5988,17 @@ dependencies = [
"xkeysym", "xkeysym",
] ]
[[package]]
name = "xkbcommon"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8d66ca9352cbd4eecbbc40871d8a11b4ac8107cfc528a6e14d7c19c69d0e1ac9"
dependencies = [
"libc",
"memmap2 0.9.4",
"xkeysym",
]
[[package]] [[package]]
name = "xkbcommon-dl" name = "xkbcommon-dl"
version = "0.4.2" version = "0.4.2"

View file

@ -6,7 +6,10 @@ members = [
"wlcs_pinnacle", "wlcs_pinnacle",
"api/lua/build" "api/lua/build"
] ]
exclude = ["snowcap", "lcat"] exclude = [
"snowcap", # Submodule
"lcat", # The docs building repo is currently cloned into this repo in CI
]
[workspace.package] [workspace.package]
authors = ["Ottatop <ottatop1227@gmail.com>"] authors = ["Ottatop <ottatop1227@gmail.com>"]
@ -28,7 +31,7 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter", "registry"]
# API definitions # API definitions
pinnacle-api-defs = { path = "./pinnacle-api-defs" } pinnacle-api-defs = { path = "./pinnacle-api-defs" }
# Misc. # Misc.
xkbcommon = "0.7.0" xkbcommon = "0.8.0"
xdg = "2.5.2" xdg = "2.5.2"
bitflags = "2.5.0" bitflags = "2.5.0"
clap = { version = "4.5.7", features = ["derive"] } clap = { version = "4.5.7", features = ["derive"] }
@ -38,7 +41,7 @@ indexmap = "2.2.6"
[workspace.dependencies.smithay] [workspace.dependencies.smithay]
git = "https://github.com/Smithay/smithay" git = "https://github.com/Smithay/smithay"
rev = "5854e03" rev = "e7f0857"
# path = "../../git/smithay" # path = "../../git/smithay"
default-features = false default-features = false
features = [ features = [
@ -69,6 +72,7 @@ too_many_arguments = "allow"
new_without_default = "allow" new_without_default = "allow"
type_complexity = "allow" type_complexity = "allow"
let_and_return = "allow" let_and_return = "allow"
dbg_macro = "warn"
########################################################################yo😎########### ########################################################################yo😎###########
@ -86,7 +90,7 @@ keywords = ["wayland", "compositor", "smithay", "lua"]
[dependencies] [dependencies]
# Smithay # Smithay
smithay = { workspace = true } smithay = { workspace = true }
smithay-drm-extras = { git = "https://github.com/Smithay/smithay", rev = "5854e03" } smithay-drm-extras = { git = "https://github.com/Smithay/smithay", rev = "e7f0857" }
# Tracing # Tracing
tracing = { workspace = true } tracing = { workspace = true }
tracing-subscriber = { workspace = true } tracing-subscriber = { workspace = true }
@ -115,7 +119,7 @@ shellexpand = { version = "3.1.0", features = ["path"] }
x11rb = { version = "0.13.1", default-features = false, features = ["composite"] } x11rb = { version = "0.13.1", default-features = false, features = ["composite"] }
xkbcommon = { workspace = true } xkbcommon = { workspace = true }
xdg = { workspace = true } xdg = { workspace = true }
sysinfo = "0.30.12" sysinfo = "0.31.2"
pinnacle-api-defs = { workspace = true } pinnacle-api-defs = { workspace = true }
dircpy = { workspace = true } dircpy = { workspace = true }
chrono = "0.4.38" chrono = "0.4.38"
@ -130,7 +134,7 @@ snowcap-api = { path = "./snowcap/api/rust", optional = true }
assert_matches = "1.5.0" assert_matches = "1.5.0"
[build-dependencies] [build-dependencies]
vergen = { version = "8.3.1", features = ["git", "gitcl", "rustc", "cargo", "si"] } vergen-gitcl = { version = "1.0.0", features = ["rustc", "cargo", "si"] }
[dev-dependencies] [dev-dependencies]
temp-env = "0.3.6" temp-env = "0.3.6"

View file

@ -1,13 +1,30 @@
use vergen_gitcl::{CargoBuilder, Emitter, GitclBuilder, RustcBuilder, SysinfoBuilder};
fn main() { fn main() {
vergen::EmitBuilder::builder() let cargo = CargoBuilder::default()
.cargo_debug() .debug(true)
.cargo_target_triple() .target_triple(true)
.git_sha(true) .build()
.git_branch() .unwrap();
.git_commit_message() let git = GitclBuilder::default()
.git_dirty(false) .sha(true)
.rustc_semver() .branch(true)
.sysinfo_os_version() .commit_message(true)
.dirty(false)
.build()
.unwrap();
let rustc = RustcBuilder::default().semver(true).build().unwrap();
let sysinfo = SysinfoBuilder::default().os_version(true).build().unwrap();
Emitter::default()
.add_instructions(&cargo)
.unwrap()
.add_instructions(&git)
.unwrap()
.add_instructions(&rustc)
.unwrap()
.add_instructions(&sysinfo)
.unwrap()
.emit() .emit()
.unwrap(); .unwrap();
} }

View file

@ -43,7 +43,7 @@ use smithay::{
output::Scale, output::Scale,
reexports::{calloop, input as libinput}, reexports::{calloop, input as libinput},
}; };
use sysinfo::ProcessRefreshKind; use sysinfo::{ProcessRefreshKind, ProcessesToUpdate};
use tokio::{ use tokio::{
io::AsyncBufReadExt, io::AsyncBufReadExt,
sync::mpsc::{unbounded_channel, UnboundedSender}, sync::mpsc::{unbounded_channel, UnboundedSender},
@ -655,13 +655,13 @@ impl process_service_server::ProcessService for ProcessService {
state state
.pinnacle .pinnacle
.system_processes .system_processes
.refresh_processes_specifics(ProcessRefreshKind::new()); .refresh_processes_specifics(ProcessesToUpdate::All, ProcessRefreshKind::new());
let compositor_pid = std::process::id(); let compositor_pid = std::process::id();
let already_running = state let already_running = state
.pinnacle .pinnacle
.system_processes .system_processes
.processes_by_exact_name(&arg0) .processes_by_exact_name(arg0.as_ref())
.any(|proc| { .any(|proc| {
proc.parent() proc.parent()
.is_some_and(|parent_pid| parent_pid.as_u32() == compositor_pid) .is_some_and(|parent_pid| parent_pid.as_u32() == compositor_pid)

View file

@ -34,7 +34,7 @@ use smithay::{
reexports::calloop::{self, channel::Event, LoopHandle, RegistrationToken}, reexports::calloop::{self, channel::Event, LoopHandle, RegistrationToken},
utils::{Logical, Point}, utils::{Logical, Point},
}; };
use sysinfo::ProcessRefreshKind; use sysinfo::{ProcessRefreshKind, ProcessesToUpdate};
use tokio::{ use tokio::{
io::{AsyncBufReadExt, BufReader}, io::{AsyncBufReadExt, BufReader},
task::JoinHandle, task::JoinHandle,
@ -580,7 +580,7 @@ impl Pinnacle {
pub fn start_grpc_server(&mut self, socket_dir: &Path) -> anyhow::Result<()> { pub fn start_grpc_server(&mut self, socket_dir: &Path) -> anyhow::Result<()> {
self.system_processes self.system_processes
.refresh_processes_specifics(ProcessRefreshKind::new()); .refresh_processes_specifics(ProcessesToUpdate::All, ProcessRefreshKind::new());
std::fs::create_dir_all(socket_dir)?; std::fs::create_dir_all(socket_dir)?;