Skip to content

Commit 396ce62

Browse files
authored
Make marker module public (#53)
This way users doing low-level parsing don't need to copy those types, but can use them directly. Fixes #52.
1 parent e32646c commit 396ce62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ pub mod major {
2929
pub const SIMPLE: u8 = 7;
3030
}
3131

32-
pub(crate) mod marker {
32+
/// Markers needed to parse sub types.
33+
/// The `START` marker can be combined with major types 2, 3, 4 and 5.
34+
/// The other values are full bytes representing the major type 7 sub-types.
35+
pub mod marker {
3336
pub const START: u8 = 0x1f;
3437
pub const FALSE: u8 = 0xf4; // simple(20)
3538
pub const TRUE: u8 = 0xf5; // simple(21)

0 commit comments

Comments
 (0)