use lean_rs::{
CapturedEvent, DIAGNOSTIC_CAPTURE_DEFAULT_CAPACITY, DecodeCallResult, DiagnosticCapture, HostFailure, HostStage,
LEAN_ERROR_MESSAGE_LIMIT, LeanAbi, LeanArgs, LeanCallbackFlow, LeanCallbackHandle, LeanCallbackPayload,
LeanCallbackStatus, LeanDeclaration, LeanDiagnosticCode, LeanError, LeanException, LeanExceptionKind, LeanExported,
LeanExpr, LeanIo, LeanLevel, LeanLibrary, LeanModule, LeanName, LeanProgressCallback, LeanProgressTick, LeanResult,
LeanRuntime, LeanStringEvent, LeanThreadGuard, Obj, ObjRef, VERSION,
};
#[test]
fn l1_curated_surface_is_reachable_from_crate_root() {
let _: usize = LEAN_ERROR_MESSAGE_LIMIT;
let _: usize = DIAGNOSTIC_CAPTURE_DEFAULT_CAPACITY;
let _: &str = VERSION;
fn _surface_shapes<'lean, 'lib>(
_runtime: &'lean LeanRuntime,
_guard: LeanThreadGuard<'lean>,
_library: LeanLibrary<'lean>,
_module: LeanModule<'lean, 'lib>,
_exported: LeanExported<'lean, 'lib, (u64,), u64>,
_io_marker: LeanIo<u64>,
_name: LeanName<'lean>,
_level: LeanLevel<'lean>,
_expr: LeanExpr<'lean>,
_decl: LeanDeclaration<'lean>,
_obj: Obj<'lean>,
_obj_ref: ObjRef<'lean, '_>,
_result: LeanResult<()>,
_err: LeanError,
_exc: LeanException,
_host_fail: HostFailure,
_stage: HostStage,
_kind: LeanExceptionKind,
_code: LeanDiagnosticCode,
_callback_flow: LeanCallbackFlow,
_callback_handle: LeanCallbackHandle<LeanProgressTick>,
_string_callback_handle: LeanCallbackHandle<LeanStringEvent>,
_progress_callback: LeanProgressCallback<'_>,
_callback_status: LeanCallbackStatus,
_progress_tick: LeanProgressTick,
_string_event: LeanStringEvent,
_capture: DiagnosticCapture,
_event: CapturedEvent,
) where
u64: LeanAbi<'lean> + DecodeCallResult<'lean>,
(u64,): LeanArgs<'lean>,
LeanProgressTick: LeanCallbackPayload,
LeanStringEvent: LeanCallbackPayload,
{
}
}