From: Jacob Lifshay <programmerjake@gmail.com>
To: Libre-RISCV General Development <libre-riscv-dev@lists.libre-riscv.org>
Subject: Re: [libre-riscv-dev] gitlab-ci-archiver status
Date: Fri, 10 Apr 2020 10:15:53 -0700
Message-ID: <CAC2bXD5PPQsZUYYgOOr8d3opesKHr45hUQupEJvSPkHxZqoOUw@mail.gmail.com> (raw)
In-Reply-To: <CAPweEDwUfNu_WSntQMsRR_3ExZ9e6BHv+TZi2Yi2cnkdZn_tQA@mail.gmail.com>
On Fri, Apr 10, 2020, 05:09 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
wrote:
> On Friday, April 10, 2020, Jacob Lifshay <programmerjake@gmail.com> wrote:
> > I was planning on using the program invocation functionality in the Rust
> > standard library:
> > https://doc.rust-lang.org/std/process/struct.Command.html
>
>
> yeah that looks overkill (expect capability builtin) however the interface
> looks pretty clean and the output() function has both stdout and stderr
> capturable.
>
The idea is to expose all the commonly used functionality in a
cross-platform manner, there are extension traits that add additional
functionality for Unix or Windows.
Unix extension trait:
https://doc.rust-lang.org/std/os/unix/process/trait.CommandExt.html
>
> also the command return result (exit code) is available, which is important
> to use the convention "0" as success and all nonzero values to be err
> logged.
>
> one thing is not obvious, if it is sync or async.
>
Depends on which functions you use if they are blocking, though it is not
async in the sense of Futures.
Jacob
_______________________________________________
libre-riscv-dev mailing list
libre-riscv-dev@lists.libre-riscv.org
http://lists.libre-riscv.org/mailman/listinfo/libre-riscv-dev
prev parent reply index
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-09 19:21 [libre-riscv-dev] more build failures Jacob Lifshay
2020-04-09 19:31 ` Luke Kenneth Casson Leighton
2020-04-09 20:03 ` [libre-riscv-dev] gitlab-ci-archiver status Jacob Lifshay
2020-04-09 20:24 ` Luke Kenneth Casson Leighton
2020-04-09 20:31 ` Jacob Lifshay
2020-04-09 21:48 ` Luke Kenneth Casson Leighton
2020-04-09 21:54 ` Jacob Lifshay
2020-04-09 23:19 ` Luke Kenneth Casson Leighton
2020-04-10 1:56 ` Luke Kenneth Casson Leighton
2020-04-10 2:27 ` Jacob Lifshay
2020-04-10 12:08 ` Luke Kenneth Casson Leighton
2020-04-10 17:15 ` Jacob Lifshay [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAC2bXD5PPQsZUYYgOOr8d3opesKHr45hUQupEJvSPkHxZqoOUw@mail.gmail.com \
--to=programmerjake@gmail.com \
--cc=libre-riscv-dev@lists.libre-riscv.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Libre RISC-V Mailing list Archives (accessible via public-inbox)
Archives are clonable: git clone --mirror https://inbox.libre-soc.org/libre-riscv-dev
Example config snippet for mirrors
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git