1#![allow(non_upper_case_globals)]
4#![allow(non_camel_case_types)]
5#![allow(non_snake_case)]
6#![allow(clippy::redundant_field_names)]
7#![allow(clippy::missing_safety_doc)]
8#![allow(clippy::string_lit_as_bytes)]
9#![allow(clippy::too_many_arguments)]
10#![allow(clippy::type_complexity)]
12#![allow(clippy::upper_case_acronyms)]
14#![allow(deref_nullptr)]
18
19#[cfg(all(
21 not(feature = "generate-bindings"),
22 target_arch = "x86_64",
23 target_os = "linux"
24))]
25include!(concat!(
26 env!("CARGO_MANIFEST_DIR"),
27 "/src/bindings/x86_64-unknown-linux-gnu.rs"
28));
29
30#[cfg(all(
31 not(feature = "generate-bindings"),
32 target_arch = "x86",
33 target_os = "linux"
34))]
35include!(concat!(
36 env!("CARGO_MANIFEST_DIR"),
37 "/src/bindings/i686-unknown-linux-gnu.rs"
38));
39
40#[cfg(all(
41 not(feature = "generate-bindings"),
42 target_arch = "powerpc64",
43 target_os = "linux"
44))]
45include!(concat!(
46 env!("CARGO_MANIFEST_DIR"),
47 "/src/bindings/powerpc64-unknown-linux-gnu.rs"
48));
49
50#[cfg(all(
51 not(feature = "generate-bindings"),
52 target_arch = "aarch64",
53 target_os = "linux"
54))]
55include!(concat!(
56 env!("CARGO_MANIFEST_DIR"),
57 "/src/bindings/aarch64-unknown-linux-gnu.rs"
58));
59
60#[cfg(all(
61 not(feature = "generate-bindings"),
62 target_arch = "arm",
63 target_os = "linux"
64))]
65include!(concat!(
66 env!("CARGO_MANIFEST_DIR"),
67 "/src/bindings/arm-unknown-linux-gnueabi.rs"
68));
69
70#[cfg(all(
71 not(feature = "generate-bindings"),
72 target_arch = "loongarch64",
73 target_os = "linux"
74))]
75include!(concat!(
76 env!("CARGO_MANIFEST_DIR"),
77 "/src/bindings/loongarch64-unknown-linux-gnu.rs"
78));
79
80#[cfg(all(
81 not(feature = "generate-bindings"),
82 target_arch = "riscv64",
83 target_os = "linux"
84))]
85include!(concat!(
86 env!("CARGO_MANIFEST_DIR"),
87 "/src/bindings/riscv64gc-unknown-linux-gnu.rs"
88));
89
90#[cfg(all(
91 not(feature = "generate-bindings"),
92 target_arch = "x86_64",
93 target_os = "macos"
94))]
95include!(concat!(
96 env!("CARGO_MANIFEST_DIR"),
97 "/src/bindings/x86_64-apple-darwin.rs"
98));
99
100#[cfg(all(
101 not(feature = "generate-bindings"),
102 target_arch = "aarch64",
103 target_os = "macos"
104))]
105include!(concat!(
106 env!("CARGO_MANIFEST_DIR"),
107 "/src/bindings/aarch64-apple-darwin.rs"
108));
109
110#[cfg(all(
111 not(feature = "generate-bindings"),
112 target_arch = "x86_64",
113 target_os = "windows"
114))]
115include!(concat!(
116 env!("CARGO_MANIFEST_DIR"),
117 "/src/bindings/x86_64-pc-windows-msvc.rs"
118));
119
120#[cfg(all(
121 not(feature = "generate-bindings"),
122 target_arch = "x86_64",
123 target_os = "freebsd"
124))]
125include!(concat!(
126 env!("CARGO_MANIFEST_DIR"),
127 "/src/bindings/x86_64-unknown-freebsd.rs"
128));
129
130#[cfg(not(any(
132 feature = "generate-bindings",
133 all(target_arch = "x86_64", target_os = "linux"),
134 all(target_arch = "x86", target_os = "linux"),
135 all(target_arch = "powerpc64", target_os = "linux"),
136 all(target_arch = "aarch64", target_os = "linux"),
137 all(target_arch = "arm", target_os = "linux"),
138 all(target_arch = "loongarch64", target_os = "linux"),
139 all(target_arch = "riscv64", target_os = "linux"),
140 all(target_arch = "x86_64", target_os = "macos"),
141 all(target_arch = "aarch64", target_os = "macos"),
142 all(target_arch = "x86_64", target_os = "windows"),
143 all(target_arch = "x86_64", target_os = "freebsd"),
144)))]
145include!(concat!(
146 env!("CARGO_MANIFEST_DIR"),
147 "/src/bindings/generic.rs"
148));
149
150#[cfg(feature = "generate-bindings")]
152include!(concat!(env!("OUT_DIR"), "/pkcs11_bindings.rs"));
153
154pub const CK_UNAVAILABLE_INFORMATION: CK_ULONG = CK_ULONG::MAX;