aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
Commit message (Collapse)AuthorAge
* cleanup & export db revision uuidDirk Van Haerenborgh2018-10-06
|
* make clippy happyDirk Van Haerenborgh2018-04-17
|
* also export errorDirk Van Haerenborgh2018-03-27
|
* do not export all modules, just the structsDirk Van Haerenborgh2018-03-23
|
* filenames iteratorDirk Van Haerenborgh2018-03-23
|
* message and thread iteratorsDirk Van Haerenborgh2018-03-23
|
* proper tags iteratorDirk Van Haerenborgh2018-03-23
|
* search messagesDirk Van Haerenborgh2018-03-22
|
* create queryDirk Van Haerenborgh2018-03-22
|
* get notmuch db revisionDirk Van Haerenborgh2018-03-22
|
* fix infinite recursionDirk Van Haerenborgh2018-03-20
|
* fix some compiler warning regarding opaque structsDirk Van Haerenborgh2018-03-20
|
* resurrectDirk Van Haerenborgh2018-03-20
|
* Add directory module and `Directory` type.C. Morgan Hamill2015-03-31
| | | | Wrapper type for `ffi::notmuch_directory_t` pointer.
* Make `ToCString` trait use std::convert traits.C. Morgan Hamill2015-03-26
| | | | Use `AsRef<Path>` instead of `AsOsStr`.
* Change usage of `AsPath` to `AsRef<Path>`.C. Morgan Hamill2015-03-25
| | | | | | RFC 529[1] has landed. [1] https://github.com/rust-lang/rfcs/pull/529
* Add database module.C. Morgan Hamill2015-03-20
| | | | | Add `database::Database`, `database::Version`, and `database::Mode` types.
* Add `ToCString` trait.C. Morgan Hamill2015-03-20
| | | | | | | | Allows easy conversion of any `T: AsOsStr` to a `CString`, whose `as_ptr()` method is quite convenient for FFI calls. Note that `std::path::Path` implements `AsOsStr`, which means we can easily take paths and get a pointer to `*const libc::c_char`.
* Add error module with crate's `Error` type.C. Morgan Hamill2015-03-20
| | | | | | | | | Implement `Display`, `Error`, and various `FromError<T>` traits on `Error`, allowing the use of `try!` on the various `Result` types in the crate. Note that currently the only error variants are those thrown from a lower-level operation.
* Add `ToStr` and `ToStaticStr` traits.C. Morgan Hamill2015-03-20
| | | | | | | | Allow easy mapping of borrowed C strings to borrowed strings with appropriate lifetimes. I have some doubts about this, as I'm not 100% on how lifetimes interact with the notmuch-provided strings yet.
* Add `NotmuchEnum` trait and `notmuch_enum!` macro.C. Morgan Hamill2015-03-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implements enum types in pairs, specifying the type and variant names of each, like so: notmuch_enum! { pub enum enum_name => EnumName { variant_one => VariantOne, variant_two => VariantTwo } } Which expands to: pub enum enum_name { variant_one, variant_two } pub enum EnumName { VariantOne, VariantTwo } The `NotmuchEnum` trait also entails two functions to convert between the defined pairs, `from_notmuch_t()` and `to_notmuch_t()`. The macro takes care of their implementation, also. Yes, this is purely aesthetic whimsy: I wanted the types in the `ffi` module to match the types from the `notmuch.h` file, and I wanted the types I used within (and exported by) this crate to match the expected Rust convention.
* Add empty ffi module.C. Morgan Hamill2015-03-17
|
* Add root module at src/lib.rs.C. Morgan Hamill2015-03-13
Use libc crate.