From 570141b3ed3b89b5ef7a2750e92b0d0675dbb925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Mon, 3 Feb 2025 20:09:01 +0100 Subject: [PATCH] Cleaning depency with patch --- Cargo.lock | 17 ++++++++++++++--- Cargo.toml | 3 +++ wslplugins-macro-core/Cargo.toml | 2 +- wslplugins-rs/Cargo.toml | 2 +- 4 files changed, 19 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 12cce84..a03b81c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -859,6 +859,17 @@ dependencies = [ name = "wslpluginapi-sys" version = "0.1.0-alpha.0+2.1.3" source = "git+https://github.com/mveril/wslpluginapi-sys.git?branch=main#19cb304cb9c76df2fb27a3d601a6872c3bb4f414" +dependencies = [ + "bindgen", + "libc", + "semver", + "windows", +] + +[[package]] +name = "wslpluginapi-sys" +version = "0.1.0-beta.1+2.1.3" +source = "git+https://github.com/mveril/wslpluginapi-sys.git?branch=release%2F0.1-beta.1%2B2.1.3#fa440569d606f09abda74d94b41644f9931bd023" dependencies = [ "bindgen", "libc", @@ -887,7 +898,7 @@ dependencies = [ "struct-field-names-as-array", "strum", "syn", - "wslpluginapi-sys", + "wslpluginapi-sys 0.1.0-beta.1+2.1.3", ] [[package]] @@ -896,7 +907,7 @@ version = "0.1.0-alpha.0" dependencies = [ "trybuild", "windows", - "wslpluginapi-sys", + "wslpluginapi-sys 0.1.0-alpha.0+2.1.3", "wslplugins-rs", ] @@ -914,6 +925,6 @@ dependencies = [ "typed-path", "widestring", "windows", - "wslpluginapi-sys", + "wslpluginapi-sys 0.1.0-beta.1+2.1.3", "wslplugins-macro", ] diff --git a/Cargo.toml b/Cargo.toml index f59f20c..6c9a344 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,3 +15,6 @@ edition = "2021" license = "MIT" repository = "https://github.com/mveril/wslplugins-rs" description = "A Rust framework for developing WSL plugins using safe and idiomatic Rust." + +[patch.crates-io] +wslpluginapi-sys = { git = "https://github.com/mveril/wslpluginapi-sys.git", branch = "release/0.1-beta.1+2.1.3" } diff --git a/wslplugins-macro-core/Cargo.toml b/wslplugins-macro-core/Cargo.toml index 604179b..40ac10b 100644 --- a/wslplugins-macro-core/Cargo.toml +++ b/wslplugins-macro-core/Cargo.toml @@ -14,7 +14,7 @@ heck = "0.5" strum = { version = "0.26.3", features = ["derive"] } [build-dependencies] -wslpluginapi-sys = { git = "https://github.com/mveril/wslpluginapi-sys.git", branch = "main", features = [ +wslpluginapi-sys = { version = "0.1.0-beta.1+2.1.3", features = [ "hooks-field-names", ] } quote = "*" diff --git a/wslplugins-rs/Cargo.toml b/wslplugins-rs/Cargo.toml index 708bc18..462492d 100644 --- a/wslplugins-rs/Cargo.toml +++ b/wslplugins-rs/Cargo.toml @@ -21,7 +21,7 @@ thiserror = "2.0.7" typed-path = ">0.1" widestring = { version = "1", features = ["alloc"] } wslplugins-macro = { path = "../wslplugins-macro", optional = true } -wslpluginapi-sys = { git = "https://github.com/mveril/wslpluginapi-sys.git", branch = "main" } +wslpluginapi-sys = "0.1.0-beta.1+2.1.3" [dependencies.semver] version = ">0.1"