mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 00:01:09 +00:00
db00212ba6
* add codgen mod to the module tree * port codegen tests to scale-typegen * remove test flag
18 lines
630 B
Rust
18 lines
630 B
Rust
// Copyright 2019-2023 Parity Technologies (UK) Ltd.
|
|
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
|
|
// see LICENSE for license details.
|
|
|
|
/// Checks that code generated by `subxt-cli codegen` compiles. Allows inspection of compiler errors
|
|
/// directly, more accurately than via the macro and `cargo expand`.
|
|
///
|
|
/// Generate by running this at the root of the repository:
|
|
///
|
|
/// ```
|
|
/// cargo run --bin subxt -- codegen --file artifacts/polkadot_metadata_full.scale | rustfmt > testing/integration-tests/src/full_client/codegen/polkadot.rs
|
|
/// ```
|
|
#[rustfmt::skip]
|
|
#[allow(clippy::all)]
|
|
mod polkadot;
|
|
|
|
mod documentation;
|