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 Zhang 1046fe2816
1 week ago
src updates 1 week ago
tests progress 2 weeks ago
wtforms_derive updates 1 week ago
.gitignore initial 7 months ago
Cargo.toml progress 2 weeks ago
LICENSE add some docs 2 weeks ago ... 2 weeks 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