标签: json-native-library

如何修复Cargo文件中不匹配的依赖项以解决本机库冲突问题?

我正在使用Rocket设置Rust服务器,我正在尝试将它与JWT库一起使用.他们使用*ring*crate的不同版本,我在以下期间收到错误cargo build:

error: multiple packages link to native library `ring-asm`, but a native library can be linked only once

package `ring v0.12.1`
    ... which is depended on by `jsonwebtoken v4.0.1`
    ... which is depended on by `auther v0.1.0 (file:///home/drpytho/x/downloadble/auther)`
links to native library `ring-asm`

package `ring v0.11.0`
    ... which is depended on by `cookie v0.9.2`
    ... which is depended on by `rocket v0.3.6`
    ... which is depended on by `rocket_codegen v0.3.6`
    ... which is …
Run Code Online (Sandbox Code Playgroud)

dependencies rust rust-rocket json-native-library

2
推荐指数
1
解决办法
526
查看次数