dependabot[bot]
775dd832a5
build(deps): bump cxx-build from 1.0.41 to 1.0.42
...
Bumps [cxx-build](https://github.com/dtolnay/cxx ) from 1.0.41 to 1.0.42.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.41...1.0.42 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-05 06:57:50 +00:00
dependabot[bot]
857cb973ce
build(deps): bump libc from 0.2.90 to 0.2.92
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.90 to 0.2.92.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.90...0.2.92 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-01 11:30:39 +00:00
dependabot[bot]
89f6572f69
build(deps): bump serde from 1.0.124 to 1.0.125
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.124 to 1.0.125.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.124...v1.0.125 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-01 09:36:23 +00:00
dependabot[bot]
70f934a6ad
build(deps): bump system-deps from 3.1.0 to 3.1.1
...
Bumps [system-deps](https://github.com/gdesmott/system-deps ) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/gdesmott/system-deps/releases )
- [Commits](https://github.com/gdesmott/system-deps/compare/v3.1.0...v3.1.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-31 20:44:51 +00:00
Jonathan Lebon
0d12cb5548
Merge pull request #2702 from coreos/dependabot/cargo/cxx-1.0.40
2021-03-31 16:43:29 -04:00
Jonathan Lebon
e54d376055
build(deps): bump cxx and cxx-build from 1.0.33 to 1.0.41
...
The 1.0.41 includes a fix we need:
https://github.com/dtolnay/cxx/issues/799
2021-03-30 20:25:22 -04:00
dependabot[bot]
77ce1064a3
build(deps): bump rust-ini from 0.16.1 to 0.17.0
...
Bumps [rust-ini](https://github.com/zonyitoo/rust-ini ) from 0.16.1 to 0.17.0.
- [Release notes](https://github.com/zonyitoo/rust-ini/releases )
- [Commits](https://github.com/zonyitoo/rust-ini/compare/v0.16.1...v0.17.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 12:39:33 +00:00
dependabot[bot]
cc8adac055
build(deps): bump cxx from 1.0.33 to 1.0.40
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.33 to 1.0.40.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.33...1.0.40 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-29 06:46:10 +00:00
Colin Walters
15842529dd
rust: Use indoc crate
...
I came across this crate the other day randomly - yet *another*
dtolnay dependency. We have a bunch of these inline multi-line
strings that are just much nicer to read this way.
I only converted this one use, if this merges I'll do more
over time.
2021-03-27 19:51:59 +00:00
dependabot[bot]
c566e51c4a
build(deps): bump cxx from 1.0.32 to 1.0.33
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.32...1.0.33 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-22 15:12:01 -04:00
dependabot[bot]
03ab3712ff
build(deps): bump system-deps from 3.0.0 to 3.1.0
...
Bumps [system-deps](https://github.com/gdesmott/system-deps ) from 3.0.0 to 3.1.0.
- [Release notes](https://github.com/gdesmott/system-deps/releases )
- [Commits](https://github.com/gdesmott/system-deps/compare/v3.0.0...v3.1.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-22 14:06:13 -04:00
dependabot[bot]
e15dba0fd8
build(deps): bump cxx-build from 1.0.32 to 1.0.33
...
Bumps [cxx-build](https://github.com/dtolnay/cxx ) from 1.0.32 to 1.0.33.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.32...1.0.33 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-22 12:58:12 -04:00
dependabot[bot]
d17893187c
build(deps): bump libc from 0.2.88 to 0.2.90
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.88 to 0.2.90.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.88...0.2.90 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-22 15:42:04 +00:00
Colin Walters
25159e1658
Cargo.lock: Bump openat
...
To pull in https://github.com/tailhook/openat/pull/36
so we can update libc.
2021-03-22 13:44:27 +00:00
Colin Walters
da9b64cd44
rust: Factor out an ostree-host crate
...
In preparation for publishing this to crates.io and moving
into e.g. github.com/ostreedev/ostree-host-rs
So that ostree upstream can move forward with more Rust on the
"top level".
2021-03-19 13:44:01 -04:00
Luca Bruno
da33222b95
Merge pull request #2663 from coreos/dependabot/cargo/curl-0.4.35
...
build(deps): bump curl from 0.4.34 to 0.4.35
2021-03-15 09:09:25 +00:00
dependabot[bot]
8d36bebbfc
build(deps): bump curl from 0.4.34 to 0.4.35
...
Bumps [curl](https://github.com/alexcrichton/curl-rust ) from 0.4.34 to 0.4.35.
- [Release notes](https://github.com/alexcrichton/curl-rust/releases )
- [Commits](https://github.com/alexcrichton/curl-rust/compare/curl-sys-0.4.34...curl-sys-0.4.35 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 06:51:50 +00:00
dependabot[bot]
87adbc1627
build(deps): bump paste from 1.0.4 to 1.0.5
...
Bumps [paste](https://github.com/dtolnay/paste ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/paste/releases )
- [Commits](https://github.com/dtolnay/paste/compare/1.0.4...1.0.5 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-15 06:51:41 +00:00
Colin Walters
95ff12b913
rust: Add and use fn-error-context
...
Same motivation as https://github.com/coreos/bootupd/pull/163
Effectively what we're doing here is creating a human-readable subset
of the stack trace. This is nicer than having the calling functions
add with_context() because it's more verbose (gets duplicative at
each call site), easy to forget, etc.
2021-03-10 19:56:48 +01:00
dependabot[bot]
b02987a22e
build(deps): bump libc from 0.2.86 to 0.2.88
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.86 to 0.2.88.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.86...0.2.88 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 22:07:49 +01:00
dependabot[bot]
fbe01b403f
build(deps): bump serde from 1.0.123 to 1.0.124
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.123 to 1.0.124.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.123...v1.0.124 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-08 11:06:40 -05:00
dependabot[bot]
b571819e15
build(deps): bump openat-ext from 0.1.12 to 0.1.13
...
Bumps [openat-ext](https://github.com/cgwalters/openat-ext ) from 0.1.12 to 0.1.13.
- [Release notes](https://github.com/cgwalters/openat-ext/releases )
- [Commits](https://github.com/cgwalters/openat-ext/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-05 14:44:26 -05:00
Colin Walters
8dd5583ae9
Remove cbindgen
...
We have fully transitioned to cxx-rs! This drops a lot of now
dead code; only one binding system to think about generating
source code. For example, a notable advantage of cxx-rs
is it doesn't scan the whole source code, so running `make`
doesn't spew errors from cbindgen not understanding bits.
2021-03-03 16:51:38 -05:00
Colin Walters
60e605b34e
Introduce CxxGObjectArray, use in lockfile code
...
cxx-rs only supports a few basic types in `Vec<T>`/`CxxVector<T>`
and we need to pass an array of GObjects in a few cases.
Add a wrapper class hack instead of using `u64` so we at least
have some basic safety here and have a convenient place to
grep for later when we want to improve this.
2021-03-02 16:25:32 -08:00
Luca BRUNO
a7e333925e
cargo: add maplit
2021-03-02 08:08:05 -08:00
dependabot[bot]
348384a914
build(deps): bump cbindgen from 0.16.0 to 0.18.0
...
Bumps [cbindgen](https://github.com/eqrion/cbindgen ) from 0.16.0 to 0.18.0.
- [Release notes](https://github.com/eqrion/cbindgen/releases )
- [Changelog](https://github.com/eqrion/cbindgen/blob/master/CHANGES )
- [Commits](https://github.com/eqrion/cbindgen/compare/v0.16.0...v0.18.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 19:53:56 +01:00
dependabot[bot]
6dd2df19bc
build(deps): bump serde_json from 1.0.62 to 1.0.64
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.62 to 1.0.64.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.62...v1.0.64 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-03-01 17:46:49 +01:00
dependabot[bot]
380ebc5ada
build(deps): bump cxx-build from 1.0.31 to 1.0.32
...
Bumps [cxx-build](https://github.com/dtolnay/cxx ) from 1.0.31 to 1.0.32.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.31...1.0.32 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-24 23:27:25 +01:00
dependabot[bot]
20feab6d2a
build(deps): bump serde_yaml from 0.8.16 to 0.8.17
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.16 to 0.8.17.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.16...0.8.17 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-23 11:07:28 -05:00
dependabot[bot]
170095bd60
build(deps): bump nix from 0.19.1 to 0.20.0
...
Bumps [nix](https://github.com/nix-rust/nix ) from 0.19.1 to 0.20.0.
- [Release notes](https://github.com/nix-rust/nix/releases )
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nix-rust/nix/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-22 15:33:41 -05:00
dependabot[bot]
1421dcbc14
build(deps): bump openat-ext from 0.1.11 to 0.1.12
...
Bumps [openat-ext](https://github.com/cgwalters/openat-ext ) from 0.1.11 to 0.1.12.
- [Release notes](https://github.com/cgwalters/openat-ext/releases )
- [Commits](https://github.com/cgwalters/openat-ext/compare/v0.1.11...v0.1.12 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-19 15:05:23 -05:00
dependabot[bot]
2306c919ec
build(deps): bump system-deps from 2.0.3 to 3.0.0
...
Bumps [system-deps](https://github.com/gdesmott/system-deps ) from 2.0.3 to 3.0.0.
- [Release notes](https://github.com/gdesmott/system-deps/releases )
- [Commits](https://github.com/gdesmott/system-deps/compare/v2.0.3...v3.0.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-18 08:06:41 -05:00
dependabot[bot]
5f3b692e60
build(deps): bump libc from 0.2.84 to 0.2.86
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.84 to 0.2.86.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.84...0.2.86 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-18 05:13:41 -05:00
dependabot[bot]
3e7ad771fb
build(deps): bump memfd from 0.3.0 to 0.4.0
...
Bumps [memfd](https://github.com/lucab/memfd-rs ) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/lucab/memfd-rs/releases )
- [Commits](https://github.com/lucab/memfd-rs/compare/v0.3.0...v0.4.0 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 18:42:32 -05:00
dependabot[bot]
f343146efd
build(deps): bump cxx from 1.0.30 to 1.0.32
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.30 to 1.0.32.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.30...1.0.32 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-17 17:42:33 -05:00
Colin Walters
e6c045cada
Add an rpmostree-client sub-crate
...
This is intended to be published to https://crates.io/crates/rpmostree-client
Part of https://github.com/coreos/rpm-ostree/issues/2389
This directly imports the code from
5551c54c6e/tests/inst/src/rpmostree.rs
Once merged and released I'll try converting the ostree test suite
over as well as Zincati.
Internally add a testutils helper to validate it works.
2021-02-16 19:22:26 -05:00
Jonathan Lebon
b640892f04
libdnf-sys: Drop C API, replace with cxx.rs bridge
...
Right now, we're using libdnf APIs from Rust via hand-crafted `extern C`
interfaces, which is extra dangerous because there is no signature
checking that happens at compile-time.
Until either we can automate libdnf bindings or use its C++ API directly
via cxx.rs, let's do some basic wrapping in C++ ourselves and use libdnf
through that API only instead. That gives us a lot more confidence and
makes the libdnf API feel more natural to use in Rust.
2021-02-10 13:39:38 -05:00
dependabot[bot]
5cd9e8f5e8
build(deps): bump serde_yaml from 0.8.15 to 0.8.16
...
Bumps [serde_yaml](https://github.com/dtolnay/serde-yaml ) from 0.8.15 to 0.8.16.
- [Release notes](https://github.com/dtolnay/serde-yaml/releases )
- [Commits](https://github.com/dtolnay/serde-yaml/compare/0.8.15...0.8.16 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-10 10:46:38 -05:00
dependabot[bot]
e7c744e8b2
build(deps): bump serde_json from 1.0.61 to 1.0.62
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.61 to 1.0.62.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.61...v1.0.62 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-09 19:44:35 -05:00
dependabot[bot]
4493fb00b7
build(deps): bump cxx from 1.0.29 to 1.0.30
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.29 to 1.0.30.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.29...1.0.30 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-08 12:07:16 -05:00
Colin Walters
588541c60d
Move libdnf build over to Cargo
...
This is now further migration towards Cargo/Rust possible
because we switched our main binary. We've had an internal
`libdnf-sys` crate for a while, but now it can take over
the build of the underlying library too (like many `-sys`
crates support).
This itself is just an incremental step towards migrating
the main rpm-ostree build system to e.g. cmake too (or
perhaps directly with the `cc` crate, not sure yet) and
driving it via `cargo` too.
2021-02-04 10:59:20 -05:00
Colin Walters
2128f5784a
build-sys: Explicit workspace, move libdnf deps to crate
...
First explicitly state that we're a workspace. AIUI
this is actually implicit today via our use of a `path`
dependency, but in the future we may have other sub-crates.
So let's make it explicit now.
Also move the libdnf dependencies directly to that sub-crate.
2021-02-04 10:59:20 -05:00
dependabot[bot]
5b91ac6a3c
build(deps): bump cxx from 1.0.28 to 1.0.29
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.28 to 1.0.29.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.28...1.0.29 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-01 12:20:49 -05:00
dependabot[bot]
d9cd07f92b
build(deps): bump libc from 0.2.82 to 0.2.84
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.82 to 0.2.84.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.82...0.2.84 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-02-01 03:37:52 -05:00
Colin Walters
4ce5f42d12
rust: Link to our C/C++ dependencies and internal library
...
This allows us to fully use cxx-rs with `extern "C++"`. Now
we do call back into the C/C++ today, but it only works outside
of cargo/Rust's knowledge. Most notably, it means we can't
use our C code in `cargo test`. And that's a problem
for moving some C/C++ code to Rust, because we want to port
the unit tests too.
For now, re-declare our dependencies and part of the build
system inside the Cargo build. However, this is also
an important step towards using Cargo as our *sole* build
system.
We don't add build dependencies too often, so the short
term duplication should be OK.
However, a major unfortunate side effect of this is that
we now need to serialize the build process; almost all the
C/C++ comes first (`librpmostreeinternals.la`) and then
the Rust build, then we finally generate the executable
with both.
The only way out of this really is to move more of the
C/C++ build into Cargo, and we probably want to refactor
into internal crates.
2021-01-26 13:47:56 +01:00
dependabot[bot]
e540ca10be
build(deps): bump rand from 0.8.2 to 0.8.3
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.8.2 to 0.8.3.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/commits )
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-26 12:53:04 +01:00
dependabot[bot]
a04ba7c22e
build(deps): bump serde from 1.0.122 to 1.0.123
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.122 to 1.0.123.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.122...v1.0.123 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-26 12:52:57 +01:00
dependabot[bot]
f8ff6075c7
build(deps): bump rand from 0.7.3 to 0.8.2
...
Bumps [rand](https://github.com/rust-random/rand ) from 0.7.3 to 0.8.2.
- [Release notes](https://github.com/rust-random/rand/releases )
- [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-random/rand/compare/0.7.3...0.8.2 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 18:51:53 +01:00
dependabot[bot]
966ad4e1ca
build(deps): bump cxx from 1.0.20 to 1.0.28
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.20 to 1.0.28.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.20...1.0.28 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 17:29:54 +01:00
dependabot[bot]
2e7192466a
build(deps): bump rust-ini from 0.16.0 to 0.16.1
...
Bumps [rust-ini](https://github.com/zonyitoo/rust-ini ) from 0.16.0 to 0.16.1.
- [Release notes](https://github.com/zonyitoo/rust-ini/releases )
- [Commits](https://github.com/zonyitoo/rust-ini/compare/v0.16.0...v0.16.1 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-01-25 16:27:52 +01:00