From 434505f1f086da7ed72b808d25da0bf894f58477 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 23 Sep 2017 17:23:40 +0200 Subject: [PATCH] Initial import of libimagcontact --- Cargo.toml | 1 + lib/domain/libimagcontact/Cargo.toml | 26 +++++++++++++++ lib/domain/libimagcontact/src/lib.rs | 47 ++++++++++++++++++++++++++++ 3 files changed, 74 insertions(+) create mode 100644 lib/domain/libimagcontact/Cargo.toml create mode 100644 lib/domain/libimagcontact/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index e9276006..21f3a85e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,6 +21,7 @@ members = [ "lib/core/libimagrt", "lib/core/libimagstore", "lib/domain/libimagbookmark", + "lib/domain/libimagcontact", "lib/domain/libimagdiary", "lib/domain/libimagmail", "lib/domain/libimagnotes", diff --git a/lib/domain/libimagcontact/Cargo.toml b/lib/domain/libimagcontact/Cargo.toml new file mode 100644 index 00000000..acc420aa --- /dev/null +++ b/lib/domain/libimagcontact/Cargo.toml @@ -0,0 +1,26 @@ +[package] +name = "libimagcontact" +version = "0.5.0" +authors = ["Matthias Beyer "] + +description = "Library for the imag core distribution" + +keywords = ["imag", "PIM", "personal", "information", "management"] +readme = "../../../README.md" +license = "LGPL-2.1" + +documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.html" +repository = "https://github.com/matthiasbeyer/imag" +homepage = "http://imag-pim.org" + +[dependencies] +error-chain = "0.11" +log = "0.3" +toml = "0.4" +toml-query = "0.4" +vobject = { git = 'https://github.com/matthiasbeyer/rust-vobject', branch = "next" } + +libimagstore = { version = "0.5.0", path = "../../../lib/core/libimagstore" } +libimagerror = { version = "0.5.0", path = "../../../lib/core/libimagerror" } +libimagentryref = { version = "0.5.0", path = "../../../lib/entry/libimagentryref/" } + diff --git a/lib/domain/libimagcontact/src/lib.rs b/lib/domain/libimagcontact/src/lib.rs new file mode 100644 index 00000000..566a7df5 --- /dev/null +++ b/lib/domain/libimagcontact/src/lib.rs @@ -0,0 +1,47 @@ +// +// imag - the personal information management suite for the commandline +// Copyright (C) 2015, 2016 Matthias Beyer and contributors +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; version +// 2.1 of the License. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +// + +#![deny( + dead_code, + non_camel_case_types, + non_snake_case, + path_statements, + trivial_numeric_casts, + unstable_features, + unused_allocation, + unused_import_braces, + unused_imports, + unused_must_use, + unused_mut, + unused_qualifications, + while_true, +)] + +#[macro_use] extern crate log; +#[macro_use] extern crate error_chain; +extern crate vobject; +extern crate toml; +extern crate toml_query; + +#[macro_use] extern crate libimagstore; +extern crate libimagerror; +extern crate libimagentryref; + +module_entry_path_mod!("contact"); +