smallnum
Compile-time size optimization for numeric primitives. (by tnballo)
rust-derive-builder
derive builder implementation for rust structs (by colin-kiegel)
smallnum | rust-derive-builder | |
---|---|---|
1 | 1 | |
7 | 1,164 | |
- | - | |
1.8 | 7.1 | |
over 2 years ago | 10 days ago | |
Rust | Rust | |
MIT License | Apache License 2.0 |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
smallnum
Posts with mentions or reviews of smallnum.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-06-27.
-
"smallnum" crate: compile-time size optimization for numeric primitives
Thus, this crate provides a macro to automatically determine the smallest integer type that can "fit" a constant max. When the size of a backing collection is known at compile-time (e.g. when using crates like `smallvec` for `!#[no_std]` development), this compile-time optimization can help save precious bytes - potentially for every node in an index-based structure (see README examples). Currently supports signed and unsigned numbers, but I’d love help with floating point support if anyone has ideas (though I don't know what a realistic usecase would be :P).
rust-derive-builder
Posts with mentions or reviews of rust-derive-builder.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-05-01.
-
I created easy to use telegram bot API client for rust. It's a complete wrapper for telegram bot api
before implementing setters and getters, I tried builders with https://github.com/colin-kiegel/rust-derive-builder . But it requires implementing `Default` trait, which is not possible to do automatically for most structs.
What are some alternatives?
When comparing smallnum and rust-derive-builder you can also consider the following projects:
derive_more - Some more derive(Trait) options
deranged - Proof of concept ranged integers in Rust.
rust-cpp - Embed C++ directly inside your rust code!
rust-bitfield - This crate provides macros to generate bitfield-like struct.
born - Remove code duplication from Struct and Enum with functional macros.
rfcs - RFCs for changes to Rust
rust-ctor - Module initialization/global constructor functions for Rust
bitflags - A macro to generate structures which behave like bitflags
frankenstein - Telegram bot API client for Rust
smallnum vs derive_more
rust-derive-builder vs derive_more
smallnum vs deranged
rust-derive-builder vs rust-cpp
smallnum vs rust-bitfield
rust-derive-builder vs rust-bitfield
smallnum vs rust-cpp
rust-derive-builder vs born
smallnum vs rfcs
rust-derive-builder vs rust-ctor
rust-derive-builder vs bitflags
rust-derive-builder vs frankenstein