Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1050870rwb; Tue, 27 Sep 2022 07:51:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4PyrTS9Z3mK9E9gkF8875D9d3QWro6FVSmwJ8fyQh6WDavHu/qArR0AAx1Z1XyxY1/Dz1V X-Received: by 2002:a05:6402:d57:b0:457:24ec:34be with SMTP id ec23-20020a0564020d5700b0045724ec34bemr13770337edb.127.1664290295304; Tue, 27 Sep 2022 07:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664290295; cv=none; d=google.com; s=arc-20160816; b=qjuqogyhtALhE5a/r1Zcjq2MOHZgjjpPt3iVjcwAqZQFknd35phbx/MzDUweDsBwHE c588VGKGsTB4SCWR2FGzTtvKMfP0C05ilx1i5P4LH8rwUw46tWDlN1CLNDL5FHpVp3EP s9v+ZlOrli2hU0eQOhtPjc/xtJCE+0Rh0jixznv8iAql8K+pJQZdX9i6INzHk9wpwXOs 1MHG27LxGEZocKnlxYr1L90wm2wuyOhuQtDMAsXCWsMwttcsGSxSVuwzRirLkUHnI/ms cC9u5Adp3pPqR4yWuB7FqBzmen1ZCQC0IvG4TnJqGYSdGNDlEIlCgNb9qbXqQhUKiXnG PWjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xqs1GDdBbd06gwAl0UN9E1IB0x/sfYVzpm/tCj/rvU4=; b=FYLdLooyRmrF7XYM+uec9pNs4FY4i+MzQ8kMKlsj3m9C0NrU9u1wpXWZyg37/3oJPd 4NTRzf1AWFR7RwS263iK+tL0/dnzC7yc1v3YZP4wUiNuAhGLpk+tpYubGRzvNSLRoxpE VrMZI7Vf26LhAsjLuq7EzwiijWqZsuXkhDcAdW3Iae3VwXRjwE97j86//YRq4Ea5DQrw E/QrsXDow2WP+iYaoMXtz1tG3Ub1keB7iA4fkjkDSqsWPDwdhLEDF6PiaWrUZlfeguol q6mDcHf6X4XLPNeJFa53+j92G/ef0wgCirCzLrb31WS0vuSf5/tbzI3zqWdk44L/Ui6O 67Uw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dr10-20020a170907720a00b00783cf05c210si1657840ejc.833.2022.09.27.07.51.07; Tue, 27 Sep 2022 07:51:35 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231814AbiI0OFT (ORCPT + 99 others); Tue, 27 Sep 2022 10:05:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232130AbiI0OFO (ORCPT ); Tue, 27 Sep 2022 10:05:14 -0400 X-Greylist: delayed 328 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 27 Sep 2022 07:05:12 PDT Received: from hop.stappers.nl (hop.stappers.nl [141.105.120.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B4DB213E07; Tue, 27 Sep 2022 07:05:11 -0700 (PDT) Received: from gpm.stappers.nl (gpm.stappers.nl [IPv6:2a02:a46d:659e:1::696e:626f]) by hop.stappers.nl (Postfix) with ESMTP id A807C2000F; Tue, 27 Sep 2022 13:59:40 +0000 (UTC) Received: by gpm.stappers.nl (Postfix, from userid 1000) id 4F074304049; Tue, 27 Sep 2022 15:59:40 +0200 (CEST) Date: Tue, 27 Sep 2022 15:59:39 +0200 From: Geert Stappers To: Konstantin Shelekhin Cc: Miguel Ojeda , Linus Torvalds , Greg Kroah-Hartman , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, patches@lists.linux.dev, Jarkko Sakkinen , Alex Gaynor , Finn Behrens , Adam Bratschi-Kaye , Wedson Almeida Filho , Sumera Priyadarsini , Gary Guo , Matthew Bakhtiari , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , Boqun Feng Subject: Re: [PATCH v10 10/27] rust: add `macros` crate Message-ID: <20220927135939.mf6oowsceaaen25b@gpm.stappers.nl> References: <20220927131518.30000-1-ojeda@kernel.org> <20220927131518.30000-11-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 On Tue, Sep 27, 2022 at 04:48:05PM +0300, Konstantin Shelekhin wrote: > On Tue, Sep 27, 2022 at 03:14:41PM +0200, Miguel Ojeda wrote: > [...] > > For instance, the `module!` macro that is used by Rust modules > > is implemented here. It allows to easily declare the equivalent > > information to the `MODULE_*` macros in C modules, e.g.: > > > > module! { > > type: RustMinimal, > > name: b"rust_minimal", > > author: b"Rust for Linux Contributors", > > description: b"Rust minimal sample", > > license: b"GPL", > > } > [...] > > I remember that there was a switch from &u8 to &str on master branch a > while ago. Why this patch was reverted? Strings are really better here. ASCII versus UTF8 Groeten Geert Stappers -- Silence is hard to parse