paritytech / ink
Showing 1 of 4 files from the diff.
Other files ignored by Codecov

@@ -12,6 +12,23 @@
Loading
12 12
// See the License for the specific language governing permissions and
13 13
// limitations under the License.
14 14
15 +
//! The ink! code generation.
16 +
//!
17 +
//! This module defines everything the ink! procedural macro needs in order to
18 +
//! generate Rust code for ink! smart contracts.
19 +
//!
20 +
//! We avoid structuring things via hidden or private modules, this
21 +
//! was the ink! v1 way of doing code generation and it was bug prone
22 +
//! and hard to maintain.
23 +
//!
24 +
//! What we do instead to generate code that is hidden from users is to
25 +
//! pack it into anonymous `const` (so `const _: () = { … };`) and connect
26 +
//! those to the outside world with private trait implementations.
27 +
//!
28 +
//! You can see how the generated code looks by installing
29 +
//! [`cargo-expand`](https://github.com/dtolnay/cargo-expand)
30 +
//! and executing `cargo expand --manifest-path ./examples/flipper/Cargo.toml` in this repository.
31 +
15 32
mod enforced_error;
16 33
mod generator;
17 34
mod traits;
Files Coverage
crates 71.96%
Project Totals (177 files) 71.96%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading