From: Samuel Rufinatscha <s.rufinatscha@proxmox.com>
To: Kefu Chai <k.chai@proxmox.com>, pve-devel@lists.proxmox.com
Subject: Re: [PATCH pve-cluster 01/14 v2] pmxcfs-rs: add Rust workspace configuration
Date: Wed, 18 Feb 2026 11:41:59 +0100 [thread overview]
Message-ID: <22bd1d6f-2cbe-4029-90f3-0c7437c416d6@proxmox.com> (raw)
In-Reply-To: <20260213094119.2379288-2-k.chai@proxmox.com>
Thanks for the patch!
I think it’d be better to merge this with the next patch that adds the
first workspace member, since otherwise cargo build doesn’t work yet.
Also, could you please additionally add a rustfmt.toml so formatting is
consistent across repos? And a small inline comment below:
On 2/13/26 10:41 AM, Kefu Chai wrote:
> Initialize the Rust workspace for the pmxcfs rewrite project.
>
> Signed-off-by: Kefu Chai <k.chai@proxmox.com>
> ---
> src/pmxcfs-rs/.gitignore | 3 +++
> src/pmxcfs-rs/Cargo.toml | 31 +++++++++++++++++++++++++++++++
> src/pmxcfs-rs/Makefile | 39 +++++++++++++++++++++++++++++++++++++++
> 3 files changed, 73 insertions(+)
> create mode 100644 src/pmxcfs-rs/.gitignore
> create mode 100644 src/pmxcfs-rs/Cargo.toml
> create mode 100644 src/pmxcfs-rs/Makefile
>
> diff --git a/src/pmxcfs-rs/.gitignore b/src/pmxcfs-rs/.gitignore
> new file mode 100644
> index 000000000..f2e56d3f7
> --- /dev/null
> +++ b/src/pmxcfs-rs/.gitignore
> @@ -0,0 +1,3 @@
> +/target
this entry should not be needed as it’s covered by target/ below
> +Cargo.lock
> +target/
> diff --git a/src/pmxcfs-rs/Cargo.toml b/src/pmxcfs-rs/Cargo.toml
> new file mode 100644
> index 000000000..d109221fb
> --- /dev/null
> +++ b/src/pmxcfs-rs/Cargo.toml
> @@ -0,0 +1,31 @@
> +# Workspace root for pmxcfs Rust implementation
> +[workspace]
> +members = [
> +]
> +resolver = "2"
> +
> +[workspace.package]
> +version = "9.0.6"
> +edition = "2024"
> +authors = ["Proxmox Support Team <support@proxmox.com>"]
> +license = "AGPL-3.0"
> +repository = "https://git.proxmox.com/?p=pve-cluster.git"
> +rust-version = "1.85"
> +
> +[workspace.dependencies]
> +# Dependencies will be added incrementally as crates are introduced
> +
> +[workspace.lints.clippy]
> +uninlined_format_args = "warn"
> +
> +[profile.release]
> +lto = true
> +codegen-units = 1
> +opt-level = 3
> +strip = true
> +
> +[profile.dev]
> +opt-level = 1
> +debug = true
> +
> +[patch.crates-io]
> diff --git a/src/pmxcfs-rs/Makefile b/src/pmxcfs-rs/Makefile
> new file mode 100644
> index 000000000..eaa96317f
> --- /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"
next prev parent reply other threads:[~2026-02-18 10:41 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-13 9:33 [PATCH pve-cluster 00/14 v2] Rewrite pmxcfs with Rust Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 01/14 v2] pmxcfs-rs: add Rust workspace configuration Kefu Chai
2026-02-18 10:41 ` Samuel Rufinatscha [this message]
2026-02-13 9:33 ` [PATCH pve-cluster 02/14 v2] pmxcfs-rs: add pmxcfs-api-types crate Kefu Chai
2026-02-18 15:06 ` Samuel Rufinatscha
2026-02-13 9:33 ` [PATCH pve-cluster 03/14 v2] pmxcfs-rs: add pmxcfs-config crate Kefu Chai
2026-02-18 16:41 ` Samuel Rufinatscha
2026-02-13 9:33 ` [PATCH pve-cluster 04/14 v2] pmxcfs-rs: add pmxcfs-logger crate Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 05/14 v2] pmxcfs-rs: add pmxcfs-rrd crate Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 06/14 v2] pmxcfs-rs: add pmxcfs-memdb crate Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 07/14 v2] pmxcfs-rs: add pmxcfs-status and pmxcfs-test-utils crates Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 08/14 v2] pmxcfs-rs: add pmxcfs-services crate Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 09/14 v2] pmxcfs-rs: add pmxcfs-ipc crate Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 10/14 v2] pmxcfs-rs: add pmxcfs-dfsm crate Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 11/14 v2] pmxcfs-rs: vendor patched rust-corosync for CPG compatibility Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 12/14 v2] pmxcfs-rs: add pmxcfs main daemon binary Kefu Chai
2026-02-13 9:33 ` [PATCH pve-cluster 14/14 v2] 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=22bd1d6f-2cbe-4029-90f3-0c7437c416d6@proxmox.com \
--to=s.rufinatscha@proxmox.com \
--cc=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox