From a2cc2259e71ace3b2d808cb395da1b8fe4336020 Mon Sep 17 00:00:00 2001
From: Darren Schroeder <343840+fdncred@users.noreply.github.com>
Date: Wed, 14 Oct 2020 04:46:06 -0500
Subject: [PATCH] add bson and sqlite to wix (#2668)
* add bson and sqlite to wix
* add sqlite and bson from and to
---
Cargo.toml | 20 ++++++++
src/plugins/nu_plugin_extra_from_bson.rs | 6 +++
src/plugins/nu_plugin_extra_from_sqlite.rs | 6 +++
src/plugins/nu_plugin_extra_to_bson.rs | 6 +++
src/plugins/nu_plugin_extra_to_sqlite.rs | 6 +++
wix/main.wxs | 53 ++++++++++++++++++----
6 files changed, 89 insertions(+), 8 deletions(-)
create mode 100644 src/plugins/nu_plugin_extra_from_bson.rs
create mode 100644 src/plugins/nu_plugin_extra_from_sqlite.rs
create mode 100644 src/plugins/nu_plugin_extra_to_bson.rs
create mode 100644 src/plugins/nu_plugin_extra_to_sqlite.rs
diff --git a/Cargo.toml b/Cargo.toml
index 58ef46420..068577a7d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -190,6 +190,26 @@ name = "nu_plugin_extra_xpath"
path = "src/plugins/nu_plugin_extra_xpath.rs"
required-features = ["xpath"]
+[[bin]]
+name = "nu_plugin_extra_from_bson"
+path = "src/plugins/nu_plugin_extra_from_bson.rs"
+required-features = ["bson"]
+
+[[bin]]
+name = "nu_plugin_extra_to_bson"
+path = "src/plugins/nu_plugin_extra_to_bson.rs"
+required-features = ["bson"]
+
+[[bin]]
+name = "nu_plugin_extra_from_sqlite"
+path = "src/plugins/nu_plugin_extra_from_sqlite.rs"
+required-features = ["sqlite"]
+
+[[bin]]
+name = "nu_plugin_extra_to_sqlite"
+path = "src/plugins/nu_plugin_extra_to_sqlite.rs"
+required-features = ["sqlite"]
+
# Main nu binary
[[bin]]
name = "nu"
diff --git a/src/plugins/nu_plugin_extra_from_bson.rs b/src/plugins/nu_plugin_extra_from_bson.rs
new file mode 100644
index 000000000..8c5868fa8
--- /dev/null
+++ b/src/plugins/nu_plugin_extra_from_bson.rs
@@ -0,0 +1,6 @@
+use nu_plugin::serve_plugin;
+use nu_plugin_from_bson::FromBSON;
+
+fn main() {
+ serve_plugin(&mut FromBSON::new());
+}
diff --git a/src/plugins/nu_plugin_extra_from_sqlite.rs b/src/plugins/nu_plugin_extra_from_sqlite.rs
new file mode 100644
index 000000000..26147638a
--- /dev/null
+++ b/src/plugins/nu_plugin_extra_from_sqlite.rs
@@ -0,0 +1,6 @@
+use nu_plugin::serve_plugin;
+use nu_plugin_from_sqlite::FromSqlite;
+
+fn main() {
+ serve_plugin(&mut FromSqlite::new())
+}
diff --git a/src/plugins/nu_plugin_extra_to_bson.rs b/src/plugins/nu_plugin_extra_to_bson.rs
new file mode 100644
index 000000000..2170b73e4
--- /dev/null
+++ b/src/plugins/nu_plugin_extra_to_bson.rs
@@ -0,0 +1,6 @@
+use nu_plugin::serve_plugin;
+use nu_plugin_to_bson::ToBSON;
+
+fn main() {
+ serve_plugin(&mut ToBSON::new())
+}
diff --git a/src/plugins/nu_plugin_extra_to_sqlite.rs b/src/plugins/nu_plugin_extra_to_sqlite.rs
new file mode 100644
index 000000000..5f6923225
--- /dev/null
+++ b/src/plugins/nu_plugin_extra_to_sqlite.rs
@@ -0,0 +1,6 @@
+use nu_plugin::serve_plugin;
+use nu_plugin_to_sqlite::ToSqlite;
+
+fn main() {
+ serve_plugin(&mut ToSqlite::new())
+}
diff --git a/wix/main.wxs b/wix/main.wxs
index 230cbc184..f80a7802c 100644
--- a/wix/main.wxs
+++ b/wix/main.wxs
@@ -75,7 +75,7 @@
Source='wix\License.rtf'
KeyPath='yes'/>
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -259,7 +292,7 @@
the license sidecar file from the installer.
-->
-
+
@@ -279,6 +312,10 @@
+
+
+
+
-
+
-
+
-
+
-
-
+
+
-
+