From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 863D4C4332F for ; Mon, 14 Nov 2022 14:47:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235835AbiKNOrM (ORCPT ); Mon, 14 Nov 2022 09:47:12 -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-Google-Smtp-Source: AA0mqf5wE1S5mLgKCd2OMeCBlex3zOQnN9+29JIVAUdfIe/x6QNmiCbJvOOyAEfXEYVKqCsMe8vcmg== 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> Precedence: bulk List-ID: X-Mailing-List: rust-for-linux@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.