| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
Convenience methods for working the result of many of the native notmuch
functions.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
| |
The ffi module now reproduces the notmuch C API, as defined in
`notmuch.h`, more-or-less verbatim.
|
| | |
|
| |
|
|
| |
Use libc crate.
|
| |
|
|
| |
Set to ignore Cargo.lock and /target/.
|
|
|
Initial version of Cargo.toml.
|