Felix Obenhuber

Results 90 comments of Felix Obenhuber

I didn't find a way to tell build `devicemapper-rs-sys` crate the correct target tripple. [Here](https://github.com/flxo/devicemapper-rs/commit/465d0bb09e0c1c36396b0bbeed4c9b48de956042) the simple hack: hide the detection behind a feature. What do you think?

@mulkieran The cross toolchain is *not* used when the bindings are generated the first time (for version detection) and the correct header is *not* available. A cross compile is something...

> @flxo After looking into this a little bit, would > > ```rust > .clang_arg(format!("target={}", env!("TARGET")).as_str()) > ``` > > work in bindgen? I don't think so because the host...

> I see two options. > > The first I'm less sure about. I know a little bit less about cross compilation than other domains of cargo so I'm not...

Thanks for the update. Probably this needs some refactoring because the compression happens in `data_writer.add_bytes(...)` and `files` is borrowed from self.

[Here](https://share.firefox.dev/3U7xGOz) is a profile from bandwhich `cc5685b` captured with [samply](https://github.com/mstange/samply) on a x86_64 Linux (` 6.1.0-18-amd64 #1 SMP PREEMPT_DYNAMIC`). I also used `iperf3` (locally). You see in the profile that...

The `loopdev` crate has a neat small list of dependencies. Not sure if adding `inotify` (for target_os = "android") is the way to go. Using the `libc` interface directly would...

hi @mdaffin. What's your opinion on that?

I implemented a kernel version check and depending on the result a feature `loop_configure` is enabled or not: https://github.com/flxo/loopdev/tree/loop-configure The most interesting part is that the binding generation must be...