Skip to content

[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

Merged
merged 7 commits into from
Mar 1, 2025

Conversation

ethangreen-dev
Copy link
Member

No description provided.

Introduce foundational JSON-RPC types, deserialization,
and an initial swing at a POC method API for the project
and package.
@ethangreen-dev ethangreen-dev marked this pull request as ready for review March 1, 2025 07:12
@@ -1,21 +1,24 @@
#![allow(dead_code)]

use std::io::{self, Stdin};

Check warning

Code scanning / clippy

unused import: Stdin Warning

unused import: Stdin
@@ -0,0 +1,61 @@
use serde::{Deserialize, Serialize};

use crate::package::{cache, Package};

Check warning

Code scanning / clippy

unused import: Package Warning

unused import: Package
}

impl From<Option<Project>> for ServerError {
fn from(val: Option<Project>) -> Self {

Check warning

Code scanning / clippy

unused variable: val Warning

unused variable: val

/// 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

unused variable: read

/// 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

unused variable: write
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

unused variable: e
// }
// }

fn respond_msg(recv: Receiver<Message>, cancel: RwLock<bool>) {

Check warning

Code scanning / clippy

unused variable: cancel Warning

unused variable: cancel
@ethangreen-dev ethangreen-dev merged commit 8dd0659 into develop Mar 1, 2025
3 of 5 checks passed
@ethangreen-dev ethangreen-dev deleted the server branch March 1, 2025 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant