NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #1021 most downloaded on crates.io
Safe-to-use proc-macro-free self-referential structs in stable Rust.
Latest stable
1.3.0
Last release 4 months ago
16 Jul 2026
Release timing varies
gaps range from 2 weeks to 1.5 years
Most releases are documented
notes for 8 of 9 stable releases
11 versions withdrawn
withdrawn after publishing
6 years old
20 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Async self_cell construction is now Send , this makes using it with tokio easier. This comes at no additional performance cost. See #74 for more detai
self_cell construction is now Send, this makes using it with tokio easier. This comes at no additional performance cost. See #74 for more details.Small fixes: #71 #72 #73
Small fixes:
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Re-licensed the project to Apache 2.0 OR GPLv2
Re-licensed the project to Apache 2.0 OR GPLv2
This release adds support for async dependent construction, via the async_builder dependent attribute. See the documentation, example, issue #57 or PR
This release adds support for async dependent construction, via the async_builder dependent attribute. See the documentation, example, issue https://github.com/Voultapher/self_cell/issues/57 or PR https://github.com/Voultapher/self_cell/pull/62 for more details.
This release adds support for mutable references to the owner during construction via the MutBorrow type, see #59 and #60 for more details. Thank you
Improvements to the documentation that help users discover the generated API. Thanks @hniksic for reporting the issue.
Improvements to the documentation that help users discover the generated API. Thanks @hniksic for reporting the issue.
This release contains fixes that avoid name collision with functions and structs named Ok , Err , FnOnce and collisions with the core namespace. Thank
This release contains fixes that avoid name collision with functions and structs named Ok, Err, FnOnce and collisions with the core namespace. Thank you @dcecile for reporting the issue.
This release contains an important soundness fix see https://rustsec.org/advisories/RUSTSEC-2023-0070.html for more details, thank you @steffahn for r
This release contains an important soundness fix see https://rustsec.org/advisories/RUSTSEC-2023-0070.html for more details, thank you @steffahn for reporting and fixing the problem.
The generated functions now have doc comments, thanks to @link2xt
It has been over a year without any API changes. I'm happy with the API and think it's mature enough. Nothing changed in this release.
It has been over a year without any API changes. I'm happy with the API and think it's mature enough. Nothing changed in this release.
Nothing published for this version
The cargo published files now include the README.md and LICENSE files. See #34 thanks @subpop for the PR
This version includes:
Clear documentation what the minimum supported version is, currently rustc 1.51
This version includes:
old_rust that drops minimum required version down to rustc 1.36 see #33 and the documentation for details. Thanks @mitsuhiko for the idea and @steffahn for the help.This release fixes serious implementation bugs, the dependent was dropped after the owner, and panics in drop impl could lead to double free. As conse
This version includes:
This release fixes serious implementation bugs, the dependent was dropped after the owner, and panics in drop impl could lead to double free. As consequence I've yanked all previous versions. In addition a series of potential unsound usage bugs have been addressed. Please update to v0.10 as soon as possible. See #18 #20 #24 #26 and #28 and their associated PRs #21 #23 #25 #27 #29. Huge thanks to @steffahn for reporting and helping fix these issues.
An improved Debug implementation that uses fmt.debug_struct and now correctly supports custom format strings such as {:#?}. See #22
This release addresses two somewhat exotic ways self_cell could be used in an unsound fashion to cause UB. See issues #17 and #18. Thanks @steffahn fo
This release addresses two somewhat exotic ways self_cell could be used in an unsound fashion to cause UB. See issues #17 and #18. Thanks @steffahn for reporting and helping to fix these issues.
This release brings 2 core changes:
This release brings 2 core changes:
panic inside a builder function no longer causes a memory leak.This means that the previously documented workaround using try_new and
catch_unwind has become obsolete and the relevant example has been deleted.
Bug fixes:
An esoteric edge case could cause UB, see https://github.com/Voultapher/self_cell/commit/bb2f502fa0bae2318987e7e9a57e5a9a83e8ac25 for more details.
Defining your own Result could break the macro due to hygiene issues, see https://github.com/Voultapher/self_cell/issues/16#issuecomment-891632774.
In addition a set of benchmarks comparing self_cell to ouroboros have been added, see the benchmarks directory.
This is a breaking change, if you used from_fn and or try_from_fn all you need to do is delete the constructor type eg. #[from_fn] in the macro invoca…
This release has 2 core components:
Revamped dependent construction. You no longer have to choose which constructor type you want. Instead you can choose between:
new formerly from_fntry_new formerly try_from_fntry_new_or_recover newThis is a breaking change, if you used from_fn and or try_from_fn all you need to do is delete the constructor type eg. #[from_fn] in the macro invocation. If you used either from or try_from you can easily replace them by also removing the constructor type and using new and try_new respectively, eg: Ast::from(body) -> Ast::new(body, |body| body.into()). See the documentation for details.
fn into_owner(self) -> $Owner which lets you efficiently recover the owner.This release adds 2 new features:
This release adds 2 new features:
support for mutating the dependent value with a new function: fn with_dependent_mut<Ret>(&mut self, func: impl for<'a> FnOnce(&'a $Owner, &'a mut $Dependent<'a>) -> Ret) -> Ret.
support for fallible construction from functions with a new constructor type try_from_fn
See the docs for details https://docs.rs/self_cell/0.8.0/self_cell/macro.self_cell.html
Nothing published for this version
Nothing published for this version
One column per quarter.