Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

crates.io "const" keyword

const-if 0.1.3
This crate adds if-else expression into your constant functions
4 versions - Latest release: almost 5 years ago - 2.17 thousand downloads total - 2 stars on GitHub - 1 maintainer
const-tweaker-attribute 0.5.0
Tweak constant variables live from a web GUI
7 versions - Latest release: about 4 years ago - 1 dependent package - 5 dependent repositories - 8.35 thousand downloads total - 75 stars on GitHub - 1 maintainer
constptr 0.2.0
NonNull without mutability
2 versions - Latest release: about 1 year ago - 2 dependent packages - 1 dependent repositories - 2.2 thousand downloads total - 1 maintainer
const-tweaker 0.3.1
Tweak constant variables live from a web GUI
11 versions - Latest release: about 4 years ago - 2 dependent packages - 5 dependent repositories - 9.49 thousand downloads total - 75 stars on GitHub - 1 maintainer
const_trait_impl 0.1.3
Moved to unconst_trait_impl due to collision between manually added dependency and implicit assoc...
4 versions - Latest release: about 2 years ago - 1 dependent package - 1.4 thousand downloads total - 0 stars on GitHub - 1 maintainer
const-arithmetic 1.0.4
Exploits Rust's type generic system to perform integer arithmetics at compile time.
5 versions - Latest release: 11 months ago - 1.34 thousand downloads total - 1 stars on GitHub - 1 maintainer
const-primes 0.5.1
Generate and work with prime numbers in const contexts
22 versions - Latest release: 5 days ago - 1 dependent package - 5.29 thousand downloads total - 7 stars on GitHub - 1 maintainer
const_soft_float 0.1.4
Const Soft Float Point
5 versions - Latest release: 11 months ago - 4 dependent packages - 108 dependent repositories - 496 thousand downloads total - 16 stars on GitHub - 2 maintainers
qed 1.6.1
Compile-time assertions
10 versions - Latest release: 12 months ago - 1 dependent repositories - 38.5 thousand downloads total - 5 stars on GitHub - 1 maintainer
slice_ops 0.1.10
A selection of useful slice operations that run at compile-time
11 versions - Latest release: about 1 month ago - 2 dependent packages - 4.12 thousand downloads total - 0 stars on GitHub - 1 maintainer
pkg-version 1.0.0
Macros expanding to the package version
4 versions - Latest release: over 4 years ago - 17 dependent packages - 23 dependent repositories - 173 thousand downloads total - 8 stars on GitHub - 1 maintainer
nz 0.3.5
Collection of 100% safe macros for creating non-zero integers type more easily.
18 versions - Latest release: 12 days ago - 1 dependent package - 3.86 thousand downloads total - 0 stars on GitHub - 1 maintainer
keccak-const 0.2.0
const fn implementation of the SHA-3 family of hash and extendable-output functions
1 version - Latest release: 9 months ago - 2 dependent packages - 17 dependent repositories - 7.56 thousand downloads total - 4 stars on GitHub - 2 maintainers
Top 7.1% on crates.io
fugit 0.3.7
Time library for embedded targets with ease-of-use and performance first.
15 versions - Latest release: 11 months ago - 94 dependent packages - 301 dependent repositories - 1.16 million downloads total - 51 stars on GitHub - 1 maintainer
enum-assoc 1.1.0
Procedural macro to associate constants with enum variants.
20 versions - Latest release: about 1 year ago - 5 dependent packages - 1 dependent repositories - 95.7 thousand downloads total - 15 stars on GitHub - 1 maintainer
Top 8.7% on crates.io
elain 0.3.0
Set a type's minimum alignment with const generics.
3 versions - Latest release: about 3 years ago - 7 dependent packages - 4 dependent repositories - 56.8 thousand downloads total - 1 maintainer
const-utf16 0.2.1
Utf8 to utf16 conversion functions for use in const contexts
5 versions - Latest release: about 3 years ago - 3 dependent packages - 1 dependent repositories - 3.78 thousand downloads total - 15 stars on GitHub - 1 maintainer
Top 7.7% on crates.io
const-str 0.5.7
compile-time string operations
22 versions - Latest release: 2 months ago - 56 dependent packages - 565 dependent repositories - 2.46 million downloads total - 69 stars on GitHub - 1 maintainer
Top 6.6% on crates.io
const-sha1 0.3.0
A sha1 implementation for use in const contexts
4 versions - Latest release: 4 months ago - 14 dependent packages - 332 dependent repositories - 3.57 million downloads total - 86 stars on GitHub - 1 maintainer
const_panic 0.2.8
const panic with formatting
12 versions - Latest release: about 1 year ago - 17 dependent packages - 1,187 dependent repositories - 2.39 million downloads total - 5 stars on GitHub - 1 maintainer
constcat 0.5.0
concat! with support for const variables and expressions
8 versions - Latest release: 3 months ago - 8 dependent packages - 10 dependent repositories - 1.21 million downloads total - 27 stars on GitHub - 1 maintainer
const-array-init 1.0.0
Macros used to initialize arrays in const context using closure syntax or const function
1 version - Latest release: 22 days ago - 1 dependent package - 0 downloads total - 0 stars on GitHub - 1 maintainer
const_fn_assert 0.1.3+deprecated
Assertions for const functions.
5 versions - Latest release: about 1 year ago - 8 dependent packages - 98 dependent repositories - 393 thousand downloads total - 3 stars on GitHub - 1 maintainer
auto-const-array 0.2.1 💰
Define a const array without specify length.
4 versions - Latest release: 10 months ago - 1 dependent package - 4 dependent repositories - 26.8 thousand downloads total - 8 stars on GitHub - 1 maintainer
devault 0.2.0
A more flexible alternative to deriving Default.
2 versions - Latest release: 6 months ago - 2 dependent packages - 1 dependent repositories - 33.7 thousand downloads total - 8 stars on GitHub - 1 maintainer
cstr-literal 0.1.0
A const-friendly macro for C string literals.
1 version - Latest release: 12 months ago - 434 downloads total - 1 stars on GitHub - 1 maintainer
condtype 1.3.0 💰
Choose types at compile-time via boolean constants.
4 versions - Latest release: 9 months ago - 1 dependent package - 2 dependent repositories - 86.9 thousand downloads total - 56 stars on GitHub - 1 maintainer
constgebra 0.1.4
Const Linear Algebra
5 versions - Latest release: 2 months ago - 1 dependent package - 78 dependent repositories - 450 thousand downloads total - 8 stars on GitHub - 1 maintainer
index-fixed 0.3.1 💰
convert slices into arrays using indexes ([T] -> [T;N])
7 versions - Latest release: over 3 years ago - 4 dependent packages - 59 dependent repositories - 184 thousand downloads total - 0 stars on GitHub - 1 maintainer
value 0.1.1
Type-level constants for generic contexts
2 versions - Latest release: about 6 years ago - 3 dependent repositories - 1.51 thousand downloads total - 1 maintainer
Top 5.5% on crates.io
databake 0.1.7 💰
Trait that lets structs represent themselves as (const) Rust expressions
8 versions - Latest release: 6 months ago - 30 dependent packages - 17 dependent repositories - 56.9 thousand downloads total - 1,203 stars on GitHub - 2 maintainers
const-str-proc-macro 0.5.7
compile-time string operations
17 versions - Latest release: 2 months ago - 1 dependent package - 179 dependent repositories - 434 thousand downloads total - 70 stars on GitHub - 1 maintainer
Top 8.9% on crates.io
databake-derive 0.1.7 💰
Custom derive for the databake crate
7 versions - Latest release: 6 months ago - 1 dependent package - 5 dependent repositories - 55.8 thousand downloads total - 1,203 stars on GitHub - 2 maintainers
fortraith 0.1.3
Compile-time compiler that compiles Forth to compile-time trait expressions.
4 versions - Latest release: almost 4 years ago - 1.57 thousand downloads total - 219 stars on GitHub - 1 maintainer
array-const-fn-init 0.1.1
Initializes an array with constant values calculated by a `const fn`
2 versions - Latest release: almost 4 years ago - 1 dependent package - 17 dependent repositories - 230 thousand downloads total - 4 stars on GitHub - 1 maintainer
construe 0.0.3
Compile-Time Growable Array: Vec & String for const!
3 versions - Latest release: 9 months ago - 1 dependent package - 950 downloads total - 1 maintainer
const_guards_attribute 0.1.3
An attribute macro for compile time constraints on const generics
4 versions - Latest release: almost 2 years ago - 1 dependent package - 2.68 thousand downloads total - 12 stars on GitHub - 1 maintainer
cartesian_array_product 1.1.1
Arrays of the cartesian product of a set of items.
4 versions - Latest release: 9 months ago - 1 dependent package - 1.3 thousand downloads total - 0 stars on GitHub - 1 maintainer
static_format 0.0.3
Format strings with no runtime overhead.
3 versions - Latest release: 4 months ago - 876 downloads total - 1 stars on GitHub - 1 maintainer
const_guards 0.1.3
An attribute macro for compile time constraints on const generics
3 versions - Latest release: almost 2 years ago - 1 dependent package - 1.92 thousand downloads total - 12 stars on GitHub - 1 maintainer
const-twiddle
Bitwise utility functions
7 versions - Latest release: 5 days ago - 1.71 thousand downloads total - 0 stars on GitHub - 1 maintainer
const_stringify_ints 0.1.0
Converts (generic) constant integers to &'static str
1 version - Latest release: almost 2 years ago - 383 downloads total - 2 stars on GitHub - 1 maintainer
constant-cstr 0.1.1
Create const instances of CStr at compile time
2 versions - Latest release: almost 2 years ago - 639 downloads total - 0 stars on GitHub - 1 maintainer
polymorphic-constant 0.2.0
A macro to define a numerical constant in multiple types at once
8 versions - Latest release: about 3 years ago - 2.65 thousand downloads total - 3 stars on GitHub - 1 maintainer
static_locks 0.1.0
The `parking_lot` locks but usable in statics and const fn.
1 version - Latest release: over 4 years ago - 1 dependent repositories - 1.47 thousand downloads total - 2 stars on GitHub - 1 maintainer
map-to-const 0.2.0
Easily convert HashMap<K, V> to constant [(K, V); N] values.
2 versions - Latest release: about 2 years ago - 726 downloads total - 2 stars on GitHub - 1 maintainer
vec-const
I consent to the transfer of this crate/name to the first person who asks [email protected] for it.
10 versions - Latest release: 27 days ago - 2.47 thousand downloads total - 1 maintainer
enumeraties 0.1.0
Static properties on enum variants
1 version - Latest release: about 2 years ago - 866 downloads total - 1 stars on GitHub - 1 maintainer
named_constants 0.2.0
Procedural macro makes enums behave like named constants in languages like C/C++ or C#.
2 versions - Latest release: over 1 year ago - 2 dependent repositories - 1.46 thousand downloads total - 5 stars on GitHub - 1 maintainer
nonzero_lit 0.1.2
Easy, safe, and fully zero-cost NonZero constants and literals.
3 versions - Latest release: about 3 years ago - 1 dependent repositories - 21.1 thousand downloads total - 3 stars on GitHub - 1 maintainer
pure_cell 0.2.0
Alternative to GhostCell that provides safe interior mutability via const expressions.
2 versions - Latest release: about 2 years ago - 728 downloads total - 3 stars on GitHub - 1 maintainer
newtype_array 0.1.6
A macro to help implementing the standard derived traits on newtype arrays
7 versions - Latest release: over 5 years ago - 2 dependent packages - 5.77 thousand downloads total - 0 stars on GitHub - 1 maintainer
const_fixedp 0.1.1
A const type for fixed point arithmetic
2 versions - Latest release: almost 3 years ago - 758 downloads total - 0 stars on GitHub - 1 maintainer
partial_const 0.2.1
This library provides a way to handle constant and non-constant values in a unified way.
3 versions - Latest release: about 3 years ago - 1.04 thousand downloads total - 0 stars on GitHub - 1 maintainer
lazy_id 0.1.0
A thread-safe lazily-initialized ID
1 version - Latest release: over 3 years ago - 3.23 thousand downloads total - 0 stars on GitHub - 1 maintainer
const-alloc 0.1.0
Allocate dynamic memory at compile time
1 version - Latest release: over 2 years ago - 458 downloads total - 1 stars on GitHub - 1 maintainer
matdesign-color 0.1.2
Material Design Color Palettes for Rust
3 versions - Latest release: almost 3 years ago - 1.14 thousand downloads total - 0 stars on GitHub - 1 maintainer
const-anonymous-functions 1.1.0
Simple macro to create const anonymous functions
2 versions - Latest release: 9 months ago - 1 dependent package - 874 downloads total - 1 maintainer
const-vec 1.1.1
Vec-like data structure with immutable push method.
5 versions - Latest release: about 1 year ago - 2.42 thousand downloads total - 0 stars on GitHub - 1 maintainer
crange 0.1.0
Provides types and functions to access a constant number of elements from a slice
1 version - Latest release: over 3 years ago - 607 downloads total - 0 stars on GitHub - 1 maintainer
Top 8.3% on crates.io
const_fn 0.4.10 💰
A lightweight attribute for easy generation of const functions with conditional compilations.
23 versions - Latest release: 25 days ago - 15 dependent packages - 8,277 dependent repositories - 30.6 million downloads total - 24 stars on GitHub - 1 maintainer
constantine 0.0.0 💰
[WIP] Constant evaluation magic
1 version - Latest release: about 4 years ago - 508 downloads total - 0 stars on GitHub - 1 maintainer
const-crc32 1.3.0
A `const fn` implementation of crc32 checksum algorithm
6 versions - Latest release: 8 months ago - 1 dependent package - 3 dependent repositories - 27.8 thousand downloads total - 1 maintainer
compile-fmt 0.1.0
Compile-time formatting and derived functionality (e.g., panics / assertions)
1 version - Latest release: 5 months ago - 30.4 thousand downloads total - 1 stars on GitHub - 1 maintainer
float_approx_math 0.1.9
A math library for compile-time floating-point approximations (sqrt, sin, cos, etc...)
10 versions - Latest release: 4 months ago - 3 dependent packages - 3.29 thousand downloads total - 0 stars on GitHub - 1 maintainer
const-units 0.1.3
A library that lets you check the dimensions of your quantities at compile time and run time
4 versions - Latest release: 5 months ago - 1.08 thousand downloads total - 0 stars on GitLab.com - 1 maintainer
array-section 0.1.2
An array where only a (contiguous) subarray may be viwed or operated on
3 versions - Latest release: 9 days ago - 268 downloads total - 0 stars on GitHub - 1 maintainer
softfloat 1.0.0
Pure software floating-point implementation, with `const` and `no_std` support
1 version - Latest release: 6 months ago - 1.59 thousand downloads total - 1 stars on GitHub - 1 maintainer
const-gen 1.6.4
A crate for generating (relatively) complex compile-time constants in rust.
40 versions - Latest release: 7 months ago - 3 dependent packages - 3 dependent repositories - 26.9 thousand downloads total - 20 stars on GitHub - 1 maintainer
guilt-by-association 0.5.0
Macro for declaring/implementing traits with fake associated consts (in stable Rust)
9 versions - Latest release: about 6 years ago - 1 dependent repositories - 29.4 thousand downloads total - 0 stars on GitHub - 1 maintainer
const-sub-array 0.1.0
Extract a fixed size sub-array out of an array with complie-time length and offset checks.
1 version - Latest release: about 1 month ago - 367 downloads total - 0 stars on GitHub - 1 maintainer
dirty_static 0.1.1
A container for an immutable value that allows sneaky reloading in debug mode (via UnsafeCell) wh...
2 versions - Latest release: over 4 years ago - 1 dependent repositories - 1.29 thousand downloads total - 2 stars on GitHub - 1 maintainer
cliff 0.3.2
Find the load at which a benchmark falls over
5 versions - Latest release: almost 4 years ago - 2.05 thousand downloads total - 34 stars on GitHub - 1 maintainer
const-identify 0.1.1
Generates unique ids that can be used at compile time.
2 versions - Latest release: 8 months ago - 693 downloads total - 0 stars on GitHub - 1 maintainer
const-type-layout 0.3.0
Derivable const trait to view and compare the layout of a struct, union, or enum.
4 versions - Latest release: about 2 months ago - 2.06 thousand downloads total - 1 stars on GitHub - 1 maintainer
crabbake 💰
Trait that lets structs represent themselves as (const) Rust expressions
2 versions - Latest release: 14 days ago - 3 dependent packages - 2 dependent repositories - 1.08 thousand downloads total - 1,203 stars on GitHub - 1 maintainer
const-gen-derive 1.1.5
A derive macro for the const-gen crate.
14 versions - Latest release: 7 months ago - 1 dependent package - 4 dependent repositories - 19.4 thousand downloads total - 0 stars on GitHub - 1 maintainer
serde-constant 0.1.0
Const values for serde
1 version - Latest release: 7 months ago - 3.59 thousand downloads total - 0 stars on GitHub - 1 maintainer
macro_const 0.1.0
A macro for creating corresponding macro definitions for constants which evaluate to the same val...
1 version - Latest release: over 3 years ago - 1 dependent package - 4 dependent repositories - 41.5 thousand downloads total - 0 stars on GitHub - 1 maintainer
Top 7.9% on crates.io
staticvec 0.11.9
Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const gener...
96 versions - Latest release: over 1 year ago - 9 dependent packages - 11 dependent repositories - 97.9 thousand downloads total - 267 stars on GitHub - 1 maintainer
staticsort 0.4.2
Implements a macro providing a compile-time quicksort function for arrays of any length, containi...
11 versions - Latest release: over 2 years ago - 1 dependent package - 1 dependent repositories - 7.56 thousand downloads total - 7 stars on GitHub - 1 maintainer
unconst_trait_impl 0.1.5
Function-like macro that "unconsts" trait implementations
6 versions - Latest release: almost 2 years ago - 2 dependent packages - 3.1 thousand downloads total - 0 stars on GitHub - 1 maintainer
array-helpers 0.0.1
Basic length-generic operations on arrays.
1 version - Latest release: almost 5 years ago - 670 downloads total - 8 stars on GitHub - 1 maintainer
const-crc32-nostd 1.3.1
A `const fn` implementation of crc32 checksum algorithm
1 version - Latest release: 3 months ago - 402 downloads total - 1 maintainer
build_const 0.2.2
library for creating importable constants from build.rs or a script
5 versions - Latest release: about 3 years ago - 3 dependent packages - 3,511 dependent repositories - 12.3 million downloads total - 2 stars on GitHub - 1 maintainer
enum_const_value 0.4.3
Providing const values for enums. Unit and enums with associated types are supported. Each varian...
7 versions - Latest release: 8 months ago - 7.66 thousand downloads total - 1 stars on GitHub - 1 maintainer
cfg_block 0.2.0
Simple crate to allow using #[cfg(...)] and other macros on blocks
3 versions - Latest release: 4 months ago - 1 dependent package - 9 dependent repositories - 112 thousand downloads total - 1 stars on GitHub - 1 maintainer
tuple_split 0.1.1
An extension for the tupleops crate which adds a trait for splitting tuples by an index.
2 versions - Latest release: about 1 year ago - 1 dependent package - 737 downloads total - 0 stars on GitHub - 1 maintainer
overloaded_literals 0.8.3
Overloaded Literals to construct your datatypes without boilerplate and with compile-time validation
10 versions - Latest release: 6 months ago - 2.56 thousand downloads total - 7 stars on GitHub - 1 maintainer
overloaded_literals_macro 0.8.3
Internal proc-macro implementation crate for the overloaded_literals crate.
9 versions - Latest release: 6 months ago - 1 dependent package - 1 dependent repositories - 2.53 thousand downloads total - 7 stars on GitHub - 1 maintainer
const_closure 0.3.0
Helpers for creating const callable closures.
7 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 2.88 thousand downloads total - 0 stars on GitHub - 2 maintainers
const_for 0.1.4
For loop in const implemented with a macro.
5 versions - Latest release: 4 months ago - 2 dependent packages - 1 dependent repositories - 12.1 thousand downloads total - 4 stars on GitHub - 1 maintainer
sha3-const 0.1.1
const fn implementation of the SHA-3 family of hash and extendable-output functions
2 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 24.2 thousand downloads total - 3 stars on GitHub - 1 maintainer
fugit-timer 0.1.3
A Count Down Timer abstaction that uses fugit time primitives
4 versions - Latest release: over 2 years ago - 11 dependent packages - 102 dependent repositories - 342 thousand downloads total - 0 stars on GitHub - 1 maintainer
const_sort_rs 0.3.3
Sort slices in const items.
7 versions - Latest release: over 1 year ago - 1 dependent package - 2.36 thousand downloads total - 0 stars on GitHub - 2 maintainers
arrav 0.2.0
Sentinel-based heapless vector
6 versions - Latest release: about 4 years ago - 2.39 thousand downloads total - 68 stars on GitHub - 1 maintainer
lhash 1.1.0 💰
Minimal hashing library
6 versions - Latest release: 5 months ago - 3 dependent packages - 1 dependent repositories - 30.4 thousand downloads total - 2 stars on GitHub - 1 maintainer
trait_eval 0.1.3 💰
We all know Rust's trait system is Turing complete, so tell me, why aren't we exploiting this???
4 versions - Latest release: almost 4 years ago - 1 dependent package - 1 dependent repositories - 2.57 thousand downloads total - 351 stars on GitHub - 1 maintainer
const-trig 0.0.2
Rust crate providing const trig functions
3 versions - Latest release: over 1 year ago - 1 dependent package - 1 dependent repositories - 1.78 thousand downloads total - 3 stars on GitHub - 1 maintainer
blk_count_macro 0.1.1
A simple macro for counting a number of comma-separated tokens at compile time
2 versions - Latest release: about 1 year ago - 1 dependent package - 935 downloads total - 0 stars on GitHub - 1 maintainer