Skip to main content

gc_lite/
lib.rs

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2025-2026 John Ray <996351336@qq.com>
3
4pub mod gctype;
5mod heap;
6mod helpers;
7mod mark_sweep;
8mod mem;
9mod node;
10mod node_link;
11mod partition;
12mod scope;
13mod trace;
14mod weak;
15mod xref;
16
17pub use {
18    gctype::{GcTypeInfo, GcTypeRegistry, drop_fn as gctype_drop, trace_fn as gctype_trace},
19    heap::GcHeap,
20    helpers::{GcError, GcResult},
21    node::{GcHead, GcNode, GcRef},
22    partition::{GcPartition, GcPartitionId},
23    scope::{GcScope, GcScopeState},
24    trace::{GcTrace, GcTraceCtx},
25    weak::GcWeak,
26};
27
28pub(crate) use helpers::unlikely;
29
30#[doc(hidden)]
31pub use gc_lite_macros::gc_type_table_internal;