aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAge
* threads: oldest and newest dateDirk Van Haerenborgh2018-03-23
|
* return filenames as pathDirk Van Haerenborgh2018-03-23
|
* lifetime parameters are coolDirk Van Haerenborgh2018-03-23
|
* get thread authors and subjectDirk Van Haerenborgh2018-03-23
|
* wipDirk Van Haerenborgh2018-03-23
|
* the iterator can handle null pointersDirk Van Haerenborgh2018-03-23
|
* do not export all modules, just the structsDirk Van Haerenborgh2018-03-23
|
* filenames iteratorDirk Van Haerenborgh2018-03-23
|
* oopsDirk Van Haerenborgh2018-03-23
|
* cleanupDirk Van Haerenborgh2018-03-23
|
* thread: count messages and filesDirk Van Haerenborgh2018-03-23
|
* improve lifetime definitionsDirk Van Haerenborgh2018-03-23
|
* count threads and messagesDirk Van Haerenborgh2018-03-23
|
* search threadsDirk Van Haerenborgh2018-03-23
|
* message and thread iteratorsDirk Van Haerenborgh2018-03-23
|
* proper tags iteratorDirk Van Haerenborgh2018-03-23
|
* slightly better interface, but still returning a null pointer...Dirk Van Haerenborgh2018-03-22
|
* test messages return valueDirk Van Haerenborgh2018-03-22
|
* search messagesDirk Van Haerenborgh2018-03-22
|
* fix query constructorDirk Van Haerenborgh2018-03-22
|
* correct lifetime for queryDirk Van Haerenborgh2018-03-22
|
* implement drop for queryDirk Van Haerenborgh2018-03-22
|
* create queryDirk Van Haerenborgh2018-03-22
|
* thread stubDirk Van Haerenborgh2018-03-22
|
* get notmuch db revisionDirk Van Haerenborgh2018-03-22
|
* Update ffi interfaceDirk Van Haerenborgh2018-03-21
| | | | | | Most of this is plain copied from https://github.com/Stebalien/notmuch-sys. At some point, I would like to split this up again, but not right now.
* add debug trait to databaseDirk Van Haerenborgh2018-03-20
|
* fix infinite recursionDirk Van Haerenborgh2018-03-20
|
* fix some compiler warning regarding opaque structsDirk Van Haerenborgh2018-03-20
|
* resurrectDirk Van Haerenborgh2018-03-20
|
* Rename Notmuch enum types.C. Morgan Hamill2015-03-31
| | | | | Remove the 'Notmuch' prefix, as it pollutes the generated documentation. It's rendundant, anyhow.
* Add `Database::directory()` method.C. Morgan Hamill2015-03-31
| | | | | Simple wrapper around notmuch API's `notmuch_database_get_directory` function.
* Add directory module and `Directory` type.C. Morgan Hamill2015-03-31
| | | | Wrapper type for `ffi::notmuch_directory_t` pointer.
* Add `NewFromPtr` trait.C. Morgan Hamill2015-03-27
| | | | Crate-private utility trait for `new()` methods on types.
* Disable trivial_numeric_casts lint in FFI callback.C. Morgan Hamill2015-03-26
| | | | | We're casting from `c_double` to `f64`, which are the same thing, but I want to do it anyway to be explicit.
* Remove `NotmuchType` trait.C. Morgan Hamill2015-03-26
| | | | No longer necessary with the `From` and `Into` traits from std::convert.
* 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
* Make methods borrow self mutably when appropriate.C. Morgan Hamill2015-03-24
| | | | | | | | | Use of raw pointers and FFI functions mean that the compiler won't force us to be correct in our usage of `&self` vs. `&mut self`. These functions make changes to the notmuch database, and we want the type system to ensure we can't simultaneously manipulate the database from different functions.
* Remove `ToStaticStr` trait.C. Morgan Hamill2015-03-24
| | | | | Changes in commit 95d4fba8436417a6c27522ed9b51c19a9fd7c6f9 make the trait unnecessary. The `ToStr` trait is now sufficient.
* Rename `NotmuchEnum` trait to `NotmuchType`.C. Morgan Hamill2015-03-24
| | | | Turns out to be useful outside of just enums.
* Fix errors in FFI function signatures.C. Morgan Hamill2015-03-24
|
* Add `Database::upgrade()` and related methods.C. Morgan Hamill2015-03-20
| | | | | Not so simple wrapper around notmuch API's `notmuch_database_upgrade()` function. Variants with and without a callback parameter are provided.
* Add `Databased::needs_upgrade()` method.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_needs_upgrade()` function.
* Add `Database::version()` method.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_get_version()` function.
* Add `Database::path()' method.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_get_path()` function.
* Make `to_str()` method generic over lifetime.C. Morgan Hamill2015-03-20
| | | | | | | | | | | | | | | | If I have this correct: The output `&str` will have the same lifetime as whatever the lifetime of the block in which it is called. This allows using it one the output of notmuch FFI calls, by propogating the lifetime of the safe wrapper object (e.g., `Database`) to the `&str` returned from `to_str()`. This mirrors the lifetime of the actual underlying C string. If I don't grok lifetimes as well as I think, this could be a lie. Future self: you should add unit tests to test the above explanation.
* Add `Database::close()` method.C. Morgan Hamill2015-03-20
| | | | Simple wrapper around notmuch API's `notmuch_database_close()` function.
* Implement `Drop` for `Database`.C. Morgan Hamill2015-03-20
| | | | | Simple wrapper around notmuch API's `notmuch_database_destroy()` function.
* Add `Database::compact()` and related methods.C. Morgan Hamill2015-03-20
| | | | | Not so simple wrapper around notmuch API's `notmuch_database_compact()` function. Variants with and without a callback parameter are provided.