~matthiasbeyer/imag

ref: 48ba74e3e11b72d032494ad62fc03b1066fa8d9a imag/lib/core/libimagrt/src d---------
Merge branch 'fix-clippy'

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Replace redundant closure with function pointer

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'update-deps' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
handlebars: 2 -> 3

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Clippy Fix: let_underscore_lock

Use _variable instead of _ as a variable name for lock.

Expl.: https://rust-lang.github.io/rust-clippy/master/index.html#let_underscore_lock

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'blackhole-stdout-when-piping' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: Return actual length of buffer

The function has to return the number of bytes in the buffer, so return
the length of the buffer here.
Still, the contents are ignored and not written to any destination.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Add blackhole as default cli option

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix clippy warning: next() instead of nth(0)

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'replace-failure-with-anyhow'

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Replace failure with anyhow in complete codebase

This patch was scripted with

    sed -i 's/use failure::Error/use anyhow::Error/' $(rg "use failure::Error" -l)
    sed -i 's/use failure::Fallible as /use anyhow::/' $(rg "use failure::Fallible" -l)
    sed -i 's/failure/anyhow/' $(rg "failure *=" -l)
    sed -i 's/format_err!/anyhow!/' $(rg "format_err!" -l)
    sed -i 's/use failure::ResultExt/use anyhow::Context/' $(rg "use failure::ResultExt" -l)
    sed -i 's/err_msg/anyhow!/' $(rg "use failure::err_msg" -l)
    sed -i 's/^anyhow\ *=.*$/anyhow = "1"/' $(rg "anyhow * =" -l)
    sed -i 's/^anyhow_derive.*//' $(rg "anyhow_derive" -l)
    sed -i 's/extern crate failure/extern crate anyhow/' $(rg "extern crate failure" -l)
    sed -i 's/.*extern crate anyhow_derive.*//' $(rg "anyhow_derive" -l)

Some manual changes were added as well, so this patch was not completely
scripted, but mostly.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'rt-reporting-iterator' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Add iterator extension for reporting from iterator

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'runtime-more-io-control' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Allow more fine-granular control over IO behaviour in runtime

This patch removes the --ignore-ids option and adds --pipe-input / -I and
--pipe-output / -O instead.

The behaviour of -IO is the same as --ignore-ids was before, but this
change gives the user the option to enable only one of both (input or
output, or both).

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'logger/remove-modules' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Remove module-based logging

This patch removes the module-based logging mechanism.
This mechanism was introduced so that the configuration file is able to
define which imag module logs what. This was a fine-granular setting,
but most users won't actually touch it. It was more of a
debugging-thing for developers. I rarely used it during development and
it only introduced more headaches. It also was not updated (as in the
configuration file missed a few modules, others where not removed
despite the module did not exist anymore).

All in all, it was rather unmaintained and just "too much".

Thus, remove this thing completely. Developers know how to use grep.

This also automatically fixes bugs where `imag --debug command` did not
output any debugging log, but was expected to.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: If global loglevel allowes record to be logged, log it

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Update copyright years to 2015-2020

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Fix: Remove Box::leak() call in runtime application abstraction

This patch removes the leakage in the runtime application abstraction.
Also fix formatting.

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Merge branch 'replace-map-dbg-err' into master

Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Next