1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#![crate_name = "core_foundation"]
#![crate_type = "rlib"]
#![allow(non_snake_case)]
extern crate libc;
#[cfg(target_os="macos")]
pub mod array;
#[cfg(target_os="macos")]
pub mod base;
#[cfg(target_os="macos")]
pub mod boolean;
#[cfg(target_os="macos")]
pub mod data;
#[cfg(target_os="macos")]
pub mod dictionary;
#[cfg(target_os="macos")]
pub mod number;
#[cfg(target_os="macos")]
pub mod set;
#[cfg(target_os="macos")]
pub mod string;
#[cfg(target_os="macos")]
pub mod url;
#[cfg(target_os="macos")]
pub mod bundle;
#[cfg(target_os="macos")]
pub mod date;
#[cfg(target_os="macos")]
pub mod runloop;
#[cfg(all(target_os="macos", test))]
pub mod test {
#[test]
fn test_stuff() {
use base::TCFType;
use boolean::CFBoolean;
use number::number;
use dictionary::CFDictionary;
use string::CFString;
let bar = CFString::from_static_string("Bar");
let baz = CFString::from_static_string("Baz");
let boo = CFString::from_static_string("Boo");
let foo = CFString::from_static_string("Foo");
let tru = CFBoolean::true_value();
let n42 = number(42);
let _d = CFDictionary::from_CFType_pairs(&[
(bar.as_CFType(), boo.as_CFType()),
(baz.as_CFType(), tru.as_CFType()),
(foo.as_CFType(), n42.as_CFType()),
]);
}
}