summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHendrik Sollich <hendrik@hoodie.de>2019-12-27 13:31:00 +0100
committerHendrik Sollich <hendrik@hoodie.de>2019-12-27 13:31:00 +0100
commitd99a483a206448b56620a2853fb23ec45febfbef (patch)
treea0931bacba9c7c15eaed578d5b084eb08d4e1411
parent70cc4d5b8b38efa6c89b82260d0ed26242dc8d2a (diff)
WIP
-rw-r--r--Cargo.toml11
-rw-r--r--src/lib.rs2
-rw-r--r--src/parser.rs0
3 files changed, 11 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 5e4ce95..0cd15d4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,8 +20,10 @@ include = [
[dependencies]
chrono = "0.4"
-#error-chain = "*"
-#vobject = {path="../hub/vobject"}
+
+[dependencies.libical]
+git = "https://github.com/matthiasbeyer/libical"
+optional = true
[dependencies.uuid]
features = ["v4"]
@@ -29,3 +31,8 @@ version = "0.8"
[dev-dependencies]
pretty_assertions = "0.6"
+
+
+[features]
+default = []
+parser = ["libical"]
diff --git a/src/lib.rs b/src/lib.rs
index 31916b1..b456547 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -91,6 +91,8 @@ macro_rules! write_crlf {
mod components;
mod properties;
mod calendar;
+#[cfg!(feature="parser")]
+mod parser;
//pub mod repeats;
pub use crate::properties::{Property, Parameter, Class, ValueType};
diff --git a/src/parser.rs b/src/parser.rs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/parser.rs