ifc_lite_diff_wasm/
lib.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at https://mozilla.org/MPL/2.0/.
4//! Independently loaded diff engine; no geometry or parser dependencies.
5mod diff;
6mod diff_binary;
7mod diff_fingerprint_binary;
8mod diff_class_normalization;
9mod diff_fingerprint;
10mod diff_fingerprint_input;
11mod diff_fingerprint_de;
12mod diff_fingerprint_host;
13mod diff_sidecar;
14mod diff_lineage;
15mod diff_provenance;
16mod diff_normalize;
17mod diff_transport;
18mod diff_sidecar_host;
19mod diff_sidecar_observe;
20mod diff_sidecar_lineage;
21mod diff_sidecar_create;
22mod diff_sidecar_public;
23
24/// Test-only ownership probe; absent from the default production ABI.
25#[cfg(feature = "decode-leak-test")]
26#[wasm_bindgen::prelude::wasm_bindgen(js_name = diffTestExternrefLiveCount)]
27pub fn diff_test_externref_live_count() -> u32 {
28    wasm_bindgen::externref_heap_live_count()
29}
30
31/// Test-only resident-model ownership probe; absent from the production ABI.
32#[cfg(feature = "decode-leak-test")]
33#[wasm_bindgen::prelude::wasm_bindgen(js_name = diffTestModelLiveCount)]
34pub fn diff_test_model_live_count() -> u32 { diff::live_count() }