From 3f2b0d4115c9b3a12cb48aa84ddae04069440b19 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Tue, 23 Jul 2019 02:11:05 +0100 Subject: [PATCH] Mention that projects should be cdylib in the README --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 86708b7..a9889b7 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,12 @@ Add the dependency, as usual: ewasm-api = "0.10" ``` +Make sure the project is a library of `cdylib` type: +```toml +[lib] +crate-type = ["cdylib"] +``` + In your project, include the prelude: ```rust use ewasm_api::prelude::*;