如何传递' Cflags涉及货物中的依赖性?
是否有一些魔术可以添加到cargo.toml
的依赖项条目中,以指定环境变量(例如,cflags
)或在构建依赖关系时要使用的其他上下文(和唯一的这个依赖性)?
背景:这是专门针对依赖板箱是基于C的API/软件包SQLITE的包装器/构建器(即,rusqlite
)。 AS-IS板条将一些论点传递给了不支持的目标C编译器。
Is there some magic that can be added to a dependency entry of Cargo.toml
to specify environment variables (e.g., CFLAGS
) or other context to be used when building the dependency (and only this dependency)?
Background: this is specifically for a case where a dependency crate is a wrapper/builder for a C-based API/package sqlite (i.e., rusqlite
). The as-is crate passes some arguments to the target C compiler that aren't supported.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论