Ref: https://leosaa.medium.com/build-the-latest-kernel-package-for-debian-85b09ec6af88

cp -v /boot/config-$(uname -r) .config
make menuconfig
make olddefconfig

Disable signing keys and debug:

scripts/config --disable SYSTEM_TRUSTED_KEYS
scripts/config --disable SYSTEM_REVOCATION_KEYS
scripts/config --disable DEBUG_INFO
scripts/config --enable DEBUG_INFO_NONE

Note, currently rust support requires MODVERSION to be disabled, double check if Rust supports is shown in menuconfig.

Check setup of rust by:

make -j`nproc` LOCALVERSION=-rust LLVM=-19 rustavailable

where -19 is version of Clang used.

Then build:

make -j`nproc` LOCALVERSION=-rust LLVM=-19 bindeb-pkg