Skip to content

Commit b0520ac

Browse files
committed
feat(server): server version command
1 parent 2655e98 commit b0520ac

File tree

4 files changed

+127
-0
lines changed

4 files changed

+127
-0
lines changed

server/Cargo.lock

Lines changed: 116 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/circom-lsp/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ codespan-reporting = "0.9.0"
2222
itertools = "0.10.5"
2323
num-traits = "0.2.6"
2424
tempfile = "3"
25+
clap = { version = "4.3.0", features = ["derive"] }

server/circom-lsp/src/cli.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use clap::Parser;
2+
3+
#[derive(Parser, Debug)]
4+
#[command(author, version, about, long_about = None)]
5+
pub struct ServerOptions {}

server/circom-lsp/src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
11
mod ast;
22
mod backend;
3+
mod cli;
34
mod constants;
45
mod lsp_types_util;
56
mod parse;
67
mod wrappers;
78

89
use backend::Backend;
10+
use clap::Parser;
11+
use cli::ServerOptions;
912
use tower_lsp::{LspService, Server};
1013

1114
#[tokio::main]
1215
async fn main() {
16+
let _server_options = ServerOptions::parse();
17+
1318
let stdin = tokio::io::stdin();
1419
let stdout = tokio::io::stdout();
1520

0 commit comments

Comments
 (0)