Rust library for handling form behavior in web applications, based on Python wtforms.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
michael 1046fe2816
5 months ago
src updates 5 months ago
tests progress 5 months ago
wtforms_derive updates 5 months ago
.gitignore initial 1 year ago
Cargo.toml progress 5 months ago
LICENSE add some docs 5 months ago ... 5 months ago


NOTE it doesn’t work yet

As the name implies, it’s heavily inspired by the Python library wtforms.


#[derive(Form, Serialize, Deserialize)]
struct RegisterForm {
    pub email: Email,
    #[validators(required, length(5, 10))]
    pub username: String,
    pub password: Password,
    pub confirm_password: Password,

Then you can RegisterForm::as_html() to generate HTML code for it.

You can also validate a RegisterForm that’s been deserialized from, for example Form<RegisterForm> in some web framework.


Customization not supported yet.


Author: Michael Zhang

License: MIT