jam-codec 0.1.1

Lightweight, efficient, binary codec for JAM
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! This test case demonstrates correct use of the `#[codec(crate = path)]` attribute.

use jam_codec::{self as codec, Encode, MaxEncodedLen};

#[derive(Encode, MaxEncodedLen)]
#[codec(crate = codec)]
struct Example;

fn main() {
	let _ = Example::max_encoded_len();
}