Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1894680rwb; Fri, 5 Aug 2022 09:28:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR7eNM1EYUxcVLy8tbmEu8uBPBh2fgDABjJCb+b6E3ch513xro23qg7usmQR+vLuMZ7bNW8B X-Received: by 2002:a17:902:c7c4:b0:16e:d968:6343 with SMTP id r4-20020a170902c7c400b0016ed9686343mr7460747pla.133.1659716882635; Fri, 05 Aug 2022 09:28:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659716882; cv=none; d=google.com; s=arc-20160816; b=F4wKxwAtqGEliwHN2fxrQzWcuOCzRrMW1pjGi9WOAOIGgZGTAKmh6uJxYZitsiv7PN b3ixS3P+H58BSFQHtiYRccpieKP6rDBcuyfKqpGbZKvmq5nslfEy4xh2UulGnp90+pPF emPw2F6ZeY2joHQ+ejCx9wvrnjBIg4UwigOJwsJwq/vXo/F07MBH/7suPv2jYo+/HC85 49bH8bA8habG1b+MnWXcX7oDtBW/wENu5vFmfj9HLUForehfjPbZTNebjOoEB31yOuku ZKlQ0tJxjKqW+YPJ+iF7l4tEQepCoCFuwByKHFPKAnZxYsFJ7ZG9C50SaIv/v6FIdsRd uPOQ== 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=ZYrI+3dm1d67lNNHGtHSEQFnLtHANrldvo2qDcJubYo=; b=Dz5vshontxT1NQeKWbY48dN1wANK+xiKG51bSwk5610xQOCvofeBu3xHLrIFRKJtU0 P+tgg7dX2cRXyvCW0vb0BPHk7+ddVw3cmNO2Ggz6cjW6el9rzs4xWqDVCmChNUpO1mZs w9YN0W9e1nwDLb19BmQ0lg0/NdtWvjvnfzMpG2/ADLkD8oMf2doyYPWPQfZSvvo8wvOd MMzmARenrsIBkiaPPoz+K+iJ/DSBXgwJihmcVsikkymD79WkcumdVUCYpekXyRpo2la2 6ev4Mt2oI3t9lFJzYB53+dnb969xIYcMpLvgVUQhg26ubqF86uGs/5tAyg5iAacOq2sH kG0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YaLUoQoF; 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 dw3-20020a17090b094300b001f2ef2c840dsi7685183pjb.18.2022.08.05.09.27.48; Fri, 05 Aug 2022 09:28:02 -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=YaLUoQoF; 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 S241307AbiHEPqj (ORCPT + 99 others); Fri, 5 Aug 2022 11:46:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241313AbiHEPpp (ORCPT ); Fri, 5 Aug 2022 11:45:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A6DE6D546; Fri, 5 Aug 2022 08:44:30 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 3672D61617; Fri, 5 Aug 2022 15:44:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 75C25C4347C; Fri, 5 Aug 2022 15:44:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659714269; bh=3gRZSTvU40pIskA+5EvDq4iUm3E1NXmF+4YZd9bq1Rw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YaLUoQoFEWLF5LlI43chW2UfBV4B3lnML2JMXtUH0ChcBSbDQWQKVu7HLU+WRLgnM 68uOqurgeJNSd5FHbG9jAOoGuSzJq4ocsYcom3qgcr8wDlRROibcvchiTlTOBUiN4Z OSd1OxjU2Ov49f2mIBwZznVJcAeSPF5DGnyApxK++qaUx3nikrrdeFvzKL/z7E2GuR gp+SLGvOG9YbLZu6Ei5TkDJxkPJU/O48fITX9AQPwuLRpdBrFH+3rRWyBXub23e5Yl 5bCY1NF8xpGeJbFXcwCIDPypm04ZztddEg+1qoDpPT0TS/qH4GJmBnJEPLRH2jlI/d z9HnhSuGtP0iA== 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 , Alex Gaynor , Wedson Almeida Filho Subject: [PATCH v9 22/27] rust: add `.rustfmt.toml` Date: Fri, 5 Aug 2022 17:42:07 +0200 Message-Id: <20220805154231.31257-23-ojeda@kernel.org> In-Reply-To: <20220805154231.31257-1-ojeda@kernel.org> References: <20220805154231.31257-1-ojeda@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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,T_SCC_BODY_TEXT_LINE 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. 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.1