Rust programs can use Rust's `Rc` or other mechanisms for reference counting and non-Rust code can do similar.