Safely cast &T to &U where the struct U contains a single field of type T.
☆219Feb 16, 2026Updated last month
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 month
- Struct fields that are made read-only accessible to other modules☆265Feb 16, 2026Updated last month
- Make any value Sync but only available on its original thread☆39Dec 20, 2025Updated 3 months ago
- Conditional compilation according to rustc compiler version☆393Feb 16, 2026Updated last month
- Convert number to enum☆87Jul 30, 2024Updated last year
- Type that deserializes only from one specific value☆270Feb 16, 2026Updated last month
- Atomic operations on potentially uninitialized integers.☆29Updated this week
- Compile-time temporary directory shared by multiple crates and erased by `cargo clean`☆78Dec 20, 2025Updated 3 months ago
- Define your own PhantomData☆160Feb 16, 2026Updated last month
- Macros for all your token pasting needs☆1,081Oct 6, 2024Updated last year
- The missing compound borrowing for Rust.☆64Nov 1, 2025Updated 4 months ago
- Full precision decimal representation of f64☆28Feb 16, 2026Updated last month
- Procedural macro to mock returning (values referencing) locals from a function (using CPS)☆35Oct 22, 2024Updated last year
- A library for to allow multiple return types by automatically generated enum.☆377Mar 12, 2026Updated last week
- Clone trait that is object-safe☆750Feb 16, 2026Updated last month
- ☆36Nov 20, 2024Updated last year
- Minimal TOML library with few dependencies☆83Mar 3, 2025Updated last year
- Attribute macro to require that the compiler prove a function can't ever panic☆1,186Feb 8, 2026Updated last month
- Graph the number of crates that depend on your crate over time☆256Feb 2, 2026Updated last month
- Easy self-referential struct generation for Rust.☆696Jan 11, 2025Updated last year
- Compile-time checks that an enum or match is written in sorted order☆122Feb 16, 2026Updated last month
- TARGET and HOST triples☆16Dec 20, 2025Updated 3 months ago
- Safe cross-platform linker shenanigans☆838Feb 19, 2026Updated last month
- Utility wrapper to send non send types to other threads safely☆186Mar 25, 2025Updated 11 months ago
- A wrapper around Rust futures that stores the future in space provided by the caller.☆306Nov 19, 2025Updated 4 months ago
- Indented document literals for Rust☆770Feb 16, 2026Updated last month
- 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☆959Feb 12, 2026Updated last month
- Token tree calling convention☆82Dec 19, 2022Updated 3 years ago
- Safe, zero-cost downcasting for limited compile-time specialization.☆183Aug 11, 2025Updated 7 months ago
- Serde Visitor for deserializing untagged enums☆71Feb 16, 2026Updated last month
- A procedural macro implementation of `quote!`.☆24Mar 20, 2023Updated 3 years ago
- Fork of std::Arc with lots of utilities useful for FFI☆284Jan 22, 2026Updated last month
- A minimal `syn` syntax tree pretty-printer☆750Feb 9, 2026Updated last month
- Fast floating point to string conversion☆694Feb 16, 2026Updated last month
- A vector with a fixed capacity. (Rust)☆855Oct 19, 2024Updated last year
- Safe, fallible, embedded-friendly ordered set/map via a scapegoat tree. Validated against BTreeSet/BTreeMap.☆262Feb 10, 2022Updated 4 years ago
- A Rust proc-macro attribute parser☆1,239Jan 15, 2026Updated 2 months ago
- Ensure correct assumptions about constants, types, and more in Rust☆648Nov 18, 2023Updated 2 years ago