Trying to find a crate that allows you to constrain the value of arguments in various ways via a proc macro

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • flux

    Refinement Types for Rust (by flux-rs)

  • This was it, I was looking for Flux which implemented Liquid types in rust, thank you!

  • prusti-dev

    A static verifier for Rust, based on the Viper verification infrastructure.

  • This is called refinement types and prusti might be the project you saw.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts