在Wasmer上启用确定性旗帜

发布于 2025-01-31 04:30:31 字数 503 浏览 0 评论 0 原文

我是Rust的新手,正在寻找一种方法,以启用Cranelift Projecter上通过Cargo.Toml所述的Rust Project上的确定性执行旗属性。

我希望该功能默认启用。 我尝试在cargo.toml上启用该功能,

wasmer-compiler-cranelift = { version = "2.0.0", default-features=false, features=["deterministic-execution"]}

但这似乎并不能像进行货物检查时一样可行,我收到一个错误,该错误指出编译器没有此功能。

I am new to Rust and am looking for a way to enable the deterministic execution flag property on the cranelift complier for my Rust project described here through Cargo.toml.
https://github.com/wasmerio/wasmer/pull/709/files/6ca581279811aee9d26d77ed2b7372a6153fe3bf#

I would like the feature to stay enabled by default.
I tried enabling the feature on Cargo.toml like this way

wasmer-compiler-cranelift = { version = "2.0.0", default-features=false, features=["deterministic-execution"]}

But this doesn't seem to work as on doing cargo check I get an error which states that the compiler does not have this feature.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文