未验证 提交 19230447 编写于 作者: H hyd-dev

Add a `cdylib`-only crate test

上级 51c6f51c
......@@ -11,6 +11,7 @@ name = "cargo-miri-test"
version = "0.1.0"
dependencies = [
"byteorder",
"cdylib",
"issue_1567",
"issue_1691",
"issue_1705",
......@@ -18,6 +19,13 @@ dependencies = [
"serde_derive",
]
[[package]]
name = "cdylib"
version = "0.1.0"
dependencies = [
"byteorder",
]
[[package]]
name = "cfg-if"
version = "0.1.10"
......
......@@ -9,6 +9,7 @@ edition = "2018"
[dependencies]
byteorder = "1.0"
cdylib = { path = "cdylib" }
issue_1567 = { path = "issue-1567" }
issue_1691 = { path = "issue-1691" }
issue_1705 = { path = "issue-1705" }
......
[package]
name = "cdylib"
version = "0.1.0"
authors = ["Miri Team"]
edition = "2018"
[lib]
# cargo-miri used to handle `cdylib` crate-type specially (https://github.com/rust-lang/miri/pull/1577).
crate-type = ["cdylib"]
[dependencies]
byteorder = "1.0"
use byteorder::{BigEndian, ByteOrder};
#[no_mangle]
extern "C" fn use_the_dependency() {
let _n = <BigEndian as ByteOrder>::read_u64(&[1,2,3,4,5,6,7,8]);
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册