ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
IlPalazzo-ojiisa has quit [Quit: Leaving.]
Darius has quit [Ping timeout: 255 seconds]
Darius has joined #rust-embedded
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
mrtazz_ has joined #rust-embedded
WSalmon has quit [Quit: No Ping reply in 180 seconds.]
mrtazz has quit [Quit: Leaving.]
mrtazz_ is now known as mrtazz
WSalmon has joined #rust-embedded
<re_irc> <@dhr33ti:matrix.org> Hello!
<re_irc> We at Purdue University are conducting a survey to better understand the applicability of Rust for Embedded Systems. The purpose of this study is to identify the challenges that developers face when using Rust for embedded systems.
<re_irc> The survey should take no more than 10 minutes to complete, and your participation is voluntary. All responses will remain confidential.
<re_irc> If you are interested in participating, please click on the following link to access the survey form: https://purdue.ca1.qualtrics.com/jfe/form/SV_3EPvSqpOnoPMX7U
<re_irc> We appreciate your time and contribution to this research. Please feel free to share this message with anyone who might be interested in participating.
Dr_Who has joined #rust-embedded
crabbedhaloablut has quit [Ping timeout: 276 seconds]
Dr_Who has quit [Quit: ZZZzzz…]
crabbedhaloablut has joined #rust-embedded
<re_irc> <@barafael:matrix.org> I have this project which uses egui to display an initial config screen for my e-hal driver. It uses clap and klask under the hood. It works nicely if I compile this for raspberry pi ON THE PI (apart from being slow). If I cross-compile using "cross", I obviously get linker errors (missing xcb, xcb-render, xcb-shape, xcb-xfixes at least). I'm not sure how I can fix these so that I can actually cross-compile here?
<re_irc> <@barafael:matrix.org> the project for reference is https://github.com/barafael/ebyte-e32-ui
<re_irc> <@k900:0upti.me> You'll have to get the aarch64 (or whatever) versions of your libraries on your source system, somehow
<re_irc> <@k900:0upti.me> I'm obviously biased but Nix can help here
<re_irc> <@barafael:matrix.org> onto my source system, this being the host where I build?
<re_irc> <@barafael:matrix.org> not sure how I would get those deps into the docker environment cross seems to use for its build
<re_irc> <@k900:0upti.me> Yes
<re_irc> <@k900:0upti.me> If you're using cross-rs, you'll need a custom dockerfile
<re_irc> <@barafael:matrix.org> TIL I need to install "buildx" for cross to work with a dockerfile, I think. Should this be added in the docs?
<re_irc> <@k900:0upti.me> Probably? tbh I'm not too familiar with how cross-rs works
<re_irc> <@k900:0upti.me> I just use Nix
<re_irc> <@k900:0upti.me> (btw)
<re_irc> <@barafael:matrix.org> any tutorials on how to do something like this with nix? I can't do it with cross so far
IlPalazzo-ojiisa has joined #rust-embedded
<re_irc> inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
<re_irc> <@k900:0upti.me> : Something like this, basically:{
<re_irc> self,
<re_irc> nixpkgs,
<re_irc> outputs = {
<re_irc> }: let
<re_irc> pkgs = import nixpkgs {
<re_irc> localSystem = "x86_64-linux";
<re_irc> crossSystem = "aarch64-linux";
<re_irc> };
<re_irc> in {
<re_irc> packages.x86_64-linux.default = pkgs.rustPlatform.buildRustPackage {
<re_irc> name = "ebyte-e32-ui";
<re_irc> version = "1.0.0";
<re_irc> src = ./.;
<re_irc> cargoLock.lockFile = ./Cargo.lock;
<re_irc> buildInputs = [pkgs.xorg.libxcb];
<re_irc> };
<re_irc> };
<re_irc> }
<re_irc> <@k900:0upti.me> (very intentionally minimal example)
<re_irc> <@barafael:matrix.org> : I assume this goes into flake.nix? And, what then? I am looking around but not really finding any resources here either
<re_irc> <@k900:0upti.me> That goes into "flake.nix" and then you can just "nix build"
<re_irc> <@barafael:matrix.org> i tried that, it's saying something about extra-experimental-features not being supported. I added "--extra-experimental-features" everywhere but it doesn't seem to help
<re_irc> <@k900:0upti.me> Run `nix build --extra-experimental-features "flakes nix-command"
<re_irc> <@k900:0upti.me> * "nix build --extra-experimental-features "flakes nix-command""
<re_irc> <@barafael:matrix.org> No such file or directory is what I get. Today is not the day, I'm out of time and juice... Thanks for your help though :
emerent has quit [Ping timeout: 240 seconds]
emerent has joined #rust-embedded
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
<re_irc> <@thejpster:matrix.org> https://canonical.com/careers/4383713 👀
starblue has quit [Ping timeout: 260 seconds]
cr1901 has quit [Ping timeout: 250 seconds]
cr1901 has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
starblue has joined #rust-embedded