Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5596969rwb; Mon, 14 Nov 2022 06:59:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf5MBePr2fUt5xPdBPV9cqlGsGVr7YTuNEimzsYffiNRyUOWKk5Kc9VyZpy8CZ/dX07VrU0q X-Received: by 2002:a65:588c:0:b0:434:b8ef:1ec6 with SMTP id d12-20020a65588c000000b00434b8ef1ec6mr12010423pgu.246.1668437973726; Mon, 14 Nov 2022 06:59:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668437973; cv=none; d=google.com; s=arc-20160816; b=vKnfPtRRsYprwEDZISjjS8rbLjI+9DW6IIvuc8mBh2JrgFDo0oyx09rRb8gHAttH+X LuzM2tG2p8QuW4KsCcyiVt4+PaPGDdalbIBdW99klNuZLICiDrURH4u6DFR66MHricrZ 7HoVhk/uNnyEbVgx4h7WPU0eFWBHqfpytDYfWEXA2jex5G+TX6WAuUSjK1tuphcw71Uu D4YC5fpQA3T97QFwSEDBFWjBBlIrusELqs112mMKG9/W0Y9nOmGUko7epiWMcr4HrMjf L/4Vog38RTNZOROF8Nj4gyzPJsm6FC3uTMizpSzDfs/ehVaXHHA/g0ABdNdJktRpuPsd W33Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=/cQ8NgfFgLSok/KaQcOLHXWKL1ciKqDLjAWu87KcMnU=; b=nkp8RAqZpNlcIy5bMNJZsGZ+crCtEJWkjBcmMoB3BjfPfSBDLInNKVIRwcqqLsj4Hm 9wYdvwTN+biDscZFvvRvKGojrZjttZgrjRg713NvQEZMDkh5Q1O2o1NtynhpidAVMR2H NPzAqNKUWq2I1fB3K89QRbXyQa5OWDrPylGIYRlF/2WhDcUJpfcfDK9x68yo5hAb7PXU POO1jUDFzkQUpH9GiX7YmUWwirdBrlX0K/MAZZXeTkrDCDhfqYaXWZvMB81Ua6QfJS0M whNMwRIBqq85mRBHQ4g6C/f7z21pQBuAN9QRwEIG3S4KJVsAZKCo2ue3aZSHfm1YyjAT Z4RA== 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; 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 g6-20020a170902934600b001886527ede6si9371760plp.91.2022.11.14.06.59.15; Mon, 14 Nov 2022 06:59:33 -0800 (PST) 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236229AbiKNOrN (ORCPT + 87 others); Mon, 14 Nov 2022 09:47:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237080AbiKNOrI (ORCPT ); Mon, 14 Nov 2022 09:47:08 -0500 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 506198E; Mon, 14 Nov 2022 06:47:07 -0800 (PST) Received: by mail-wm1-f42.google.com with SMTP id i186-20020a1c3bc3000000b003cfe29a5733so996779wma.3; Mon, 14 Nov 2022 06:47:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=/cQ8NgfFgLSok/KaQcOLHXWKL1ciKqDLjAWu87KcMnU=; b=2VFjoIl1Olj3XZXngNZlwrdfJqj9VqV7ZTbvk22Kuee+zNNUcCO70Es2ayI1saqNhl fZwhtWLLKivwf45AU7r4k2+YYzvjxIUa6tDN0R7FGGljB9KTVyJWmfUM7vr9/+H6pRGy ru9F9LPA4zGrrhcflnP+flZUyRfuT8CmK23LjN1FYUIOoicUl5JvQuiJEn6EqDfwYzAR liGSNzjfQGOF8KzINFnuNScF+Zut4IyXCnOkgwQ7djXUB4hCBiDldGq6je73LuWtr2Dg fkRLdg4h85GiqAFbdwuHH5Fjdjwuzk7rJjdlgzBvwtZ4H5beI8UDbOS1WfMwx/YxWbQO Sitg== X-Gm-Message-State: ANoB5plX4dFubTcbfvwTt5E+Nd6OedRTUpqnwABlrabhcjXw0QZFOjQ4 2U+2LutTGKLrxeGMRcx8iRg= X-Received: by 2002:a05:600c:6006:b0:3cf:45ff:aca with SMTP id az6-20020a05600c600600b003cf45ff0acamr8119832wmb.53.1668437225787; Mon, 14 Nov 2022 06:47:05 -0800 (PST) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id h4-20020a05600c350400b003c6f426467fsm20090378wmq.40.2022.11.14.06.47.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 06:47:05 -0800 (PST) Date: Mon, 14 Nov 2022 14:47:03 +0000 From: Wei Liu To: Miguel Ojeda Cc: Wedson Almeida Filho , Alex Gaynor , Boqun Feng , Gary Guo , =?iso-8859-1?Q?Bj=F6rn?= Roy Baron , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, patches@lists.linux.dev, Wei Liu Subject: Re: [PATCH v1 07/28] rust: macros: take string literals in `module!` Message-ID: References: <20221110164152.26136-1-ojeda@kernel.org> <20221110164152.26136-8-ojeda@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221110164152.26136-8-ojeda@kernel.org> X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Thu, Nov 10, 2022 at 05:41:19PM +0100, Miguel Ojeda wrote: > From: Gary Guo > > Instead of taking binary string literals, take string ones instead, > making it easier for users to define a module, i.e. instead of > calling `module!` like: > > module! { > ... > name: b"rust_minimal", > ... > } > > now it is called as: > > module! { > ... > name: "rust_minimal", > ... > } > > Module names, aliases and license strings are restricted to > ASCII only. However, the author and the description allows UTF-8. What's the rationale behind allowing UTF-8? Why not stick with ASCII only? Thanks, Wei.