dependabot[bot]
06aad3adf1
build(deps): bump cxx from 1.0.47 to 1.0.48
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.47...1.0.48 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-29 08:55:14 +00:00
Luca Bruno
bb971372ec
Merge pull request #2793 from coreos/dependabot/cargo/cxx-build-1.0.47
...
build(deps): bump cxx-build from 1.0.46 to 1.0.47
2021-04-28 23:22:32 +00:00
dependabot[bot]
bdd1a656db
build(deps): bump cxx-build from 1.0.46 to 1.0.47
...
Bumps [cxx-build](https://github.com/dtolnay/cxx ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.46...1.0.47 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-28 19:34:31 +00:00
dependabot[bot]
2509003b69
build(deps): bump cxx from 1.0.46 to 1.0.47
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.46...1.0.47 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-28 19:34:23 +00:00
Luca Bruno
bd6fe21575
Merge pull request #2779 from coreos/dependabot/cargo/cxx-build-1.0.46
...
build(deps): bump cxx-build from 1.0.45 to 1.0.46
2021-04-26 14:00:08 +00:00
dependabot[bot]
1a53403483
build(deps): bump cxx from 1.0.45 to 1.0.46
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.45 to 1.0.46.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.45...1.0.46 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 10:23:55 +00:00
dependabot[bot]
5909d17081
build(deps): bump cxx-build from 1.0.45 to 1.0.46
...
Bumps [cxx-build](https://github.com/dtolnay/cxx ) from 1.0.45 to 1.0.46.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.45...1.0.46 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-26 06:59:37 +00:00
Luca Bruno
acda0753e6
Merge pull request #2764 from coreos/dependabot/cargo/cxx-1.0.45
...
build(deps): bump cxx from 1.0.43 to 1.0.45
2021-04-19 08:38:23 +00:00
dependabot[bot]
c4b66a0e66
build(deps): bump cxx from 1.0.43 to 1.0.45
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.43 to 1.0.45.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.43...1.0.45 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-19 06:29:58 +00:00
dependabot[bot]
36ef9b8ca2
build(deps): bump cxx-build from 1.0.42 to 1.0.45
...
Bumps [cxx-build](https://github.com/dtolnay/cxx ) from 1.0.42 to 1.0.45.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.42...1.0.45 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-19 06:29:45 +00:00
dependabot[bot]
89d4e2dcf1
build(deps): bump cxx from 1.0.41 to 1.0.43
...
Bumps [cxx](https://github.com/dtolnay/cxx ) from 1.0.41 to 1.0.43.
- [Release notes](https://github.com/dtolnay/cxx/releases )
- [Commits](https://github.com/dtolnay/cxx/compare/1.0.41...1.0.43 )
Signed-off-by: dependabot[bot] <support@github.com>
2021-04-12 10:58:08 -04:00
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
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]
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
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
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
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
Colin Walters
f882d6ddff
rust: Add SPDX-License-Identifier and validate it in ci/codestyle.sh
...
It turns out we accidentally added GPL'd code into the Rust
side, which wasn't intentional on my part and I think it's since
been copied around.
Honestly I think half of the problem is the gigantic
"blah blah blah GNU General blah blah" just makes people's eyes
glaze over. In contrast the `SPDX-License-Identifier` is short
and obvious.
So let's validate that in CI.
This follows a similar change in ostree:
https://github.com/ostreedev/ostree/pull/1439
If we merge this I'll do the C/C++ side too after that.
2021-02-19 15:56: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]
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
8a1b2f3739
libdnf-sys: Include gio.h before libdnf.h
...
See b77f710cfb
Alternative fix to rpm-software-management/libdnf#1139
aka https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1935
This way libdnf's `extern "C"` over the glib headers doesn't apply
because we already processed that header.
2021-02-17 14:02:34 -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
Colin Walters
47c60eb6ce
libdnf: Various buildsys fixes
...
WITH_SWDB: Removed in 99309fbe04
WITH_GIR Removed in e2f2862bed
Also, most importantly: don't always reconfigure libdnf
This is a questionable default for the cargo `cmake` crate.
Building in Koji is failing I think due to timestamp issues
causing cmake to run twice.
2021-02-04 17:57:33 -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
Jonathan Lebon
535a6f4327
rust/libdnf-sys: Drop Cargo.lock
...
As Luca pointed out in #2258 , this is a library and technically
shouldn't have a lockfile.
2020-10-26 16:51:04 +01:00
dependabot-preview[bot]
56a2cf732b
build(deps): bump libc from 0.2.77 to 0.2.79 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.77 to 0.2.79.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.77...0.2.79 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-10-05 18:40:52 +02:00
dependabot-preview[bot]
e977978731
build(deps): bump libc from 0.2.76 to 0.2.77 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.76 to 0.2.77.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.76...0.2.77 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-09-15 23:35:05 +02:00
dependabot-preview[bot]
9b428c1ca0
build(deps): bump libc from 0.2.74 to 0.2.76 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.74 to 0.2.76.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.74...0.2.76 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-24 10:29:15 -04:00
dependabot-preview[bot]
c349a14600
build(deps): bump libc from 0.2.73 to 0.2.74 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.73 to 0.2.74.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.73...0.2.74 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-08-04 23:36:26 +02:00
dependabot-preview[bot]
1d0ebd16da
build(deps): bump libc from 0.2.72 to 0.2.73 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.72 to 0.2.73.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.72...0.2.73 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-20 09:56:35 -04:00
dependabot-preview[bot]
1fbf4b8ba4
build(deps): bump libc from 0.2.71 to 0.2.72 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.71 to 0.2.72.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.71...0.2.72 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-07-16 16:50:13 -04:00
dependabot-preview[bot]
65156cb1b7
build(deps): bump libc from 0.2.70 to 0.2.71 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.70 to 0.2.71.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.70...0.2.71 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-06-03 22:59:23 +02:00
dependabot-preview[bot]
2e5402bd91
build(deps): bump libc from 0.2.69 to 0.2.70 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.69 to 0.2.70.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.69...0.2.70 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-05-24 14:17:42 -04:00
dependabot-preview[bot]
dbb776f17d
build(deps): bump libc from 0.2.68 to 0.2.69 in /rust/libdnf-sys
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.68 to 0.2.69.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.68...0.2.69 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-04-20 11:29:45 -04:00
Jonathan Lebon
3a6044a44b
rust: move libdnf-sys module to its own crate
...
This is just a cleaner arrangement to make the separation more explicit.
It also matches what most other wrapper crates do.
One advantage of this is that we can tell cbindgen directly that we
don't want it to ever export symbols from `libdnf-sys`.
Related discussions in:
https://github.com/coreos/rpm-ostree/pull/2047
2020-04-07 19:01:02 +02:00