blob: 46a6fd8f376c12466c4801cb48ab5025bcf5691a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#[macro_use]
extern crate derive_builder;
/// 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: (),
}
fn main() { }
|