110 lines
3.3 KiB
TOML
110 lines
3.3 KiB
TOML
[workspace]
|
|
members = ["crates/john-slop-core", "crates/john-slop-lsp"]
|
|
default-members = [".", "crates/john-slop-core", "crates/john-slop-lsp"]
|
|
resolver = "3"
|
|
|
|
[workspace.package]
|
|
version = "0.1.27-rc.8"
|
|
edition = "2024"
|
|
rust-version = "1.98.1"
|
|
license = "MIT"
|
|
repository = "https://proxy.dandaedre.com/gitea/idle-org/john-slop"
|
|
|
|
[workspace.dependencies]
|
|
clap = { version = "4.6.7", default-features = false, features = ["derive", "error-context", "help", "std", "suggestions", "usage"] }
|
|
criterion = { version = "0.8.2", default-features = false }
|
|
directories = "6.0.0"
|
|
figment = { version = "0.10.19", default-features = false, features = ["toml"] }
|
|
futures = { version = "0.3.34", default-features = false, features = ["std"] }
|
|
globset = { version = "0.4.20", default-features = false }
|
|
insta = { version = "1.48.0", default-features = false }
|
|
john-slop-core = { version = "0.1.27-rc.8", path = "crates/john-slop-core" }
|
|
john-slop-lsp-engine = { package = "john-slop-lsp", version = "0.1.27-rc.8", path = "crates/john-slop-lsp" }
|
|
miette = { version = "7.6.0", default-features = false, features = ["derive"] }
|
|
regex = "1.13.1"
|
|
serde = { version = "1.0.229", features = ["derive"] }
|
|
serde_json = "1.0.151"
|
|
sha2 = "0.11.0"
|
|
similar = "2.7.0"
|
|
tempfile = "3.27.0"
|
|
thiserror = "2.0.21"
|
|
tokio = { version = "1.53.1", default-features = false }
|
|
toml = "1.1.6"
|
|
tower = { version = "0.5.3", default-features = false, features = ["util"] }
|
|
tower-lsp-server = { version = "0.23.0", default-features = false, features = ["runtime-tokio"] }
|
|
unicode-security = "0.1.2"
|
|
walkdir = "2.5.0"
|
|
zip = { version = "8.6.0", default-features = false, features = ["deflate-flate2-zlib-rs"] }
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[package]
|
|
name = "john-slop"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
description = "Inspect files, directories, or ZIP-based documents for low-care signals"
|
|
autobins = false
|
|
|
|
[package.metadata.binstall]
|
|
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-{ target }-v{ version }.tgz"
|
|
pkg-fmt = "tgz"
|
|
bin-dir = "{ name }-{ target }-v{ version }/{ bin }{ binary-ext }"
|
|
|
|
[[bin]]
|
|
name = "john-slop"
|
|
path = "src/bin/john-slop.rs"
|
|
|
|
[[bin]]
|
|
name = "john-slop-fmt"
|
|
path = "src/bin/john-slop-fmt.rs"
|
|
|
|
[[bin]]
|
|
name = "john-slop-lsp"
|
|
path = "src/bin/john-slop-lsp.rs"
|
|
required-features = ["lsp"]
|
|
|
|
[features]
|
|
default = ["fancy-diagnostics", "lsp"]
|
|
fancy-diagnostics = ["miette/fancy"]
|
|
lsp = ["dep:john-slop-lsp-engine", "dep:tokio", "dep:tower-lsp-server"]
|
|
|
|
[dependencies]
|
|
clap.workspace = true
|
|
globset.workspace = true
|
|
john-slop-core.workspace = true
|
|
john-slop-lsp-engine = { workspace = true, optional = true }
|
|
miette.workspace = true
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
similar.workspace = true
|
|
tempfile.workspace = true
|
|
thiserror.workspace = true
|
|
tokio = { workspace = true, features = ["io-std", "macros", "rt-multi-thread", "sync"], optional = true }
|
|
toml.workspace = true
|
|
tower-lsp-server = { workspace = true, optional = true }
|
|
|
|
[dev-dependencies]
|
|
criterion.workspace = true
|
|
futures.workspace = true
|
|
insta.workspace = true
|
|
sha2.workspace = true
|
|
tower.workspace = true
|
|
zip.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[[bench]]
|
|
name = "core"
|
|
harness = false
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
lto = "thin"
|
|
panic = "abort"
|
|
strip = "symbols"
|