From 3dee4915c5661a2bbe8b98b7c946781701800bf8 Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 14 Oct 2024 15:30:47 +0800 Subject: [PATCH] Add versoview and versoview_messages --- Cargo.lock | 18 ++++++++++++++++++ Cargo.toml | 10 ++++++++-- versoview/Cargo.toml | 9 +++++++++ versoview/src/lib.rs | 0 versoview_messages/Cargo.toml | 8 ++++++++ versoview_messages/src/lib.rs | 0 6 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 versoview/Cargo.toml create mode 100644 versoview/src/lib.rs create mode 100644 versoview_messages/Cargo.toml create mode 100644 versoview_messages/src/lib.rs diff --git a/Cargo.lock b/Cargo.lock index bd67107c..fd375c3b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6277,6 +6277,7 @@ dependencies = [ "style_traits", "thiserror", "url", + "versoview_messages", "webdriver_server", "webgpu", "webrender", @@ -6287,6 +6288,23 @@ dependencies = [ "winit", ] +[[package]] +name = "versoview" +version = "0.0.1" +dependencies = [ + "ipc-channel", + "serde", + "versoview_messages", +] + +[[package]] +name = "versoview_messages" +version = "0.0.1" +dependencies = [ + "ipc-channel", + "serde", +] + [[package]] name = "void" version = "1.0.2" diff --git a/Cargo.toml b/Cargo.toml index c8b69a58..ed1fb48f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,4 +1,9 @@ -workspace = {} +[workspace] +members = ["versoview", "versoview_messages"] + +[workspace.dependencies] +ipc-channel = "0.18.2" +serde = { version = "1.0", features = ["derive"] } [package] name = "verso" @@ -55,7 +60,7 @@ getopts = "0.2.17" gleam = "0.15" glutin = "0.32.0" glutin-winit = "0.5.0" -ipc-channel = "0.18" +ipc-channel = { workspace = true } keyboard-types = "0.7" log = "0.4" raw-window-handle = { version = "0.6", features = ["std"] } @@ -99,6 +104,7 @@ cargo-packager-resource-resolver = { version = "0.1.1", features = [ "auto-detect-format", ], optional = true } url = "2.5.2" +versoview_messages = { path = "./versoview_messages" } [target.'cfg(any(target_os = "ios", target_os = "macos"))'.dependencies] objc2 = "0.5" diff --git a/versoview/Cargo.toml b/versoview/Cargo.toml new file mode 100644 index 00000000..1544e6c9 --- /dev/null +++ b/versoview/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "versoview" +version = "0.0.1" +edition = "2021" + +[dependencies] +ipc-channel = { workspace = true } +serde = { workspace = true } +versoview_messages = { path = "../versoview_messages" } diff --git a/versoview/src/lib.rs b/versoview/src/lib.rs new file mode 100644 index 00000000..e69de29b diff --git a/versoview_messages/Cargo.toml b/versoview_messages/Cargo.toml new file mode 100644 index 00000000..dc7c2e4a --- /dev/null +++ b/versoview_messages/Cargo.toml @@ -0,0 +1,8 @@ +[package] +name = "versoview_messages" +version = "0.0.1" +edition = "2021" + +[dependencies] +ipc-channel = { workspace = true } +serde = { workspace = true } diff --git a/versoview_messages/src/lib.rs b/versoview_messages/src/lib.rs new file mode 100644 index 00000000..e69de29b