objc2_authentication_services/
lib.rs1#![no_std]
8#![cfg_attr(docsrs, feature(doc_auto_cfg))]
9#![doc(html_root_url = "https://docs.rs/objc2-authentication-services/0.3.1")]
11#![allow(unused_imports)]
12#![allow(dead_code)]
13
14#[cfg(feature = "alloc")]
15extern crate alloc;
16
17#[cfg(feature = "std")]
18extern crate std;
19
20mod generated;
21#[allow(unused_imports, unreachable_pub)]
22pub use self::generated::*;
23
24use objc2::runtime::NSObject;
25use objc2::{extern_class, ClassType, MainThreadOnly};
26
27pub type ASViewController = NSObject;
29pub type ASPresentationAnchor = NSObject;
31pub type ASImage = NSObject;
33
34#[cfg(feature = "ASAuthorizationAppleIDButton")]
36type ASControl = NSObject;
37
38extern_class!(
39 #[unsafe(super(ASViewController))]
40 #[thread_kind = MainThreadOnly]
41 #[derive(Debug, PartialEq, Eq, Hash)]
42 #[cfg(feature = "ASCredentialProviderViewController")]
43 pub struct ASCredentialProviderViewController;
44);
45
46extern_class!(
47 #[unsafe(super(ASViewController))]
48 #[thread_kind = MainThreadOnly]
49 #[derive(Debug, PartialEq, Eq, Hash)]
50 #[cfg(feature = "ASAccountAuthenticationModificationViewController")]
51 pub struct ASAccountAuthenticationModificationViewController;
52);
53
54extern_class!(
55 #[unsafe(super(ASControl))]
56 #[thread_kind = MainThreadOnly]
57 #[derive(Debug, PartialEq, Eq, Hash)]
58 #[cfg(feature = "ASAuthorizationAppleIDButton")]
59 pub struct ASAuthorizationAppleIDButton;
60);