search for: toml

Displaying 20 results from an estimated 90 matches for "toml".

Did you mean: tom
2020 Jun 17
2
Re: nbdkit rust plugin: copyright notices, Cargo workspace, and macro hygiene
...t.com> wrote: > I pushed 2 & 3, thanks. > > But ... > > > From 9fa3e443467e3c06761ec54241327e8daf8701ca Mon Sep 17 00:00:00 2001 > > From: Alan Somers <asomers@gmail.com> > > Date: Mon, 15 Jun 2020 16:59:53 -0600 > > Subject: [PATCH 1/3] Add a Cargo.toml file to the top-level directory > > > > This is necessary for other Rust projects to depend on unrelesed > > versions of the nbdkit crate. > > --- > > Cargo.toml | 2 ++ > > 1 file changed, 2 insertions(+) > > create mode 100644 Cargo.toml > > >...
2020 Jun 16
4
nbdkit rust plugin: copyright notices, Cargo workspace, and macro hygiene
2020 Jun 17
0
Re: nbdkit rust plugin: copyright notices, Cargo workspace, and macro hygiene
...amp; 3, thanks. > > > > But ... > > > > > From 9fa3e443467e3c06761ec54241327e8daf8701ca Mon Sep 17 00:00:00 2001 > > > From: Alan Somers <asomers@gmail.com> > > > Date: Mon, 15 Jun 2020 16:59:53 -0600 > > > Subject: [PATCH 1/3] Add a Cargo.toml file to the top-level directory > > > > > > This is necessary for other Rust projects to depend on unrelesed > > > versions of the nbdkit crate. > > > --- > > > Cargo.toml | 2 ++ > > > 1 file changed, 2 insertions(+) > > > create mod...
2019 Jul 06
3
Re: [PATCH] Add Rust bindings
On Fri, Jul 05, 2019 at 08:37:20AM +0100, Richard W.M. Jones wrote: >On Fri, Jul 05, 2019 at 01:28:12PM +0900, Hiroyuki Katsura wrote: >> > Have you decided whether we need to commit the generated files >> > (Cargo.toml, Cargo.lock)? It looks like in this series those files >> > are still included and not added to .gitignore. >> >> I'm sorry I forgot adding Cargo.lock to .gitignore. I'll add it to >> .gitignore. However, I think Cargo.toml should be staged. This is because >&...
2019 Jul 05
3
Re: [PATCH] Add Rust bindings
> Have you decided whether we need to commit the generated files > (Cargo.toml, Cargo.lock)? It looks like in this series those files > are still included and not added to .gitignore. I'm sorry I forgot adding Cargo.lock to .gitignore. I'll add it to .gitignore. However, I think Cargo.toml should be staged. This is because this is a file managed by hands. It cont...
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.
2023 Mar 28
3
[nbdkit PATCH 0/2] various
...en (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, 9 insertions(+), 1 deletion(-) base-commit: 45b72f5bd8fc1b475fa130d06c86cd877bf595d5
2019 Aug 11
0
[PATCH 2/2] Rust bindings: Make it able to publish this crate
I added - data required to publish this crate to `crates.io`. - README.md which contains the details of how to publish this crate. --- rust/Cargo.toml.in | 5 ++++- rust/README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 rust/README.md diff --git a/rust/Cargo.toml.in b/rust/Cargo.toml.in index b61e3ec7f..d217a530e 100644 --- a/rust/Cargo.toml.in +++ b/rust/Cargo.to...
2020 Jun 17
0
Re: nbdkit rust plugin: copyright notices, Cargo workspace, and macro hygiene
I pushed 2 & 3, thanks. But ... > From 9fa3e443467e3c06761ec54241327e8daf8701ca Mon Sep 17 00:00:00 2001 > From: Alan Somers <asomers@gmail.com> > Date: Mon, 15 Jun 2020 16:59:53 -0600 > Subject: [PATCH 1/3] Add a Cargo.toml file to the top-level directory > > This is necessary for other Rust projects to depend on unrelesed > versions of the nbdkit crate. > --- > Cargo.toml | 2 ++ > 1 file changed, 2 insertions(+) > create mode 100644 Cargo.toml > > diff --git a/Cargo.toml b/Cargo.toml &...
2019 Jul 07
2
[libnbd PATCH] RFC: Add bindings for Rust language
...Kletzander <mkletzan@redhat.com> --- .gitignore | 5 + Makefile.am | 1 + configure.ac | 16 ++ generator/generator | 301 ++++++++++++++++++++++++++++++ run.in | 9 + rust/Cargo.toml | 6 + rust/Makefile.am | 42 +++++ rust/libnbd-sys/Cargo.toml.in | 10 + rust/libnbd-sys/build.rs | 9 + rust/libnbd-sys/src/.gitkeep | 0 rust/libnbd/Cargo.toml.in | 9 + rust/libnbd/examples/hello-nbd.rs | 7 + rust/libnbd/...
2023 Mar 28
1
[nbdkit PATCH 2/2] plugins/rust: restrict predicates-{tree, core} to {1.0.7, 1.0.5}
...(Side commentary: when such things can happen via a *patchlevel* upgrade, that makes a total mockery of "semantic versioning" <https://en.wikipedia.org/wiki/Software_versioning#Semantic_versioning>.) Signed-off-by: Laszlo Ersek <lersek 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 = &quot...
2019 Jun 27
2
Re: [PATCH 3/9] Rust bindings: Add 4 bindings tests
...6:04PM +0900, Hiroyuki Katsura wrote: > From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> > > --- > generator/rust.ml | 13 ++++++++--- > run.in | 9 ++++++++ > rust/Cargo.lock | 6 +++++ > rust/Cargo.toml | 4 +--- > rust/tests/010_load.rs | 24 +++++++++++++++++++ > rust/tests/020_create.rs | 24 +++++++++++++++++++ > rust/tests/030_create_flags.rs | 30 ++++++++++++++++++++++++ > rust/tests/040_create_multiple.rs | 38 ++++++++++++++++++++++++++...
2019 Jun 27
1
Re: [PATCH 3/9] Rust bindings: Add 4 bindings tests
On Thu, Jun 27, 2019 at 06:27:05PM +0900, Hiroyuki Katsura wrote: > > I guess this is a stray debug message? > > Yes. I'm sorry... > > > we did *not* check them into git. > > Really? Does it mean that every time you build the library, Cargo.toml is > generated? That's how it has worked in nbdkit. Whether it's right or not I don't know. Normally we wouldn't check generated files into git. > > The actual test parts of this patch are fine, but you need to spend a > > bit of time with ‘git rebase -i’ to move...
2018 Apr 04
2
glusterd2 problem
Hello! Installed packages from SIG on centos7 , at first start it works, but after restart- not: ?glusterd2 --config /etc/glusterd2/glusterd2.toml DEBU[2018-04-04 09:28:16.945267] Starting GlusterD???????????????????????????? pid=221581 source="[main.go:55:main.main]" version=v4.0.0-0 INFO[2018-04-04 09:28:16.945824] loaded configuration from file??????????????? file=/etc/glusterd2/glusterd2.toml source="[config.go:163:main...
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 generate_rust () = - generate_header CStyle LGPLv2plus; \ No new...
2023 Aug 30
2
[libnbd PATCH 0/2] (Attempt to) fix Rust on BSD-based builds
...es, at least when run on my fork): https://gitlab.com/ebblake/libnbd/-/jobs/4985192286 However, I'd really like Tage's review on patch 2 to see if my Rust makes sense. Eric Blake (2): maint: Favor 4-space indent in .rs files rust: Use mio::poll instead of requiring epoll rust/Cargo.toml | 2 +- rust/src/async_handle.rs | 46 +++++++++++++++++++++++++--------------- .editorconfig | 4 ++++ 3 files changed, 34 insertions(+), 18 deletions(-) -- 2.41.0
2019 Jun 27
0
Re: [PATCH 3/9] Rust bindings: Add 4 bindings tests
> I guess this is a stray debug message? Yes. I'm sorry... > we did *not* check them into git. Really? Does it mean that every time you build the library, Cargo.toml is generated? > The actual test parts of this patch are fine, but you need to spend a > bit of time with ‘git rebase -i’ to move parts of patch 3 into patch 2. Does this mean that the followings should be moved to patch 2? generator/rust.ml | 13 ++++++++--- run.in...
2018 Apr 06
0
glusterd2 problem
...m/gluster/glusterd2/wiki/Recovery On Wed, Apr 4, 2018 at 11:08 AM, Dmitry Melekhov <dm at belkam.com> wrote: > Hello! > > Installed packages from SIG on centos7 , > > at first start it works, but after restart- not: > > > glusterd2 --config /etc/glusterd2/glusterd2.toml > DEBU[2018-04-04 09:28:16.945267] Starting GlusterD > pid=221581 source="[main.go:55:main.main]" version=v4.0.0-0 > INFO[2018-04-04 09:28:16.945824] loaded configuration from > file file=/etc/glusterd2/glusterd2.toml > source="[config.go:163:main.initCo...
2019 Jun 11
3
[nbdkit PATCH 0/2] Few rust plugin fixups/nitpicks
...e config needs to be added or complying with the defaults should be the priority. But this was just something I stumbled upon when I saw some warnings during build, nothing more. Martin Kletzander (2): rust: Do not use deprecated integer types rust: Remove libc dependency plugins/rust/Cargo.toml.in | 1 - plugins/rust/examples/ramdisk.rs | 15 ++++++------- plugins/rust/src/lib.rs | 37 +++++++++++++++----------------- 3 files changed, 24 insertions(+), 29 deletions(-) -- 2.21.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