1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use static_regular_grammar::RegularGrammar;

#[cfg(feature = "data")]
pub mod data;

#[derive(RegularGrammar, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[grammar(
	file = "src/uri/grammar.abnf",
	entry_point = "scheme",
	name = "Scheme",
	ascii,
	cache = "automata/uri/scheme.aut.cbor"
)]
#[grammar(sized(
	SchemeBuf,
	derive(Debug, Display, PartialEq, Eq, PartialOrd, Ord, Hash)
))]
#[cfg_attr(feature = "serde", grammar(serde))]
#[cfg_attr(feature = "ignore-grammars", grammar(disable))]
pub struct Scheme([u8]);