Is it possible to compile one specific library with the nightly compiler and link it to a project that is compiled on stable?

旧巷老猫 提交于 2021-01-28 14:17:05

问题


I am working on a project where a dependency requires a specific nightly feature. I need to use this lib, but I am afraid that if I compile the project with nightly, I could depend on nother libraries that include another unstable feature dependency and I wouldn't be aware of that.

Is it possible to compile the library that I need using nightly (while set the nightly version to version that already merged to the release branch) to some kind of "lib.a" file, and compile the whole project on stable release while linking to "lib.a"?


回答1:


No, you cannot do this.

See also:

  • Is there any way to get unstable features on the compiler versions in stable or beta?
  • Is there a way to use unstable modules from Rust stable?


来源:https://stackoverflow.com/questions/62327338/is-it-possible-to-compile-one-specific-library-with-the-nightly-compiler-and-lin

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!