Skip to content
New issue

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

运行报错 #1

Closed
zhanghaidi opened this issue Sep 23, 2023 · 1 comment
Closed

运行报错 #1

zhanghaidi opened this issue Sep 23, 2023 · 1 comment

Comments

@zhanghaidi
Copy link

image

照着说明运行到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]
| ^^^^^^^^^^

@maiqingqiang
Copy link
Owner

因为你安装 diesel_cli 版本太高了,跟代码中的diesel不一致,所以就报错了
diesel-rs/diesel#3788

你现在可以clone最新代码,已经更新到diesel最新版本。
ea42fc8
8d45b42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants