From: Kefu Chai <k.chai@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH pve-cluster 14/15] pmxcfs-rs: add Makefile for build automation
Date: Tue, 6 Jan 2026 22:24:38 +0800 [thread overview]
Message-ID: <20260106142440.2368585-15-k.chai@proxmox.com> (raw)
In-Reply-To: <20260106142440.2368585-1-k.chai@proxmox.com>
Add Makefile with standard targets for building, testing, and linting:
- test: Run all workspace tests
- clippy: Lint code with clippy
- fmt: Check code formatting
- check: Full quality check (fmt + clippy + test)
- build: Build release version
- clean: Clean build artifacts
This provides a consistent interface for building and testing the
Rust implementation.
Signed-off-by: Kefu Chai <k.chai@proxmox.com>
---
src/pmxcfs-rs/.gitignore | 1 +
src/pmxcfs-rs/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 40 insertions(+)
create mode 100644 src/pmxcfs-rs/.gitignore
create mode 100644 src/pmxcfs-rs/Makefile
diff --git a/src/pmxcfs-rs/.gitignore b/src/pmxcfs-rs/.gitignore
new file mode 100644
index 00000000..ea8c4bf7
--- /dev/null
+++ b/src/pmxcfs-rs/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/src/pmxcfs-rs/Makefile b/src/pmxcfs-rs/Makefile
new file mode 100644
index 00000000..eaa96317
--- /dev/null
+++ b/src/pmxcfs-rs/Makefile
@@ -0,0 +1,39 @@
+.PHONY: all test lint clippy fmt check build clean help
+
+# Default target
+all: check build
+
+# Run all tests
+test:
+ cargo test --workspace
+
+# Lint with clippy (using proxmox-backup style: only fail on correctness issues)
+clippy:
+ cargo clippy --workspace -- -A clippy::all -D clippy::correctness
+
+# Check code formatting
+fmt:
+ cargo fmt --all --check
+
+# Full quality check (format + lint + test)
+check: fmt clippy test
+
+# Build release version
+build:
+ cargo build --workspace --release
+
+# Clean build artifacts
+clean:
+ cargo clean
+
+# Show available targets
+help:
+ @echo "Available targets:"
+ @echo " all - Run check and build (default)"
+ @echo " test - Run all tests"
+ @echo " clippy - Run clippy linter"
+ @echo " fmt - Check code formatting"
+ @echo " check - Run fmt + clippy + test"
+ @echo " build - Build release version"
+ @echo " clean - Clean build artifacts"
+ @echo " help - Show this help message"
--
2.47.3
_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
next prev parent reply other threads:[~2026-01-06 14:24 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-06 14:24 [pve-devel] [PATCH pve-cluster 00/15 v1] Rewrite pmxcfs with Rust Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 01/15] pmxcfs-rs: add workspace and pmxcfs-api-types crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 02/15] pmxcfs-rs: add pmxcfs-config crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 03/15] pmxcfs-rs: add pmxcfs-logger crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 04/15] pmxcfs-rs: add pmxcfs-rrd crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 05/15] pmxcfs-rs: add pmxcfs-memdb crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 06/15] pmxcfs-rs: add pmxcfs-status crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 07/15] pmxcfs-rs: add pmxcfs-test-utils infrastructure crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 08/15] pmxcfs-rs: add pmxcfs-services crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 09/15] pmxcfs-rs: add pmxcfs-ipc crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 10/15] pmxcfs-rs: add pmxcfs-dfsm crate Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 11/15] pmxcfs-rs: vendor patched rust-corosync for CPG compatibility Kefu Chai
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 13/15] pmxcfs-rs: add integration and workspace tests Kefu Chai
2026-01-06 14:24 ` Kefu Chai [this message]
2026-01-06 14:24 ` [pve-devel] [PATCH pve-cluster 15/15] pmxcfs-rs: add project documentation Kefu Chai
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260106142440.2368585-15-k.chai@proxmox.com \
--to=k.chai@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.