diff --git a/Cargo.toml b/Cargo.toml index 681c1e8..d8deefb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,19 +4,27 @@ members = ["domain", "adapters", "composition"] [workspace.package] version = "0.1.0" -edition = "2021" +edition = "2024" license = "AGPL-3.0-or-later" repository = "https://codeberg.org/waydeer/layer-shika" -rust-version = "1.70" +rust-version = "1.85" keywords = ["layer-shell", "wayland", "slint", "femtovg", "smithay"] categories = ["gui"] [workspace.dependencies] -glutin = { version = "0.32.3", default-features = false, features = ["wayland"] } +glutin = { version = "0.32.3", default-features = false, features = [ + "wayland", +] } log = "0.4.28" raw-window-handle = "0.6.2" -slint = { version = "1.14.1", default-features = false, features = ["compat-1-2", "renderer-femtovg", "backend-winit-wayland"] } -slint-interpreter = { version = "1.14.1", default-features = false, features = ["compat-1-2"] } +slint = { version = "1.14.1", default-features = false, features = [ + "compat-1-2", + "renderer-femtovg", + "backend-winit-wayland", +] } +slint-interpreter = { version = "1.14.1", default-features = false, features = [ + "compat-1-2", +] } smithay-client-toolkit = "0.20.0" thiserror = "2.0.17" wayland-client = "0.31.11" @@ -28,6 +36,7 @@ layer-shika-adapters = { version = "0.1.0", path = "adapters" } [workspace.lints.clippy] all = { level = "deny", priority = -1 } pedantic = { level = "deny", priority = -1 } +cargo = { level = "deny", priority = -1 } disallowed_types = "deny" disallowed_methods = "deny" pub_use = "deny" @@ -48,6 +57,7 @@ cognitive_complexity = "deny" needless_collect = "deny" let_underscore_must_use = "deny" absolute_paths = "deny" +multiple_crate_versions = "allow" missing_errors_doc = "allow" missing_panics_doc = "allow" must_use_candidate = "allow" diff --git a/adapters/Cargo.toml b/adapters/Cargo.toml index 651bf1d..b9282f1 100644 --- a/adapters/Cargo.toml +++ b/adapters/Cargo.toml @@ -5,7 +5,10 @@ edition.workspace = true license.workspace = true repository.workspace = true rust-version.workspace = true +keywords.workspace = true +categories.workspace = true description = "Adapters layer for layer-shika" +readme = "../README.md" [lints] workspace = true diff --git a/adapters/src/rendering/femtovg/main_window.rs b/adapters/src/rendering/femtovg/main_window.rs index e7d8876..5e3fc3c 100644 --- a/adapters/src/rendering/femtovg/main_window.rs +++ b/adapters/src/rendering/femtovg/main_window.rs @@ -55,7 +55,7 @@ impl FemtoVGWindow { .dispatch_event(WindowEvent::ScaleFactorChanged { scale_factor }); } - pub const fn scale_factor(&self) -> f32 { + pub fn scale_factor(&self) -> f32 { self.scale_factor.get() } } diff --git a/adapters/src/rendering/femtovg/popup_window.rs b/adapters/src/rendering/femtovg/popup_window.rs index cc9b13a..4ef071c 100644 --- a/adapters/src/rendering/femtovg/popup_window.rs +++ b/adapters/src/rendering/femtovg/popup_window.rs @@ -60,7 +60,7 @@ impl PopupWindow { .dispatch_event(WindowEvent::ScaleFactorChanged { scale_factor }); } - pub const fn scale_factor(&self) -> f32 { + pub fn scale_factor(&self) -> f32 { self.scale_factor.get() } } diff --git a/domain/Cargo.toml b/domain/Cargo.toml index 9a69871..eca42b3 100644 --- a/domain/Cargo.toml +++ b/domain/Cargo.toml @@ -5,7 +5,10 @@ edition.workspace = true license.workspace = true repository.workspace = true rust-version.workspace = true +keywords.workspace = true +categories.workspace = true description = "Domain layer for layer-shika" +readme = "../README.md" [lints] workspace = true