< 返回版块

Eric 发表于 2018-04-28 09:44

我用diesel orm 编译出错: error: cannot find macro impl_Insertable! in this scope --> :1:1 | 1 | impl_Insertable ! { ( struct_name = NewBook , table_name = books , struct_ty = NewBook , lifetimes = ( ) , ) , fields = [ { field_name: title ,column_name: title , field_ty: String , field_kind: regular , inner_field_ty: String , } { field_name: author , column_name: author , field_ty: String , field_kind: regular , inner_field_ty: String , } { field_name: published , column_name: published , field_ty: i8 , field_kind: regular , inner_field_ty: i8 , } ] , }

diesel = { version = "1.2.2", features = ["mysql"] } diesel_codegen = { version = "0.16.0",features = ["mysql"] } dotenv = "0.11.0"

rustc 1.27.0-nightly (ac3c2288f 2018-04-18)

谁遇到过这个问题,麻烦指点下,谢了

评论区

写评论

还没有评论

1 共 0 条评论, 1 页