#newtype

  1. email_address

    providing an implementation of an RFC-compliant EmailAddress newtype

    v0.2.9 2.4M #email #email-validation #rfc-compliant #newtype #from-str
  2. text-size

    Newtypes for text offsets

    v1.1.1 453K #newtype #range #text #size #offset
  3. nutype

    The newtype with guarantees

    v0.6.2 95K #input-validation #validation #newtype #derive #invariant
  4. oxc_index

    Newtype-style helpers for Vec and usize

    v4.1.0 179K #index-vec #indexed #newtype #usize #vec
  5. newtype-uuid

    Newtype wrapper around UUIDs

    v1.3.2 370K #uuid #newtype #guid
  6. g2p

    create types that implement fast finite field arithmetic

    v1.2.2 294K #finite-fields #newtype #macro
  7. index_vec

    Newtype-style helpers for Vec and usize

    v0.1.4 65K #vec #newtype #usize #indexed
  8. debug-ignore

    A newtype wrapper that causes a field to be skipped while printing out Debug output

    v1.0.5 572K #newtype #debugging #output #field #printing
  9. deriving_via

    DerivingVia

    v2.2.0 550 #newtype #macro #smart-pointers #generator #pattern #dereferencing #automatic-derive #newtype-derive
  10. as_variant

    macro to convert enums with newtype variants to Options

    v1.3.0 21K #newtype #enums #macro
  11. id_newtype

    Implements logic for a Cow<'static, str> newtype where only [A-Za-z0-9_] are valid characters

    v0.3.0 500 #id #newtype #character
  12. aliri_braid

    Improve and strengthen your strings by making them strongly-typed with less boilerplate

    v0.4.0 69K #string #validation #string-validation #string-normalization #newtype
  13. strid

    Improve and strengthen your strings by making them strongly-typed with less boilerplate

    v8.0.0 #validation #string #newtype #normalization
  14. typedflake

    A Snowflake-style ID generator library with newtype-driven design

    v0.1.3 #snowflake-id #generator #unique-ids #distributed-id-generator #newtype
  15. string_types

    String newtypes

    v0.13.0 160 #string-type #newtype #macro #validation #from-str #string-validation #upper-case #attempt #traits-derive
  16. diesel-derive-newtype

    Automatically connect newtypes to Diesel using their wrapped type

    v2.1.2 49K #newtype-derive #newtype #derive
  17. tagged-core

    A lightweight tagged type abstraction for type-safe IDs, etc

    v1.0.1 #tagged-unions #newtype #type-safe #id
  18. enumcapsulate

    Safe casting for newtype enums and their variants

    v0.6.3 650 #newtype #cast #enums #encapsulation
  19. dizzy

    Macros for safely interacting with DST newtypes

    v0.2.0 #macro-derive #newtype #dst
  20. open-enum

    An attribute for generating "open" fieldless enums, those that accept any integer value, by using a newtype struct and associated constants

    v0.5.2 26K #enums #newtype #open #integer
  21. rust-tagged

    A lightweight tagged type abstraction for type-safe IDs, etc

    v1.0.1 #tagged-unions #newtype #type-safe #id
  22. pack1

    Byte array newtypes for different primitive types

    v1.0.0 53K #byte-array #newtype #primitive #different #alignment #repr
  23. from_variants

    Rust macro to automatically generate conversions for newtype enums

    v1.0.2 9.8K #enum-variants #enums #newtype #convert #automatic
  24. newt-hype

    A very easy-to-use crate for creating wrapper structs using the new-type pattern

    v0.2.0 900 #newtype #hype #orphan #new #type
  25. enumorph

    Derive macro to generate TryFrom and From implementations for converting between newtype enum variants and their wrapped values

    v0.1.3 420 #macro-derive #enums #newtype #convert #try-from
  26. rvstruct

    A helper macros implementation for Value Classes in Rust

    v0.3.2 165K #newtype #value #class
  27. newtypes

    Macros that ease the implementation of the Newtype pattern

    v0.2.1 #newtype
  28. functora-tagged

    Lightweight, macro-free newtypes with refinement and derived traits

    v0.1.8 #newtype #refinement #tagged #derive
  29. string-newtype

    New Type idiom helper for string-like types

    v0.1.2 130 #newtype #wrapper #string
  30. newer-type

    Support defining newtype wrapper with inheriting trait implementations

    v0.2.0 240 #newtype #proc-macro #traits #attribute-macro
  31. strid-examples

    Examples demonstrating usage of the strid crate

    v8.0.0 #validation #string #newtype #normalization
  32. id_collections

    Index-oriented programming in Rust

    v1.0.1 650 #id-vec #vec #newtype #id-map #vec-map
  33. timestamp-please

    Unix timestamp newtype with chrono and time interop

    v0.2.0 #unix-timestamp #chrono #interop #newtype #time
  34. dizzy-macros

    Proc macros for the dizzy crate

    v0.1.0 #macro-derive #newtype #dst
  35. option-like

    Create your own Option-like enum

    v0.1.4 130 #newtype #options #no-alloc
  36. newnit

    A rich newtype library for units of quantity

    v0.1.2 #newtype #quantity #physics #measurement
  37. simple-newtype

    newtype macros for application development

    v0.1.2 #newtype #applications #macro
  38. bare-types

    A zero-cost foundation for type-safe domain modeling in Rust. Implements the 'Parse, don't validate' philosophy to eliminate primitive obsession and ensure data integrity at the system boundary.

    v0.1.0 #domain-modeling #type-safe #zero-cost #validation #newtype
  39. ambit

    Attribute macro for ranged number newtypes

    v0.1.2 #macro-attributes #macro-for-ranged #newtype #numbers
  40. microtype

    simplify the creation of microtypes

    v0.7.6 2.0K #microtypes #newtype #creation-of-microtypes #compile-time-error #order-id #user-id
  41. nova

    Macro to derive newtypes with support for serde and sqlx

    v0.5.4 #macro-derive #sqlx #newtype #serde-derive #debugging #partial-eq
  42. newtype-derive-2018

    macros for deriving common traits for newtype structures

    v0.2.3 #macro-derive #newtype-derive #macro-attr #custom-derive #newtype
  43. ref-ops

    An escape hatch for implementing ops traits for references to newtypes

    v0.2.5 160 #newtype #traits #ops #impl #no-alloc
  44. stable_identifier

    Convenience library for working with identifier types

    v0.1.0 #identifier #domain #type-safe #id-domain #newtype
  45. nutype_test_util

    Ergonomically create newtypes in tests

    v0.1.3 #newtype #newtype-derive #test
  46. eso

    Type machinery to build Cow-like containers

    v0.0.2 #building-block #container #reference #newtype #type-level #type-parameters #static-string #machinery #borrowing
  47. into_inner

    IntoInner trait for Rust newtypes

    v0.1.2 #macro-derive #newtype #traits #newtype-derive
  48. seventy

    Newtype sanitization and validation

    v0.4.0 290 #validation #newtype #sanitization
  49. tacit

    macro to make newtypes easier to create

    v0.1.2 #generator #unique-identifier #macro #newtype #struct #string-id #arc-str #ulid #from-str #debugging
  50. newtype-uuid-macros

    Procedural macro for newtype-uuid

    v0.1.0 8.4K #uuid #newtype #guid
  51. serde_newtype

    Macro for generating newtypes with validity checks for use with serde

    v0.1.2 120 #newtype #macro #generating #generator #validity #serde
  52. shrinkwraprs

    Auto-derive for Rust conversion traits -- make working with newtypes a breeze

    v0.3.0 35K #convert #newtype #conversion
  53. the-newtype

    The Newtype trait

    v0.1.1 210 #traits #newtype #wrap
  54. text_unit

    Newtypes for text offsets

    v0.1.10 1.2K #text #offset #newtype #u32
  55. phantom_newtype

    Lightweight newtypes without macros

    v0.2.0 #newtype #amount #instant
  56. aliri_braid_examples

    Examples demonstrating usage of the aliri_braid crate

    v0.4.0 #string-validation #string-normalization #newtype #validation #string
  57. kurtbuilds_sqlx_serde

    serde-compatible newtype wrapper for sqlx::postgres::PgRow

    v0.3.3 #serde #sqlx #postgresql #pg-row #newtype #serialization
  58. synonym

    Customizable derive macro to create newtypes. It peeks into the underlying type to choose which traits should be implemented.

    v0.1.6 1.8K #synonyms #newtype #alias
  59. Try searching with DuckDuckGo.

  60. newer-type-std

    Support defining newtype wrapper with inheriting trait implementations

    v0.2.0 #newtype #proc-macro #traits #attribute-macro
  61. newtype-enum

    Traits to convert between enums and their variant types

    v0.1.0 300 #newtype #enums #macro
  62. dynp

    Dynamic property system that emphasizes the use of the Newtype pattern

    v0.1.12 #properties #newtype #pattern #system #subscription #emphasizes
  63. nutype_macros

    The newtype with guarantees

    v0.6.2 96K #input-validation #validation #newtype #derive
  64. newtype

    Custom Derive to give tuple structs newtype semantics

    v0.2.1 #semantic #tuple #struct #give
  65. typed-fields

    A collection of macros that generate newtypes

    v0.6.0 550 #newtype #strong-typing #collection #macro #ulid #collection-of-macro #uuid #user-id
  66. inline_newtype

    newtype macro inspired by kotlin's inline class

    v0.1.1 #newtype #kotlin #inline #macro #class #home-dir
  67. bitcoin-units

    Basic Bitcoin numeric units such as amount

    v1.0.0-rc.4 153K #bitcoin #newtype #no-std
  68. ser_der

    Newtypes for the der crate to allow for serde de-/serialization

    v0.1.0-alpha.1 #asn-1 #serialization #newtype #der #serde
  69. hax-bounded-integers

    Newtypes for working with bounded integers with hax

    v0.3.6 #hax #integer #bounded-integer #newtype #formal-verification #high-assurance #cargo-subcommand #nix #nix-package #hacspec
  70. validated_newtype

    newtypes with checked predicates (primarily for serde)

    v0.1.1 #validation #newtype #serde
  71. newtyperef

    generate custom newtype reference types

    v0.4.0 120 #generate #reference #newtype
  72. usage

    A convenient alternative to the newtype pattern

    v1.4.0 #newtype #classification #alternative
  73. fmt_adapter

    newtype adaptors to and from any formatting trait

    v0.2.1 #newtype #adapter #displayfromdebug
  74. forwarding_gen

    Syntax processing for emulating OOP Inheritance in Rust by forwarding trait methods

    v0.1.0 #newtype #inheritance #oop #forwarding #composition #type-reflection
  75. trapper

    creating newtypes that don't require ownership of their internal value

    v2.0.0 #wrapper #newtype
  76. nnn-macros

    Generate your newtypes from a single macro

    v1.2.2 #validation #newtype #newtype-derive #derive #sanitization #invariant
  77. bip21

    Rust-idiomatic, compliant, flexible and performant BIP21 crate

    v0.5.0 13K #newtype #bitcoin #parser
  78. thisisplural

    #[derive(Plural)] for creating frictionless new types with any collection type like Vec or HashMap

    v0.7.0 #vec #hash-map #collection #newtype #derive
  79. ln-types

    Common types related to Lightning Network

    v0.2.1 430 #newtype #lightning
  80. deriving_via_macros

    DerivingViaMacros

    v2.2.0 800 #deriving-via #newtype #macro #pattern #display #transitive #dereferencing
  81. sqlx-pgrow-serde

    serde-compatible newtype wrapper for sqlx::postgres::PgRow

    v0.2.0 #pg-row #sqlx #serde-json #postgresql #newtype #serialize-with
  82. free-wrap

    Provide a easy way to define NewType Wrapper

    v0.1.0 #define #newtype
  83. g2gen

    A macro to create types that implement fast finite field arithmetic

    v1.2.2 138K #finite-fields #newtype #macro #galois
  84. ratio-def

    Define newtypes for unit ratios

    v0.3.1 #define #newtype #ratio #unit
  85. string_types-macro

    String newtypes

    v0.13.0 220 #string-type #macro #newtype #from-str #traits #upper-case-letter
  86. derive-id

    NewType ID's specifically tailored to integrate with Async GraphQL and Diesel

    v0.2.0 #graphql #diesel #integrate-with-async #derive #newtype
  87. invariant

    creating wrapper types that enforce invariants

    v0.0.2 #invariants #wrapper-type #newtype
  88. newty

    A newtype utility crate. Yet to be stabilized.

    v0.5.0 #stabilized #newtype
  89. rcstruct

    Generate transparent Struct(Rc<RefCell<Struct>>) newtypes

    v0.2.0 #struct #refcell #rc #newtype #generate
  90. nova-impl

    nova crate

    v0.5.4 #newtype #macro #partial-eq #debugging #implements-copy #hash
  91. newer-type-macro

    Support defining newtype wrapper with inheriting trait implementations

    v0.2.0 240 #newtype #proc-macro #traits #attribute-macro
  92. my-own-uuid

    A macro for generating Uuid Newtypes

    v0.1.2 #uuid #macro #newtype #own #generator
  93. rvs_derive

    A helper macros implementation for Value Classes in Rust

    v0.3.2 108K #newtype #value #class
  94. forward-traits

    A general trait-forwarding crate

    v3.1.0 650 #forwarding #delegation #newtype #traits
  95. the-newtype-core

    The Newtype trait core

    v0.1.1 500 #traits #newtype #my-trait #string
  96. from_tuple

    Derive structs from tuples

    v0.1.2 #tuple-struct #newtype #derive #find #counter
  97. bitcoin_uri

    Rust-idiomatic, compliant, flexible and performant bitcoin URI crate

    v0.1.0 1.6K #newtype #bitcoin #bip21 #parser
  98. typed_index_derive

    Custom derive to easily create newtype index types

    v0.1.4 #newtype #derive #index #vec #boilerplate #partial-eq #debugging #macro-use #hash
  99. deriving-via-impl

    DerivingViaImpl

    v2.2.0 650 #newtype #pattern #deriving #macro #dereferencing #automatic-derive #newtype-derive #transitive #spirit #haskell
  100. ambit-macros

    Helper macro for ambit crate

    v0.1.2 #ambit #macro-attributes #newtype #numbers #ranged