summaryrefslogtreecommitdiffstats
path: root/third_party/rust/uniffi_bindgen/src/scaffolding/templates/Checksums.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/uniffi_bindgen/src/scaffolding/templates/Checksums.rs')
-rw-r--r--third_party/rust/uniffi_bindgen/src/scaffolding/templates/Checksums.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/rust/uniffi_bindgen/src/scaffolding/templates/Checksums.rs b/third_party/rust/uniffi_bindgen/src/scaffolding/templates/Checksums.rs
new file mode 100644
index 0000000000..a59009d169
--- /dev/null
+++ b/third_party/rust/uniffi_bindgen/src/scaffolding/templates/Checksums.rs
@@ -0,0 +1,7 @@
+{%- for (name, checksum) in ci.iter_checksums() %}
+#[no_mangle]
+#[doc(hidden)]
+pub extern "C" fn r#{{ name }}() -> u16 {
+ {{ checksum }}
+}
+{%- endfor %}