e0a976386a
In a lot of places we're abusing `io::Error(io::ErrorKind::InvalidInput)` which is both verbose and inaccurate really. Maybe in some places we should be defining custom errors, but eh. I like the `failure` crate. Use it in just `utils.rs` for now. Tweak our error handling FFI wrappers to accept `Display` since all we do is convert the error to a string. Closes: #1675 Approved by: lucab
39 lines
1.0 KiB
TOML
39 lines
1.0 KiB
TOML
[package]
|
|
name = "rpmostree-rust"
|
|
version = "0.1.0"
|
|
authors = ["Colin Walters <walters@verbum.org>", "Jonathan Lebon <jonathan@jlebon.com>"]
|
|
|
|
[dependencies]
|
|
failure = "0.1.3"
|
|
serde = "1.0.78"
|
|
serde_derive = "1.0.78"
|
|
serde_json = "1.0"
|
|
serde_yaml = "0.7"
|
|
libc = "0.2"
|
|
glib-sys = "0.6.0"
|
|
gio-sys = "0.6.0"
|
|
glib = "0.5.0"
|
|
tempfile = "3.0.3"
|
|
openat = "0.1.15"
|
|
curl = "0.4.14"
|
|
c_utf8 = "0.1.0"
|
|
systemd = "0.4.0"
|
|
indicatif = "0.9.0"
|
|
lazy_static = "1.1.0"
|
|
|
|
[lib]
|
|
name = "rpmostree_rust"
|
|
path = "src/lib.rs"
|
|
crate-type = ["staticlib"]
|
|
|
|
[profile.release]
|
|
# Unwinding across FFI boundaries is undefined behavior, and anyways, we're
|
|
# [crash-only](https://en.wikipedia.org/wiki/Crash-only_software)
|
|
panic = "abort"
|
|
# We assume we're being delivered via e.g. RPM which supports split debuginfo
|
|
debug = true
|
|
# For true release builds, we do suggest you enable LTO via e.g.
|
|
# env RUSTFLAGS='-C lto=true' as part of the outer build. It's just
|
|
# off by default because it's quite slow and the default is more oriented
|
|
# towards local development.
|