-
Notifications
You must be signed in to change notification settings - Fork 0
[TS-2073] Server implementation for tooling interop #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Introduce foundational JSON-RPC types, deserialization, and an initial swing at a POC method API for the project and package.
[TS-2073] Implement primitive file-based project lock
refactor error variants to be more module-specific
@@ -1,21 +1,24 @@ | |||
#![allow(dead_code)] | |||
|
|||
use std::io::{self, Stdin}; |
Check warning
Code scanning / clippy
unused import: Stdin Warning
@@ -0,0 +1,61 @@ | |||
use serde::{Deserialize, Serialize}; | |||
|
|||
use crate::package::{cache, Package}; |
Check warning
Code scanning / clippy
unused import: Package Warning
} | ||
|
||
impl From<Option<Project>> for ServerError { | ||
fn from(val: Option<Project>) -> Self { |
Check warning
Code scanning / clippy
unused variable: val Warning
|
||
/// Create the server runtime from the provided read and write channels. | ||
/// This lives for the lifespan of the process. | ||
pub async fn spawn(read: impl Read, write: impl Write, project_dir: &Path) -> Result<(), Error> { |
Check warning
Code scanning / clippy
unused variable: read Warning
|
||
/// Create the server runtime from the provided read and write channels. | ||
/// This lives for the lifespan of the process. | ||
pub async fn spawn(read: impl Read, write: impl Write, project_dir: &Path) -> Result<(), Error> { |
Check warning
Code scanning / clippy
unused variable: write Warning
ts::init_repository("https://thunderstore.io", None); | ||
|
||
loop { | ||
if let Err(e) = stdin.read_line(&mut line) { |
Check warning
Code scanning / clippy
unused variable: e Warning
// } | ||
// } | ||
|
||
fn respond_msg(recv: Receiver<Message>, cancel: RwLock<bool>) { |
Check warning
Code scanning / clippy
unused variable: cancel Warning
No description provided.