diff --git a/mediarepo-api/.github/workflows/build.yml b/mediarepo-api/.github/workflows/build.yml index 32d21f5..a1afbce 100644 --- a/mediarepo-api/.github/workflows/build.yml +++ b/mediarepo-api/.github/workflows/build.yml @@ -30,4 +30,10 @@ jobs: restore-keys: | ${{ runner.os }}-cargo- - name: Build - run: cargo build --verbose \ No newline at end of file + run: cargo build + + - name: Build API + run: cargo build --features=client-api + + - name: Build Plugin + run: cargo build --features=tauri-plugin \ No newline at end of file diff --git a/mediarepo-api/src/client_api/protocol.rs b/mediarepo-api/src/client_api/protocol.rs index 543e66b..3efd2fa 100644 --- a/mediarepo-api/src/client_api/protocol.rs +++ b/mediarepo-api/src/client_api/protocol.rs @@ -1,6 +1,5 @@ use async_trait::async_trait; use rmp_ipc::error::Result; -use rmp_ipc::prelude::IPCError; use rmp_ipc::prelude::IPCResult; use rmp_ipc::protocol::*; use std::io::Error; @@ -47,6 +46,7 @@ impl AsyncStreamProtocolListener for ApiProtocolListener { } #[cfg(not(unix))] { + use rmp_ipc::prelude::IPCError; Err(IPCError::BuildError( "The address can not be made into a socket address".to_string(), ))