From: Waldemar Kozaczuk <[email protected]>
Committer: Waldemar Kozaczuk <[email protected]>
Branch: master
Fix rust examples to build as crate-type=cdylib
This patch slighly changes rust examples to be built
as shared library objects that can be used from other
programming languages. Please see
https://doc.rust-lang.org/reference/linkage.html
for details.
Signed-off-by: Waldemar Kozaczuk <[email protected]>
---
diff --git a/rust-example/Cargo.toml b/rust-example/Cargo.toml
--- a/rust-example/Cargo.toml
+++ b/rust-example/Cargo.toml
@@ -7,4 +7,4 @@ authors = ["Waldemar Kozaczuk <[email protected]>"]
rustc_version_runtime = "0.1.*"
[lib]
-crate-type = ["dylib"]
+crate-type = ["cdylib"]
diff --git a/rust-httpserver/.gitignore b/rust-httpserver/.gitignore
--- a/rust-httpserver/.gitignore
+++ b/rust-httpserver/.gitignore
@@ -0,0 +1,2 @@
+target
+usr.manifest
diff --git a/rust-httpserver/Cargo.toml b/rust-httpserver/Cargo.toml
--- a/rust-httpserver/Cargo.toml
+++ b/rust-httpserver/Cargo.toml
@@ -8,4 +8,4 @@ futures = "0.1.14"
hyper = "0.11.2"
[lib]
-crate-type = ["dylib"]
+crate-type = ["cdylib"]
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.