Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6219834rwb; Mon, 5 Dec 2022 09:19:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf6R3HjRTyvRzXggftc97juAgL4hgZUhENWU+Fv+DpW+IXXfpWfm4V7hFXByXLmrSEc9Kstm X-Received: by 2002:a63:417:0:b0:478:6f31:d40c with SMTP id 23-20020a630417000000b004786f31d40cmr19904817pge.16.1670260741251; Mon, 05 Dec 2022 09:19:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670260741; cv=none; d=google.com; s=arc-20160816; b=TyvSU2um/6t4ICf/wz1NgCDckniQdUW/I0+5CVKWoN8Qup44uSC8p+BTWItbv6bZPg LJReCTsIpXV4ymAJeZvdCTR6I/+sE8l1IRtXmPdWVYgJrjdYDrb5sOS7z3a8gjSL2S48 QQRle3nWS93AKMGLFq8EBh1zLlNpdXO1Jeb5iEMmrpvoXHSvy8aZeKia8y+7yniTB4mW 3ltJV2Aix/BGm/P8gqBjLfdwwsNqUfKoMPdDybb69ECkwZlbMPYKPe8ZRLyWAGXbf3md qhWm4W/hVdweUyWLS5CHuYii82ux0LA9hrlPfE1anBq08WDlLK9xp0Kt2GBNflRQeV6w 6MGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=OaB3OQ0URDFHXxjcwHhCyd2CAPTUuyAJq3NmN97aOGw=; b=oDJIOLKfJocdSPJoUGFF829XOJacBzokyvQCyg9UJ6i8eLJGmPlrBCMwXksawNzArc dhHLFk/VDPEvgt0e80HGIxa2XoI89pbhp6D/Td8mYjFcOEfViaF50TFc78yrj8VAN/x4 JtGvGehqQsbk/R30zWUcwg+2aEu1ITbi8BobC8k8IBB3hdQ0Q0KLfTiYXJ/Ss5dWDeKJ +z1h7vDk0CSQON/TdMN67BSh8y1UXmwll6B8mg8rp6UR+woPlg0k89draprQrSWuMqQB bbrQFcZn3HtZiBskE8Wqfzyo64sI9pLKQzZeNPhjf/LycBJpp7jU/K5hj5Qm9Un/qv80 +OCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NsnK1UsA; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a62b407000000b00574d06d6a4fsi14337112pfn.56.2022.12.05.09.18.49; Mon, 05 Dec 2022 09:19:01 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NsnK1UsA; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232109AbiLEQJI (ORCPT + 81 others); Mon, 5 Dec 2022 11:09:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbiLEQJG (ORCPT ); Mon, 5 Dec 2022 11:09:06 -0500 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FADA1CFC6; Mon, 5 Dec 2022 08:09:05 -0800 (PST) Received: by mail-yb1-xb34.google.com with SMTP id y135so10485941yby.12; Mon, 05 Dec 2022 08:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OaB3OQ0URDFHXxjcwHhCyd2CAPTUuyAJq3NmN97aOGw=; b=NsnK1UsAhHKkQnNGGN8UQkIhv7lgQpwMQAhtas/rsjSjePwq98T3s59Ht3FfWMGwrD Fx/jP34bmNxTanMHz4qb0UUS4kHNBASdRy4dpZ8QJPmVt4Zd6mjkOaqpkSHBOYHSul1e YdGVLxEC7bUaXgy3a2m9CL3TRFMeCsrIyCN8P7xJanjQCi2Xk4hR6EZhpNPNgmnreYGV P6jU8usu6lnG2V3GCJKj9J0JDE7m8xL+R/KKo7hJQyTB+zSwwKGnCFsF+yyrVpuGn/FV 731ZbI328eUTR3u64a7gtzNuRpyG4RQhnCQESsnqA5hpncSLpe2QDTwqsReSeRLKP6kt 9hOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OaB3OQ0URDFHXxjcwHhCyd2CAPTUuyAJq3NmN97aOGw=; b=OZZsCLsU0HmUkMu/NoRGSP+V/LZoDRplLlrakw6jZRw4GDok9wsofY9yJtotCvZeXC tt/5NTkLCGs4ReHtJsXVrl508YVSe79CzEMSw8J4Nuxsjk64XcdXdg2f4mOSOhBl6eJ1 RM7CcUz3WmAiGvWK1WXoz3o3/pe/sAfcRcp+b6731fTp1i/IdTewAI2qAvQCejPUmS2O 3D7ALUyPPr+Zr1z/9UxWtM1Swa7UmP7+j2VjEkn1zytVXhVhbY9FTje52eMJq7/+7I3T eYD0XXWHPYN0Mp1ATXhGTYF/56RkUyT8A64Zqyf3hdYj2lCkkrhtGYCYYzlC5bVYZoKc TGlA== X-Gm-Message-State: ANoB5pkm5SF0BYwtsV6D8AkPh2JU3/mL3maQwD1bBHgdhMptIyULVFjD wFZL7unZaMlEUegGiX2l9lHnnaXpU69kCYnYv+4= X-Received: by 2002:a25:ca58:0:b0:6f4:3ced:f7f8 with SMTP id a85-20020a25ca58000000b006f43cedf7f8mr41164333ybg.489.1670256544692; Mon, 05 Dec 2022 08:09:04 -0800 (PST) MIME-Version: 1.0 References: <20221130220825.1545758-1-carlos.bilbao@amd.com> <20221201204814.2141401-1-carlos.bilbao@amd.com> In-Reply-To: From: Miguel Ojeda Date: Mon, 5 Dec 2022 17:08:53 +0100 Message-ID: Subject: Re: [PATCH v2] docs: Integrate rustdoc into Rust documentation To: Akira Yokosawa Cc: Carlos Bilbao , ojeda@kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, bilbao@vt.edu, corbet@lwn.net, konstantin@linuxfoundation.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Mon, Dec 5, 2022 at 2:06 AM Akira Yokosawa wrote: > > So, this means "make htmldocs" will require kernel .config if CONFIG_RUST=y. > I'm not sure this new requirement is acceptable for kernel documentation > testers who just want to build kernel documentation. If the worry is that "full tree testers" (or CIs in general) cannot fully test the docs anymore without a config, that is definitely a change, and one of the reasons why I initially didn't add it to `htmldocs`. However, full tree testers will need other changes anyway (at least installing the Rust toolchain), even if there was no need for a config. So it may be not too bad, and putting it in `htmldocs` means not having to call another target in the CIs; and for humans, less chance of forgetting etc. (It is also why I wondered above about `CONFIG_WARN_MISSING_DOCUMENTS`: if `Documentation/` intended to require a config as a whole, then it would be fine. I assume that is not the case, though, but not doing the sync is nevertheless a bit confusing) > By the way, is rustdoc's requirement of .config only for CONFIG_RUST? > In other words, are contents of rustdoc affected by other config settings? > > If not, I think rustdoc can be generated regardless of config settings as > far as necessary tools (rustc, bindgen, etc.) are available. Yeah, at the moment the config affects what gets generated. However, that may change in the future: there has been some movement around the Rust features needed for this recently, so I want to try that approach again (it would require some other changes, though). Cheers, Miguel