Debian Codegraph @

third_party/rust/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(
27 target_os = "macos",
28 target_os = "ios",
29 target_os = "tvos",
30 target_os = "watchos",
31 target_os = "visionos"
32 ),
33 feature = "link"
34 ),
35 link(name = "CoreFoundation", kind = "framework")
36 )]
37 extern "C" {}
38
39 pub mod array;
40 pub mod attributed_string;
41 pub mod bag;
42 pub mod base;
43 pub mod binary_heap;
44 pub mod bit_vector;
45 pub mod bundle;
46 pub mod calendar;
47 pub mod characterset;
48 pub mod data;
49 pub mod date;
50 pub mod date_formatter;
51 pub mod dictionary;
52 pub mod error;
53 pub mod file_security;
54 pub mod filedescriptor;
55 pub mod locale;
56 pub mod mach_port;
57 pub mod messageport;
58 pub mod notification_center;
59 pub mod number;
60 pub mod number_formatter;
61 pub mod plugin;
62 pub mod preferences;
63 pub mod propertylist;
64 pub mod runloop;
65 pub mod set;
66 pub mod socket;
67 pub mod stream;
68 pub mod string;
69 pub mod string_tokenizer;
70 pub mod timezone;
71 pub mod tree;
72 pub mod url;
73 pub mod url_enumerator;
74 #[cfg(target_os = "macos")]
75 pub mod user_notification;
76 pub mod uuid;
77 #[cfg(target_os = "macos")]
78 pub mod xml_node;
79 #[cfg(target_os = "macos")]
80 pub mod xml_parser;