[package]
name = "proc-macro-srv-cli"
version = "0.0.0"
repository.workspace = true
description = "A standalone binary for the `proc-macro-srv` crate of rust-analyzer."

authors.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
publish = false

[lib]
doctest = false

[dependencies]
proc-macro-srv.workspace = true
proc-macro-api.workspace = true
clap = {version = "4.5.42", default-features = false, features = ["std"]}

[dev-dependencies]
expect-test.workspace = true
paths.workspace = true
# span = {workspace = true, default-features = false} does not work
span = { path = "../span", default-features = false}
tt.workspace = true
intern.workspace = true

# used as proc macro test target
proc-macro-test.path = "../proc-macro-srv/proc-macro-test"

[features]
default = []
# default = ["sysroot-abi"]
sysroot-abi = ["proc-macro-srv/sysroot-abi", "proc-macro-api/sysroot-abi"]
in-rust-tree = ["proc-macro-srv/in-rust-tree", "sysroot-abi"]


[[bin]]
name = "rust-analyzer-proc-macro-srv"
path = "src/main.rs"

[lints]
workspace = true
