This is stars and forks stats for /greyblake/nutype repository. As of 28 Apr, 2024 this repository has 845 stars and 11 forks.
The newtype with guarantees. Philosophy Nutype embraces the simple idea: the type system can be leveraged to track the fact that something was done, so there is no need to do it again. If a piece of data was once sanitized and validated we can rely on the types instead of sanitizing and validating again and again when we're in doubt. Quick start use nutype::nutype; #[nutype( sanitize(trim, lowercase) validate(not_empty, max_len = 20) )] pub struct Username(String); Now we can create usernames: assert_eq!( ...
The newtype with guarantees. Philosophy Nutype embraces the simple idea: the type system can be leveraged to track the fact that something was done, so there is no need to do it again. If a piece of data was once sanitized and validated we can rely on the types instead of sanitizing and validating again and again when we're in doubt. Quick start use nutype::nutype; #[nutype( sanitize(trim, lowercase) validate(not_empty, max_len = 20) )] pub struct Username(String); Now we can create usernames: assert_eq!( ...
repo | techs | stars | weekly | forks | weekly |
---|---|---|---|---|---|
AlexAltea/milli-py | RustPython | 118 | 0 | 2 | 0 |
shramee/starklings-cairo1 | CairoRust | 312 | +5 | 145 | +6 |
Rakesh9100/Click-The-Edible-Game | HTMLCSSJavaScript | 19 | +1 | 36 | 0 |
odis-labs/helix | OCamlReasonHTML | 42 | 0 | 0 | 0 |
tandasat/Hypervisor-101-in-Rust | RustAssemblyPython | 830 | 0 | 50 | 0 |
Privoce/vocechat-server-rust | RustHTMLShell | 222 | +2 | 46 | +1 |
paritytech/cumulus | RustShellHTML | 625 | 0 | 398 | 0 |
byrd-polar/fluid-earth | JavaScriptSvelteGLSL | 93 | 0 | 16 | 0 |
johnlui/PPHC | Rust | 2.8k | 0 | 251 | 0 |
OWASP/API-Security | Dockerfile | 1.8k | 0 | 364 | 0 |