Displaying 20 results from an estimated 2000 matches similar to: "[libnbd PATCH] RFC: Add bindings for Rust language"
2019 Feb 08
0
[PATCH nbdkit] Add support for writing plugins in Rust.
---
.gitignore | 3 +
README | 4 +-
TODO | 13 +++
configure.ac | 12 +++
docs/nbdkit-plugin.pod | 6 +-
docs/nbdkit.pod | 1 +
plugins/rust/Cargo.toml.in | 14 +++
plugins/rust/Makefile.am | 65 ++++++++++++
2019 Aug 31
1
[PATCH libnbd] Add bindings for Rust language
Still not working, but I took the latest patch and:
- rebased it against libnbd 1.0
- fixed it so it handles new args and cbargs
The generator now runs without warnings.
This patch doesn't handle optargs at all. In C these are converted to
non-optional parameter. Rust doesn't (AFAIK) have optional or
labelled arguments unfortunately.
Rich.
2019 Jul 23
0
Re: [PATCH] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
Rust bindings: Add create / close functions
Rust bindings: Add 4 bindings tests
Rust bindings: Add generator of structs
Rust bindings: Add generator of structs for optional arguments
Rust bindings: Add generator of function signatures
Rust bindings: Complete actions
Rust bindings: Fix memory management
Rust bindings: Add
2019 Jul 20
0
[PATCH] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
Rust bindings: Add create / close functions
Rust bindings: Add 4 bindings tests
Rust bindings: Add generator of structs
Rust bindings: Add generator of structs for optional arguments
Rust bindings: Add generator of function signatures
Rust bindings: Complete actions
Rust bindings: Fix memory management
Rust bindings: Add
2019 Jul 29
1
Re: [PATCH] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
This patch includes Actions and their tests. Missing:
- Events
- Examples
Rust bindings: Add create / close functions
Rust bindings: Add 4 bindings tests
Rust bindings: Add generator of structs
Rust bindings: Add generator of structs for optional arguments
Rust bindings: Add generator of function signatures
Rust bindings:
2019 Jul 17
2
[PATCH] Rust bindings: Add Rust bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
Rust bindings: Add create / close functions
Rust bindings: Add 4 bindings tests
Rust bindings: Add generator of structs
Rust bindings: Add generator of structs for optional arguments
Rust bindings: Add generator of function signatures
Rust bindings: Complete actions
Rust bindings: Fix memory management
Rust bindings: Add
2019 Jul 23
2
Re: [PATCH] Rust bindings: Add Rust bindings
I found a bug in the bindings, so I fixed it. I'm sorry about sending you
the patch many times.
Regards,
Hiroyuki
2019年7月20日(土) 16:23 Hiroyuki Katsura <hiroyuki.katsura.0513@gmail.com>:
> From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
>
> Rust bindings: Add create / close functions
>
> Rust bindings: Add 4 bindings tests
>
> Rust bindings: Add
2019 Aug 16
0
[nbdkit PATCH 2/2] rust: Add support for dynamic .thread_model
We do not promise API stability for non-C languages; this is an API
break as follows: instead of calling plugin_init with a static model,
you can now populate .thread_model in the Plugin struct, with a
default to Parallel. As in C, the model is still chosen at .load time
(at most, making it a function allows you to alter it based on
configuration), and not something that can change
2019 Aug 16
1
Re: [nbdkit PATCH 2/2] rust: Add support for dynamic .thread_model
On Fri, Aug 16, 2019 at 12:08:11PM -0500, Eric Blake wrote:
> We do not promise API stability for non-C languages; this is an API
> break as follows: instead of calling plugin_init with a static model,
> you can now populate .thread_model in the Plugin struct, with a
> default to Parallel. As in C, the model is still chosen at .load time
> (at most, making it a function allows you
2019 Jul 08
0
Re: [libnbd PATCH] RFC: Add bindings for Rust language
The patch seems OK in general.
On Sun, Jul 07, 2019 at 11:39:29PM +0200, Martin Kletzander wrote:
> The way the code is generated is also not nice, I wish there was
> more code actually written in some files and not generated by the
> generator (as much hard-coded static strings as possible), maybe
> similarly to the states.c, I don't know.
Can you expand on what you mean by
2019 Jun 27
0
[PATCH 9/9] Rust bindings: Complete bindings
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
configure.ac | 2 +
generator/bindtests.ml | 63 +++++
generator/main.ml | 2 +-
generator/rust.ml | 423 +++++++++++++++++-----------
generator/rust.mli | 5 +-
rust/.gitignore | 2 +
rust/Makefile.am
2019 Jun 27
0
Re: [PATCH 08/11] Rust bindings: Fix memory management and format the file
---
generator/rust.ml | 461 +++++++++++++++++++++++++++++++---------------
1 file changed, 311 insertions(+), 150 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index 79e16dfc6..ee65b1073 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -61,14 +61,16 @@ let generate_rust () =
pr "
use std::collections;
use std::convert;
+use std::convert::TryFrom;
use
2019 Jun 11
3
[nbdkit PATCH 0/2] Few rust plugin fixups/nitpicks
There are few more things that could be cleaned up related to the coding style
and other things, like explicitly specifying the abi style after "extern"
(i.e. `extern "C" fn` instead of `extern fn`), but since those are configurable
in rustfmt config, I'm not sure whether the config needs to be added or
complying with the defaults should be the priority. But this was just
2019 Aug 16
0
[nbdkit PATCH 1/2] rust: Implement can_cache
Implementing extents requires some coordination for the Rust code to
call back into libnbdkit; I'm not familiar with Rust enough to do
that. But with placeholders for those slots, implementing
can_cache/cache is trivial. This improves the situation mentioned in
commit 031fae85.
Signed-off-by: Eric Blake <eblake@redhat.com>
---
plugins/rust/nbdkit-rust-plugin.pod | 10 ++++++++++
2019 Jul 08
1
Re: [libnbd PATCH] RFC: Add bindings for Rust language
On Mon, Jul 08, 2019 at 10:36:30AM +0100, Richard W.M. Jones wrote:
>On Mon, Jul 08, 2019 at 11:20:44AM +0200, Martin Kletzander wrote:
>> On Mon, Jul 08, 2019 at 09:58:20AM +0100, Richard W.M. Jones wrote:
>> >The patch seems OK in general.
>> >
>>
>> The libnbd-sys part is actually complete. Well, except the build
>> script, but that one is not
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
generator/rust.ml | 283 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 259 insertions(+), 24 deletions(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index aa8b249ff..79e16dfc6 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -60,10 +60,11 @@ let generate_rust () =
pr "
use
2019 Jul 08
2
Re: [libnbd PATCH] RFC: Add bindings for Rust language
On Mon, Jul 08, 2019 at 09:58:20AM +0100, Richard W.M. Jones wrote:
>The patch seems OK in general.
>
The libnbd-sys part is actually complete. Well, except the build script, but
that one is not completely necessary. And the documentation.
The wrappers are missing quite a few things to be usable, but it should not be
*that* difficult once someone wants to play with it.
What bothers me a
2019 Aug 05
2
[PATCH 2/2] Rust bindings: Implement callback handlers
This patch includes:
- Event callback handlers
- Tests related to events(410-430)
src/bin/event.rs and src/bin/event_leak.rs
are the PoCs that Boxes related to callbacks are
not leaked.
---
rust/src/bin/.gitkeep | 0
rust/src/bin/event.rs | 29 ++++++
rust/src/bin/event_leak.rs | 30 ++++++
rust/src/error.rs | 6 ++
rust/src/event.rs
2019 Jun 27
0
[PATCH 2/9] Rust bindings: Add create / close functions
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com>
---
generator/rust.ml | 84 ++++++++++++++++++++++++++++++++++++++++++++++-
rust/Cargo.toml | 2 ++
2 files changed, 85 insertions(+), 1 deletion(-)
diff --git a/generator/rust.ml b/generator/rust.ml
index 83afdfe73..dbe9db010 100644
--- a/generator/rust.ml
+++ b/generator/rust.ml
@@ -31,4 +31,86 @@ open Events
let
2019 Jul 30
0
Re: [PATCH] Rust bindings: Implement Event features
On Tue, Jul 30, 2019 at 02:51:37PM +0900, Hiroyuki Katsura wrote:
>This patch includes:
>
>- Event callback handlers
>- Tests related to events(410-430)
>---
> generator/rust.ml | 38 ++++++-
> rust/src/base.rs | 24 +++--
> rust/src/error.rs | 8 +-
> rust/src/event.rs | 158