mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-08 11:15:52 +00:00
* Port http storage to rust (#729) * Port http storage to rust * implement rest of parameters as far as possible * stylefixes * rustup * fix invalid timestamp * fix header file * Fix compilation errors * basic impl of dav * dockerize xandikos * add xandikos build * Fix circleci build * Fix circleci config * fix nextcloud port * stylefix * implement upload, upload, delete in rust * fix exc handling * python stylefixes * move caldav.list to rust * fix exc again (fastmail) * stylefixes * add basic logging, fix fastmail * stylefixes * fix tests for etag=None (icloud) * overwrite busted cargo-install-update * install clippy from git * fix rustfmt * rustfmt * clear cache
40 lines
801 B
Rust
40 lines
801 B
Rust
#![cfg_attr(feature = "cargo-clippy", allow(single_match))]
|
|
|
|
extern crate atomicwrites;
|
|
#[macro_use]
|
|
extern crate failure;
|
|
#[macro_use]
|
|
extern crate shippai;
|
|
extern crate libc;
|
|
extern crate uuid;
|
|
extern crate vobject;
|
|
#[macro_use]
|
|
extern crate log;
|
|
extern crate chrono;
|
|
extern crate env_logger;
|
|
extern crate quick_xml;
|
|
extern crate reqwest;
|
|
extern crate sha2;
|
|
extern crate url;
|
|
|
|
pub mod errors;
|
|
mod item;
|
|
mod storage;
|
|
|
|
pub mod exports {
|
|
use std::ffi::CStr;
|
|
use std::os::raw::c_char;
|
|
|
|
pub use super::item::exports::*;
|
|
pub use super::storage::exports::*;
|
|
|
|
#[no_mangle]
|
|
pub unsafe extern "C" fn vdirsyncer_free_str(s: *const c_char) {
|
|
CStr::from_ptr(s);
|
|
}
|
|
|
|
#[no_mangle]
|
|
pub unsafe extern "C" fn vdirsyncer_init_logger() {
|
|
::env_logger::init();
|
|
}
|
|
}
|