Debian Codegraph @

.cargo/vendor/core-foundation-sys/src/lib.rs

raw
1 // Copyright 2013-2015 The Servo Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution.
3 //
4 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
5 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
6 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
7 // option. This file may not be copied, modified, or distributed
8 // except according to those terms.
9 #![allow(
10 non_snake_case,
11 non_camel_case_types,
12 non_upper_case_globals,
13 improper_ctypes
14 )]
15 #![cfg_attr(
16 all(feature = "mac_os_10_7_support", feature = "mac_os_10_8_features"),
17 feature(linkage)
18 )] // back-compat requires weak linkage
19
20 // Link to CoreFoundation on any Apple device.
21 //
22 // We don't use `target_vendor` since that is going to be deprecated:
23 // https://github.com/rust-lang/lang-team/issues/102
24 #[cfg_attr(
25 all(
26 any(target_os = "macos", target_os = "ios", target_os = "tvos"),
27 feature = "link"
28 ),
29 link(name = "CoreFoundation", kind = "framework")
30 )]
31 extern "C" {}
32
33 pub mod array;
34 pub mod attributed_string;
35 pub mod bag;
36 pub mod base;
37 pub mod binary_heap;
38 pub mod bit_vector;
39 pub mod bundle;
40 pub mod calendar;
41 pub mod characterset;
42 pub mod data;
43 pub mod date;
44 pub mod date_formatter;
45 pub mod dictionary;
46 pub mod error;
47 pub mod file_security;
48 pub mod filedescriptor;
49 pub mod locale;
50 pub mod mach_port;
51 pub mod messageport;
52 pub mod notification_center;
53 pub mod number;
54 pub mod number_formatter;
55 pub mod plugin;
56 pub mod preferences;
57 pub mod propertylist;
58 pub mod runloop;
59 pub mod set;
60 pub mod socket;
61 pub mod stream;
62 pub mod string;
63 pub mod string_tokenizer;
64 pub mod timezone;
65 pub mod tree;
66 pub mod url;
67 pub mod url_enumerator;
68 #[cfg(target_os = "macos")]
69 pub mod user_notification;
70 pub mod uuid;
71 #[cfg(target_os = "macos")]
72 pub mod xml_node;
73 #[cfg(target_os = "macos")]
74 pub mod xml_parser;