Skip to content

Commit

Permalink
Add proc-macro-server command
Browse files Browse the repository at this point in the history
commit-id:330d5fd9
  • Loading branch information
Draggu committed Oct 24, 2024
1 parent 0b9efa9 commit f440599
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scarb/src/bin/scarb/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ pub enum Command {
codes of selected packages. Resulting files will be placed in `target/package` directory.
")]
Package(PackageArgs),
/// Start proc macro server.
ProcMacroServer,
/// Upload a package to the registry.
#[command(after_help = "\
This command will create distributable, compressed `.tar.zst` archive containing source \
Expand Down
2 changes: 2 additions & 0 deletions scarb/src/bin/scarb/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub mod manifest_path;
pub mod metadata;
pub mod new;
pub mod package;
mod proc_macro_server;
pub mod publish;
pub mod remove;
pub mod run;
Expand Down Expand Up @@ -49,6 +50,7 @@ pub fn run(command: Command, config: &mut Config) -> Result<()> {
Metadata(args) => metadata::run(args, config),
New(args) => new::run(args, config),
Package(args) => package::run(args, config),
ProcMacroServer => proc_macro_server::run(config),
Publish(args) => publish::run(args, config),
Remove(args) => remove::run(args, config),
Run(args) => run::run(args, config),
Expand Down
7 changes: 7 additions & 0 deletions scarb/src/bin/scarb/commands/proc_macro_server.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use anyhow::Result;
use scarb::core::Config;

#[tracing::instrument(skip_all, level = "info")]
pub fn run(_config: &Config) -> Result<()> {
unimplemented!()
}

0 comments on commit f440599

Please sign in to comment.