We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
照着说明运行到cargo run 出现报错,系统win10 64位, rust版本1.71 cargo -V cargo 1.71.0 (cfd3bbd8f 2023-06-08)
报错信息: error: cannot find attribute max_length in this scope --> src\models\schema.rs:196:11 | 196 | #[max_length = 32] | ^^^^^^^^^^
max_length
The text was updated successfully, but these errors were encountered:
因为你安装 diesel_cli 版本太高了,跟代码中的diesel不一致,所以就报错了 diesel-rs/diesel#3788
你现在可以clone最新代码,已经更新到diesel最新版本。 ea42fc8 8d45b42
Sorry, something went wrong.
No branches or pull requests
照着说明运行到cargo run 出现报错,系统win10 64位, rust版本1.71
cargo -V
cargo 1.71.0 (cfd3bbd8f 2023-06-08)
报错信息:
error: cannot find attribute
max_length
in this scope--> src\models\schema.rs:196:11
|
196 | #[max_length = 32]
| ^^^^^^^^^^
The text was updated successfully, but these errors were encountered: