derive_builder 0.2.1

Rust macro based on custom_derive to automatically implement the builder pattern for arbitrary structs.
Documentation
#[macro_use] extern crate custom_derive;
#[macro_use] extern crate derive_builder;

custom_derive!{
    /// This is a doc comment for the struct
    #[warn(missing_docs)]
    #[allow(non_snake_case, dead_code)]
    #[derive(Builder)]
    struct Lorem {
        /// This is a doc comment for a field
        field_with_doc_comment: String,
        #[allow(missing_docs)]
        undocumented: String,
        #[allow(non_snake_case)]
        CamelCase: i32,
        #[cfg(target_os = "macos")]
        mac_only: bool,
        #[allow(non_snake_case)]
        #[cfg(target_os = "linux")]
        LinuxOnly: (),
    }
}

#[test]
fn annotations() {
    // this is currently just a compile-test (may switch to token comparisons here)
    // https://github.com/colin-kiegel/rust-derive-builder/issues/19
}