commit 57fbd666a865cb9b3e9b413bcb03aefa707c999f Author: trivernis Date: Sun Oct 24 10:54:59 2021 +0200 Add initial project layout and dependencies Signed-off-by: trivernis diff --git a/mediarepo-api/.gitignore b/mediarepo-api/.gitignore new file mode 100644 index 0000000..96ef6c0 --- /dev/null +++ b/mediarepo-api/.gitignore @@ -0,0 +1,2 @@ +/target +Cargo.lock diff --git a/mediarepo-api/.idea/.gitignore b/mediarepo-api/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/mediarepo-api/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/mediarepo-api/.idea/discord.xml b/mediarepo-api/.idea/discord.xml new file mode 100644 index 0000000..30bab2a --- /dev/null +++ b/mediarepo-api/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/mediarepo-api/.idea/mediarepo-api.iml b/mediarepo-api/.idea/mediarepo-api.iml new file mode 100644 index 0000000..c254557 --- /dev/null +++ b/mediarepo-api/.idea/mediarepo-api.iml @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/mediarepo-api/.idea/modules.xml b/mediarepo-api/.idea/modules.xml new file mode 100644 index 0000000..83599d9 --- /dev/null +++ b/mediarepo-api/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/mediarepo-api/.idea/vcs.xml b/mediarepo-api/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/mediarepo-api/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/mediarepo-api/Cargo.toml b/mediarepo-api/Cargo.toml new file mode 100644 index 0000000..198ff94 --- /dev/null +++ b/mediarepo-api/Cargo.toml @@ -0,0 +1,20 @@ +[package] +name = "mediarepo-api" +version = "0.1.0" +edition = "2018" +license = "gpl-3" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +tracing = "0.1.29" +thiserror = "1.0.30" +rmp-ipc = {version = "0.7.2", optional=true} +tauri = {version = "1.0.0-beta.8", optional=true} + +[dependencies.serde] +version = "1.0.130" +features = ["serde_derive"] + +[features] +tauri-plugin = ["tauri", "rmp-ipc"] \ No newline at end of file diff --git a/mediarepo-api/README.md b/mediarepo-api/README.md new file mode 100644 index 0000000..276d073 --- /dev/null +++ b/mediarepo-api/README.md @@ -0,0 +1,16 @@ +

+mediarepo-api +

+

+This project is a work in progress +

+ +- - - + +This repository contains common mediarepo API types to implement the API both serverside +and clientside. It also contains a tauri plugin (feature "tauri-plugin") to hook it +into the tauri application lifecycle. + +## License + +GPL-3 \ No newline at end of file diff --git a/mediarepo-api/src/lib.rs b/mediarepo-api/src/lib.rs new file mode 100644 index 0000000..56ce163 --- /dev/null +++ b/mediarepo-api/src/lib.rs @@ -0,0 +1,4 @@ +pub mod types; + +#[cfg(feature = "tauri-plugin")] +pub mod tauri_plugin; diff --git a/mediarepo-api/src/tauri_plugin/mod.rs b/mediarepo-api/src/tauri_plugin/mod.rs new file mode 100644 index 0000000..e69de29 diff --git a/mediarepo-api/src/types/mod.rs b/mediarepo-api/src/types/mod.rs new file mode 100644 index 0000000..e69de29