Safely cast &T to &U where the struct U contains a single field of type T.
☆218Feb 16, 2026Updated last week
Alternatives and similar repositories for ref-cast
Users that are interested in ref-cast are comparing it to the libraries listed below
Sorting:
- Make trait methods callable without the trait in scope☆163Feb 16, 2026Updated last week
- Struct fields that are made read-only accessible to other modules☆265Feb 16, 2026Updated last week
- Conditional compilation according to rustc compiler version☆392Feb 16, 2026Updated last week
- Compile-time temporary directory shared by multiple crates and erased by `cargo clean`☆77Dec 20, 2025Updated 2 months ago
- Convert number to enum☆87Jul 30, 2024Updated last year
- Make any value Sync but only available on its original thread☆39Dec 20, 2025Updated 2 months ago
- Atomic operations on potentially uninitialized integers.☆28Updated this week
- Define your own PhantomData☆159Feb 16, 2026Updated last week
- Macros for all your token pasting needs☆1,080Oct 6, 2024Updated last year
- Type that deserializes only from one specific value☆270Feb 16, 2026Updated last week
- Procedural macro to mock returning (values referencing) locals from a function (using CPS)☆35Oct 22, 2024Updated last year
- Full precision decimal representation of f64☆28Feb 16, 2026Updated last week
- A library for to allow multiple return types by automatically generated enum.☆374Feb 18, 2026Updated last week
- Attribute macro to require that the compiler prove a function can't ever panic☆1,183Feb 8, 2026Updated 2 weeks ago
- Clone trait that is object-safe☆748Feb 16, 2026Updated last week
- Minimal TOML library with few dependencies☆83Mar 3, 2025Updated 11 months ago
- Graph the number of crates that depend on your crate over time☆256Feb 2, 2026Updated 3 weeks ago
- The missing compound borrowing for Rust.☆63Nov 1, 2025Updated 3 months ago
- Easy self-referential struct generation for Rust.☆693Jan 11, 2025Updated last year
- ☆35Nov 20, 2024Updated last year
- Safe cross-platform linker shenanigans☆835Feb 19, 2026Updated last week
- Safe, zero-cost downcasting for limited compile-time specialization.☆181Aug 11, 2025Updated 6 months ago
- A wrapper around Rust futures that stores the future in space provided by the caller.☆306Nov 19, 2025Updated 3 months ago
- Token tree calling convention☆82Dec 19, 2022Updated 3 years ago
- Fork of std::Arc with lots of utilities useful for FFI☆280Jan 22, 2026Updated last month
- Indented document literals for Rust☆767Feb 16, 2026Updated last week
- A vector with a fixed capacity. (Rust)☆851Oct 19, 2024Updated last year
- Intrusive collections for Rust☆488Jan 5, 2026Updated last month
- TARGET and HOST triples☆16Dec 20, 2025Updated 2 months ago
- Fast floating point to string conversion☆692Feb 16, 2026Updated last week
- A Rust proc-macro attribute parser☆1,235Jan 15, 2026Updated last month
- Utility wrapper to send non send types to other threads safely☆186Mar 25, 2025Updated 11 months ago
- Append-only collections for Rust where borrows to entries can outlive insertions☆274Jan 23, 2026Updated last month
- Test harness for ui tests of compiler diagnostics☆957Feb 12, 2026Updated 2 weeks ago
- Ensure correct assumptions about constants, types, and more in Rust☆646Nov 18, 2023Updated 2 years ago
- ☆26Feb 16, 2026Updated last week
- Type-erased Serialize, Serializer and Deserializer traits☆810Feb 16, 2026Updated last week
- A minimal `syn` syntax tree pretty-printer☆743Feb 9, 2026Updated 2 weeks ago
- Safe, fallible, embedded-friendly ordered set/map via a scapegoat tree. Validated against BTreeSet/BTreeMap.☆263Feb 10, 2022Updated 4 years ago