overrideAttrs for rustPlatform.buildRustPackage?

Hi all, I am struggling with trying to override the buildFeatures for stalwart-mail and would appreciate some input pls.

  services.stalwart-mail = {
    enable = true;
    package = pkgs.stalwart-mail.overrideAttrs {
      buildNoDefaultFeatures = true;
      buildFeatures = [
        "sqlite"
        "rocks"
        "s3"
        "enterprise"
      ];
      buildInputs = with pkgs; [
        bzip2
        openssl
        sqlite
        zstd
      ];
    };
.....

I am trying to restrict buildFeatures to the ones above, but this doesn’t error nor work at all?

I would have expected errors.

How to override `buildFeatures` in Rust package ?