Prep to release v0.42.0 (#2003)

* Prep to release v0.42.0

* Remove test_context reference from example

* standalone_crate for doc tests because codegen is expensive

* fmt
This commit is contained in:
James Wilson
2025-05-12 10:32:38 +01:00
committed by GitHub
parent 23c62f3d5d
commit 7de8d36806
27 changed files with 162 additions and 61 deletions
+8 -3
View File
@@ -410,19 +410,24 @@ pub struct StructFromVariant {
/// Returns the TokenStream of the type alias module.
///
/// E.g a struct like this:
/// ```ignore
///
/// ```rust,ignore
/// pub struct SetMaxCodeSize {
/// pub new: ::core::primitive::u32,
/// }
/// ```
///
/// will be made into this:
/// ```ignore
///
/// ```rust,ignore
/// pub struct SetMaxCodeSize {
/// pub new: set_max_code_size::New,
/// }
/// ```
///
/// And the type alias module will look like this:
/// ```ignore
///
/// ```rust,ignore
/// pub mod set_max_code_size {
/// use super::runtime_types;
/// pub type New = ::core::primitive::u32;