1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

//! Streaming parser/tokenizer for [SVG 1.1 Full](https://www.w3.org/TR/SVG/)
//! data format without heap allocations.
//!
//! Checkout README.md for general highlights.

#![forbid(unsafe_code)]
#![warn(missing_docs)]

extern crate phf;

pub use attribute::AttributeId;
pub use attribute_value::AttributeValue;
pub use rgbcolor::RgbColor;
pub use element::ElementId;
pub use error::{Error, ErrorPos};
pub use length::{Length, LengthUnit};
pub use stream::Stream;
pub use value_id::ValueId;
pub use values_list::{NumberList, LengthList};

#[macro_use]
mod macros;

pub mod path;
pub mod style;
pub mod svg;
pub mod transform;

mod attribute;
mod attribute_value;
mod colors;
mod element;
mod error;
mod length;
mod rgbcolor;
mod stream;
mod value_id;
mod values_list;