Displaying 3 results from an estimated 3 matches for "ocaml_link_shared".
2019 Feb 08
1
Re: [PATCH nbdkit] Add support for writing plugins in Rust.
.../configure.ac
> @@ -545,6 +545,15 @@ AS_IF([test "x$OCAMLOPT" != "xno" && test "x$enable_ocaml" != "xno"],[
> AM_CONDITIONAL([HAVE_OCAML],[test "x$OCAMLOPT" != "xno" &&
> test "x$ocaml_link_shared" = "xyes"])
>
> +dnl For developing plugins in Rust, optional.
> +AC_CHECK_PROG([CARGO],[cargo],[cargo],[no])
> +AC_ARG_ENABLE([rust],
> + [AS_HELP_STRING([--disable-rust], [disable Rust plugin])],
> + [],
> + [enable_rust=yes])
> +AM_CONDITIONAL([H...
2019 Feb 08
3
[PATCH nbdkit] Add support for writing plugins in Rust.
This adds very rough support for writing nbdkit plugins in Rust. This
is not very idiomatic -- essentially we're handling the direct C calls
from nbdkit in Rust. We have to use ‘unsafe’ in a few places because
there's no way to tell the Rust code that nbdkit satisfies guarantees
(eg. around thread safety, always returning leaked pointers back to
the close function, always doing bounds
2019 Feb 08
0
[PATCH nbdkit] Add support for writing plugins in Rust.
...figure.ac
+++ b/configure.ac
@@ -545,6 +545,15 @@ AS_IF([test "x$OCAMLOPT" != "xno" && test "x$enable_ocaml" != "xno"],[
AM_CONDITIONAL([HAVE_OCAML],[test "x$OCAMLOPT" != "xno" &&
test "x$ocaml_link_shared" = "xyes"])
+dnl For developing plugins in Rust, optional.
+AC_CHECK_PROG([CARGO],[cargo],[cargo],[no])
+AC_ARG_ENABLE([rust],
+ [AS_HELP_STRING([--disable-rust], [disable Rust plugin])],
+ [],
+ [enable_rust=yes])
+AM_CONDITIONAL([HAVE_RUST],
+ [test "x...