core_foundation_sys/
lib.rs

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