@@ -126,7 +126,7 @@ pub mod ext {
126126///
127127/// Annotate a Rust module with the `subxt` attribute referencing a metadata file like so:
128128///
129- /// ```rust,no_run,standalone_crate
129+ /// ```rust,no_run
130130/// #[subxt::subxt(
131131/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
132132/// )]
@@ -173,7 +173,7 @@ pub mod ext {
173173///
174174/// Use this attribute to specify a custom path to the `subxt` crate:
175175///
176- /// ```rust,standalone_crate
176+ /// ```rust
177177/// # pub extern crate subxt;
178178/// # pub mod path { pub mod to { pub use subxt; } }
179179/// # fn main() {}
@@ -192,7 +192,7 @@ pub mod ext {
192192/// This attribute replaces any reference to the generated type at the path given by `path` with a
193193/// reference to the path given by `with`.
194194///
195- /// ```rust,standalone_crate
195+ /// ```rust
196196/// #[subxt::subxt(
197197/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
198198/// substitute_type(path = "sp_arithmetic::per_things::Perbill", with = "crate::Foo")
@@ -230,7 +230,7 @@ pub mod ext {
230230/// If the type you're substituting contains generic parameters, you can "pattern match" on those, and
231231/// make use of them in the substituted type, like so:
232232///
233- /// ```rust,no_run,standalone_crate
233+ /// ```rust,no_run
234234/// #[subxt::subxt(
235235/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
236236/// substitute_type(
@@ -250,7 +250,7 @@ pub mod ext {
250250/// By default, all generated types derive a small set of traits. This attribute allows you to derive additional
251251/// traits on all generated types:
252252///
253- /// ```rust,no_run,standalone_crate
253+ /// ```rust,no_run
254254/// #[subxt::subxt(
255255/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
256256/// derive_for_all_types = "Eq, PartialEq"
@@ -266,7 +266,7 @@ pub mod ext {
266266/// Unlike the above, which derives some trait on every generated type, this attribute allows you to derive traits only
267267/// for specific types. Note that any types which are used inside the specified type may also need to derive the same traits.
268268///
269- /// ```rust,no_run,standalone_crate
269+ /// ```rust,no_run
270270/// #[subxt::subxt(
271271/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
272272/// derive_for_all_types = "Eq, PartialEq",
@@ -281,7 +281,7 @@ pub mod ext {
281281/// By default, documentation is not generated via the macro, since IDEs do not typically make use of it. This attribute
282282/// forces documentation to be generated, too.
283283///
284- /// ```rust,no_run,standalone_crate
284+ /// ```rust,no_run
285285/// #[subxt::subxt(
286286/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
287287/// generate_docs
@@ -294,7 +294,7 @@ pub mod ext {
294294/// By default, the macro will generate various interfaces to make using Subxt simpler in addition with any types that need
295295/// generating to make this possible. This attribute makes the codegen only generate the types and not the Subxt interface.
296296///
297- /// ```rust,no_run,standalone_crate
297+ /// ```rust,no_run
298298/// #[subxt::subxt(
299299/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
300300/// runtime_types_only
@@ -307,7 +307,7 @@ pub mod ext {
307307/// By default, the macro will add all derives necessary for the generated code to play nicely with Subxt. Adding this attribute
308308/// removes all default derives.
309309///
310- /// ```rust,no_run,standalone_crate
310+ /// ```rust,no_run
311311/// #[subxt::subxt(
312312/// runtime_metadata_path = "../artifacts/polkadot_metadata_full.scale",
313313/// runtime_types_only,
0 commit comments