From ff9e0f2ddfbc336a3cb3016e597b2775667c6087 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 12 Mar 2022 22:10:14 +0100 Subject: [PATCH] Add an empty crate for iced support --- Cargo.toml | 1 + nih_plug_iced/Cargo.toml | 16 ++++++++++++++++ nih_plug_iced/README.md | 5 +++++ nih_plug_iced/src/lib.rs | 8 ++++++++ 4 files changed, 30 insertions(+) create mode 100644 nih_plug_iced/Cargo.toml create mode 100644 nih_plug_iced/README.md create mode 100644 nih_plug_iced/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index cd2a3dab..551a67ea 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ repository = "https://github.com/robbert-vdh/nih-plug" members = [ "nih_plug_derive", "nih_plug_egui", + "nih_plug_iced", "nih_plug_xtask", "cargo_nih_plug", diff --git a/nih_plug_iced/Cargo.toml b/nih_plug_iced/Cargo.toml new file mode 100644 index 00000000..5d058539 --- /dev/null +++ b/nih_plug_iced/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "nih_plug_iced" +version = "0.0.0" +edition = "2021" +authors = ["Robbert van der Helm "] +license = "ISC" + +description = "An adapter to use iced GUIs with NIH-plug" + +[dependencies] +nih_plug = { path = ".." } + +baseview = { git = "https://github.com/robbert-vdh/baseview.git", branch = "feature/mouse-event-modifiers" } +# Upstream doesn't work with the current iced version, this branch also contains +# additional features +iced_egui = { git = "https://github.com/robbert-vdh/iced_baseview.git", branch = "feature/update-dependencies" } diff --git a/nih_plug_iced/README.md b/nih_plug_iced/README.md new file mode 100644 index 00000000..2480a668 --- /dev/null +++ b/nih_plug_iced/README.md @@ -0,0 +1,5 @@ +# NIH-plug: iced support + +This provides an adapter to create [iced](https://github.com/iced-rs/iced) based +GUIs with NIH-plug through +[iced_baseview](https://github.com/BillyDM/iced_baseview). diff --git a/nih_plug_iced/src/lib.rs b/nih_plug_iced/src/lib.rs new file mode 100644 index 00000000..1b4a90c9 --- /dev/null +++ b/nih_plug_iced/src/lib.rs @@ -0,0 +1,8 @@ +#[cfg(test)] +mod tests { + #[test] + fn it_works() { + let result = 2 + 2; + assert_eq!(result, 4); + } +}