Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp950840rwb; Tue, 27 Sep 2022 06:42:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Gx0ZSoSaJ/jaHtzWax8oJW1dJ3lyw1LSCYcrBsvOe+Ok2ieKyZs97G/Zva/2Y9dIIH3mT X-Received: by 2002:a17:906:8a4a:b0:781:70ab:e7cb with SMTP id gx10-20020a1709068a4a00b0078170abe7cbmr22137023ejc.492.1664286151921; Tue, 27 Sep 2022 06:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664286151; cv=none; d=google.com; s=arc-20160816; b=xEgd2WrYLRNmZ8tcPID5EaDjVhDXoTvIP+SVkj8Y4zOCDhHUA95kVAS9y7dfv3FBRl ykE5ZeLt3jmQ4FX1jNnFrqQCKnf7gZOhhI9FR5HgJy9vQJgjY0OdUdk3AU+SuLkyed4O dHoqT+Y4tsqCYC8KIqK3snwg8SPgooDFmD6fM7st6HwpQ2CFw628EZioySq1RG5TqRLD Epgao62wGkPOl2PWzd9zb58G+Dh1IKIx8gnkUcSZ9UNqW49XrGZqCohofz9qUOxgO+El c82RHIi5ikCkdyxjaxCp3LKXwQR3dD/Z94g9qjen+rRpBe/KWyaSo+vfJyiQXok4FoXA JM7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZJGG1NBKvWvK5/NmlbF304/JtLUSk01bBUKz1942ptM=; b=l1l/NqUA3uW/t9mp/ALq+8i3tcM/Hz6FSAL61N1GwvY0ErB0TTC+yuAt8lZKK/kLR/ OrFtQf/xpacGwTKtTJrA3+aV/aCfTJDLqJFklJFGDGNCrmCax8CdEI7iqbJlQ0bU33hM 4JMr8uGOKJtN7b/SYzhRYKXzmGu6oBy3ZcqoqXda/wYYDygVday7oqdMI/3BzP91C7Kk aPunfdclMsVv8R9pufcgzFwyME6yT+T0scgJ8dA/u4KmQQrWfm07GurdoNYi2+k/lVVC haTHyU5pqtGlFJ2wezTLbR2cFtY+CvNWAjn/oGvL6GO33FTAJuYT6nKDCuphH/WuUHhC MMXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hS9UCUq4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mp41-20020a1709071b2900b00741a16e8562si1378343ejc.826.2022.09.27.06.42.04; Tue, 27 Sep 2022 06:42:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hS9UCUq4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232848AbiI0NVh (ORCPT + 99 others); Tue, 27 Sep 2022 09:21:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbiI0NTb (ORCPT ); Tue, 27 Sep 2022 09:19:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D04C4CE; Tue, 27 Sep 2022 06:18:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E475FB81BB6; Tue, 27 Sep 2022 13:17:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D9F4C4347C; Tue, 27 Sep 2022 13:17:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664284652; bh=EuqxGNkNupOc1q+c+aGyg7u/0Q2OwWn5PxUUFbdrTHY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hS9UCUq4hozQ5ISCtbVU6IO4HTsXIKLenBOyX3W2hGB4Pja4aBEki3tcc/DoaWZb4 Az+A5g1NP8wIcUV1cCSqzyk5heOZMlTd5gnxyNkNR4K2AgDlVVAbvVoplbrY+a+gyE SwhI3UcKiSh4hQbzSQlkdvzVgWDUuoJ4opT1MlTgNSCYYvtdrB6qK16cR8tDypuRcx a7PxQpaCqar0Gt7NjzFtsyNNfXHIIzagh3Rfz6Y5DkB0ZNBL4B/uR2BhPSA4oM4OSa ZFkKe7+upViVRdNOnCVRH+5PJMo6AF1Yl/x/xj0qnfshw5TwZtiflM0qZsiHGHLx2S em0OrD3/DrQuQ== From: Miguel Ojeda To: Linus Torvalds , Greg Kroah-Hartman Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Miguel Ojeda , Kees Cook , Alex Gaynor , Wedson Almeida Filho Subject: [PATCH v10 22/27] rust: add `.rustfmt.toml` Date: Tue, 27 Sep 2022 15:14:53 +0200 Message-Id: <20220927131518.30000-23-ojeda@kernel.org> In-Reply-To: <20220927131518.30000-1-ojeda@kernel.org> References: <20220927131518.30000-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the configuration file for the `rustfmt` tool. `rustfmt` is a tool for formatting Rust code according to style guidelines. It is very commonly used across Rust projects. The default configuration options are used. Reviewed-by: Kees Cook Co-developed-by: Alex Gaynor Signed-off-by: Alex Gaynor Co-developed-by: Wedson Almeida Filho Signed-off-by: Wedson Almeida Filho Signed-off-by: Miguel Ojeda --- .gitignore | 1 + .rustfmt.toml | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 .rustfmt.toml diff --git a/.gitignore b/.gitignore index 80989914c97d..97e085d613a2 100644 --- a/.gitignore +++ b/.gitignore @@ -97,6 +97,7 @@ modules.order !.gitattributes !.gitignore !.mailmap +!.rustfmt.toml # # Generated include files diff --git a/.rustfmt.toml b/.rustfmt.toml new file mode 100644 index 000000000000..3de5cc497465 --- /dev/null +++ b/.rustfmt.toml @@ -0,0 +1,12 @@ +edition = "2021" +newline_style = "Unix" + +# Unstable options that help catching some mistakes in formatting and that we may want to enable +# when they become stable. +# +# They are kept here since they are useful to run from time to time. +#format_code_in_doc_comments = true +#reorder_impl_items = true +#comment_width = 100 +#wrap_comments = true +#normalize_comments = true -- 2.37.3