[package] name = "lsp_msg_derive" version = "0.3.0" authors = ["Justin Simerly "] edition = "2018" description = "Proc macros for lsp_msg" license = "MIT" repository = "https://github.com/jsim2010/lsp_msg_derive" keywords = ["lsp", "lsp_msg"] categories = ["data-structures"] readme = "README.md" [lib] path = "src/lib.rs" proc-macro = true [dependencies] proc-macro2 = "0.4.27" quote = "0.6.12" spec = "0.2.0" syn = { version = "0.15.30", features = ["full"] } [dev-dependencies] lsp_msg_internal = "0.2.0" serde = { version = "1.0.90", features = ["derive"] } [package.metadata.commands] preeval = """ (cargo-readme -V || cargo install cargo-readme) \ && (cargo-clippy -V || rustup component add clippy) \ && (cargo-fmt --version || rustup component add rustfmt) \ && cargo-readme readme > r\ """ # Evaluates source code for issues. # Clippy command forbids all rustc and clippy lints except the following: # -D unused-qualifications: #[derive(Default)] adds an allow. # -A missing-docs: Unknown errors found due to missing documentation for a module and a static; this may be due to being a proc-macro? # -A clippy::implicit-return: This goes against rust convention and would require return calls in inconvenient places (e.g. closures). # -A clippy::multiple-crate-versions: Invalid error due to lsp_msg_internal including lsp_msg_derive. eval = """ set CLIPPY_DISABLE_DOCS_LINKS=1\ && cargo-clippy clippy --verbose -- \ -F warnings \ -F future-incompatible \ -F macro-use-extern-crate \ -F missing-copy-implementations \ -F missing-debug-implementations \ -F single-use-lifetimes \ -F trivial-casts \ -F trivial-numeric-casts \ -F unreachable-pub \ -F unused-imports \ -F unused-import-braces \ -F unused-lifetimes \ -F unused-results \ -F unused-variables \ -F unused-assignments \ -F dead-code \ -F unused-mut \ -F unreachable-code \ -F unreachable-patterns \ -F unused-must-use \ -F unused-unsafe \ -F path-statements \ -F unused-macros \ -F unused-allocation \ -F unused-doc-comments \ -F unused-extern-crates \ -F unused-features \ -F unused-labels \ -F unused-parens \ -F clippy::all \ -F clippy::pedantic \ -F clippy::nursery \ -F clippy::cargo-common-metadata \ -F clippy::wildcard-dependencies \ -F clippy::clone-on-ref-ptr \ -F clippy::dbg-macro \ -F clippy::decimal-literal-representation \ -F clippy::else-if-without-else \ -F clippy::float-arithmetic \ -F clippy::float-cmp-const \ -F clippy::get-unwrap \ -F clippy::indexing-slicing \ -F clippy::integer-arithmetic \ -F clippy::mem-forget \ -F clippy::missing-docs-in-private-items \ -F clippy::missing-inline-in-public-items \ -F clippy::multiple-inherent-impl \ -F clippy::option-unwrap-used \ -F clippy::print-stdout \ -F clippy::result-unwrap-used \ -F clippy::shadow-reuse \ -F clippy::shadow-same \ -F clippy::string-add \ -F clippy::unimplemented \ -F clippy::use-debug \ -F clippy::wildcard-enum-match-arm \ -F clippy::wrong-pub-self-convention \ -D rust-2018-idioms \ -D unused-attributes \ -D unused-qualifications \ -A missing-docs \ -A clippy::implicit-return \ -A clippy::multiple-crate-versions \ && cargo-fmt -- --check \ && fc r README.md \ && cargo test --verbose --all-features\ """ posteval = "if exist r rm r" prefix = "cargo-readme -V || cargo install cargo-readme" # Fixes all issues that can be done automatically. fix = "cargo-fmt && cargo-readme readme > README.md"