objc2_xc_test/
lib.rs

1//! # Bindings to the `XCTest` framework
2//!
3//! See [Apple's docs][apple-doc] and [the general docs on framework crates][framework-crates] for more information.
4//!
5//! WARNING: You cannot normally link to this framework unless you add something like the following:
6//! ```text
7//! RUSTFLAGS="-Clink-args=-F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks"
8//! ```
9//!
10//! And add the following when running the binary:
11//! ```text
12//! DYLD_FRAMEWORK_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks
13//! ```
14//!
15//! See [the example of using XCTest][examples-testing] for more information.
16//!
17//! [apple-doc]: https://developer.apple.com/documentation/xctest/
18//! [framework-crates]: https://docs.rs/objc2/latest/objc2/topics/about_generated/index.html
19//! [examples-testing]: https://github.com/madsmtm/objc2/tree/main/examples/testing-helper
20#![no_std]
21#![cfg_attr(feature = "unstable-darwin-objc", feature(darwin_objc))]
22#![cfg_attr(docsrs, feature(doc_cfg))]
23// Update in Cargo.toml as well.
24#![doc(html_root_url = "https://docs.rs/objc2-xc-test/0.3.2")]
25
26#[cfg(feature = "alloc")]
27extern crate alloc;
28
29#[cfg(feature = "std")]
30extern crate std;
31
32mod generated;
33#[allow(unused_imports, unreachable_pub)]
34pub use self::generated::*;