From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-10628.protonmail.ch (mail-10628.protonmail.ch [79.135.106.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8661F22E017 for ; Wed, 5 Mar 2025 11:06:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.135.106.28 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741172766; cv=none; b=XuM18RPRZWbmrkCV+6VCAYAxvAnP63pKgfRag9cHnj7T+fBVMhzTI/owE341GpHz/WLlO26Uh7uCJRy01gmocAc9yW8yzJEf7aUh4Pny2JexbWEWUkX/nuqctJ5KJ5QUXkF/Fae7on3yXVz4pEGAW7kBwN99J9KGg++te6g1JE4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741172766; c=relaxed/simple; bh=8BfkhJEiX567lk23hTtlFCn+C7rzGcjUSqBPr5QYbIk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HJoXOD5obJ9mIXzx5QvEFTurH4GFy8E49vtvgEdq1yuEaNXXNJnX0X+SQeF58R2e/KPZAYt71Wv0H940K7ja++jZlltVDxX3wK3LqsxjiLwYQVEloKL40G6b6L55QUb0P4ZQWIV1rYG5jBCOXUrSDNTFQ1ca1zmDPXHcQ+kxPzU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me; spf=pass smtp.mailfrom=proton.me; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b=Y2XR3HLJ; arc=none smtp.client-ip=79.135.106.28 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=proton.me Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=proton.me Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=proton.me header.i=@proton.me header.b="Y2XR3HLJ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=proton.me; s=protonmail; t=1741172762; x=1741431962; bh=8BfkhJEiX567lk23hTtlFCn+C7rzGcjUSqBPr5QYbIk=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=Y2XR3HLJZxImjI6VsoA13bF4VG65TMMSQ00iLI1UHnBzgMR9Cr+a9+eXSclEgCDl8 JAiii5dx/TTQ+UtHNepf9jYYXpRhoHt81hZeKLn0FmzMXPYZeVxVd1UXU/WT+VdmXg XnWM3PE86iHGElqMRH27hXqpryDYRUZzIQkfnWmczaJiFEXSKAkf2/fGqjUzwS4exb MzdN/5XdPqr3jjeSQ5v8aNV1V7UGweRmJxCpS53WO1OGoKocGjpANmYzpQshklYrvU OkaCygYgTt7ZlD4nz3E4Fot5nqg0eRnz8hKJRQ3BecpaBjS3R+ifhocrPBrHXF+NWk GVnxcw0dqLzMA== Date: Wed, 05 Mar 2025 11:05:55 +0000 To: Andreas Hindborg From: Benno Lossin Cc: Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?Q?Bj=C3=B6rn_Roy_Baron?= , Alice Ryhl , Trevor Gross , Danilo Krummrich , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/22] rust: pin-init: move proc-macro documentation into pin-init crate Message-ID: In-Reply-To: <878qpjg6sj.fsf@kernel.org> References: <20250304225245.2033120-1-benno.lossin@proton.me> <20250304225245.2033120-5-benno.lossin@proton.me> <878qpjg6sj.fsf@kernel.org> Feedback-ID: 71780778:user:proton X-Pm-Message-ID: 110abc0108e199aa7e9f70b2a80c5a7d5c03e2c2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wed Mar 5, 2025 at 10:34 AM CET, Andreas Hindborg wrote: > "Benno Lossin" writes: > >> Move the documentation of proc-macros from pin-init-internal into >> pin-init. This is because documentation can only reference types from >> dependencies and pin-init-internal cannot have pin-init as a dependency, >> as that would be cyclic. > > `pin_data` et. al. is now re-exported both in `kernel::prelude` and > `kernel::init`, but I guess that is fine? Yes, that is fine, later the imports will be resolved such that the prelude re-exports the macros from the pin-init crate (so the docs should also be rendered there). > When you say "can only reference types", do you mean via links in the tex= t? Yes, I mean the doc-links, e.g. [`Zeroable`]. --- Cheers, Benno