Displaying 5 results from an estimated 5 matches for "lazy_stat".
Did you mean:
lazy_static
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 Feb 08
0
[PATCH nbdkit] Add support for writing plugins in Rust.
...ndex 0000000..f7a9f41
--- /dev/null
+++ b/plugins/rust/Cargo.toml.in
@@ -0,0 +1,14 @@
+[package]
+name = "nbdkit"
+version = "@VERSION@"
+authors = ["Richard W.M. Jones <rjones@redhat.com>"]
+edition = "2018"
+
+[dependencies]
+libc = "0.2"
+# lazy_static is used by the example.
+lazy_static = "1.2.0"
+
+[[example]]
+name = "ramdisk"
+crate-type = ["cdylib"]
diff --git a/plugins/rust/Makefile.am b/plugins/rust/Makefile.am
new file mode 100644
index 0000000..ccdb000
--- /dev/null
+++ b/plugins/rust/Makefile.am
@@ -0,0...
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
2023 Mar 28
1
[nbdkit PATCH 2/2] plugins/rust: restrict predicates-{tree, core} to {1.0.7, 1.0.5}
...sek at redhat.com>
---
plugins/rust/Cargo.toml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/rust/Cargo.toml b/plugins/rust/Cargo.toml
index 45d8a755e6e3..64ed193a0008 100644
--- a/plugins/rust/Cargo.toml
+++ b/plugins/rust/Cargo.toml
@@ -29,6 +29,8 @@ errno = "0.2.5"
lazy_static = "1.2.0"
memoffset = "0.6.3"
mockall = "0.11.0"
+predicates-core = "=1.0.5"
+predicates-tree = "=1.0.7"
[[example]]
name = "ramdisk"
2023 Mar 28
3
[nbdkit PATCH 0/2] various
I originally meant to post only the "vector.h" patch, but then
(independently) nbdkit wouldn't build. Hence the other (rust plugin)
patch.
Laszlo
Laszlo Ersek (2):
common/utils: document empty_vector compound literal assignment
plugins/rust: restrict predicates-{tree,core} to {1.0.7,1.0.5}
common/utils/vector.h | 8 +++++++-
plugins/rust/Cargo.toml | 2 ++
2 files changed,