Skip to content

Commit

Permalink
fix(runtime-c-api) Provide a link target.
Browse files Browse the repository at this point in the history
When compiling `wasmer-runtime-c-api` as a dependency of another
crate, `rustc` emits this warning:

```
warning: The package `wasmer_runtime_c_api` provides no linkable
target. The compiler might raise an error while compiling
`foo`. Consider adding 'dylib' or 'rlib' to key `crate-type` in
`wasmer_runtime_c_api`'s Cargo.toml. This warning might turn into a
hard error in the future.
```

To solve this issue, the `rlib` type has been added to the
`crate-type` list.
  • Loading branch information
Hywan committed Mar 6, 2019
1 parent 0f74133 commit 76caebe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime-c-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ wasmer-runtime-core = { path = "../runtime-core", version = "0.2.1" }
libc = "0.2"

[lib]
crate-type = ["cdylib"]
crate-type = ["cdylib", "rlib"]

[build-dependencies]
cbindgen = "0.8"

0 comments on commit 76caebe

Please sign in to comment.