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
stgl has quit [Quit: ZNC 1.8.2 - https://znc.in]
_whitelogger has joined #rust-embedded
sroemer has joined #rust-embedded
sroemer has quit [Changing host]
sroemer has joined #rust-embedded
AdamHorden has quit [Quit: Adam Horden | adam.horden.me]
pcs38 has joined #rust-embedded
Ralph[m] has joined #rust-embedded
<Ralph[m]> i just tried to use my `postcard-rpc` application from linux instead of windows and obviously ran into permission errors... does anyone have an example udev rule for what's needed to run `postcard-rpc` via USB w/o `sudo`?
<Ralph[m]> (i'll also volunteer to add a PR to `postcard-rpc` with the documentation for it so that future me can find it again!)
<JamesMunns[m]> Ah... I had that... somewhere?
<JamesMunns[m]> could be copied over to the postcard-rpc docs too
AdamHorden has joined #rust-embedded
<JamesMunns[m]> Sure! Feel free to add it whereever you looked for it originally :)
<Ralph[m]> tbf i just searched "udev" on the repo (since the docs are in the repo as well) :)
<Ralph[m]> <JamesMunns[m]> "Sure! Feel free to add it..." <- done! one more PR in your review pipeline 😅: https://github.com/jamesmunns/postcard-rpc/pull/116
reto[m] has quit [Quit: Idle timeout reached: 172800s]
m5zs7k has quit [Remote host closed the connection]
m5zs7k has joined #rust-embedded
dngrs[m] has quit [Quit: Idle timeout reached: 172800s]
ouilemur has joined #rust-embedded
MichaFita[m] has quit [Quit: Idle timeout reached: 172800s]
jason-kairos[m] has quit [Quit: Idle timeout reached: 172800s]
<Ralph[m]> i presume i'm not the only one working with private github repos for some rust crates? what's your go-to way to reference one crate from within another as a dependency? when using git dependencies i have... (full message at <https://catircservices.org/_irc/v1/media/download/ARQtjpM1juZVa2sMnbCUQUuHziAqdsbCQ7q_s7aiN1hSaAHjYYBwNRumj57Tti7miA_uIWjsCgbGSw-_cW0ZcbC_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy9pYmVnYW1SdlRtYVFsWnVnZ0VzZERhZlM>)
<Ralph[m]> * use `GIT_CONFIG_COUNT=1` +
boru has left #rust-embedded [(full part message at https://catircservices.org)]
<thejpster[m]> https://shipyard.rs/pricing gives you five crates for free.
<JamesMunns[m]> hmm, I'd have to look, I might not have access to customer repos where I know we have this set up, but I think we use https deps instead of git deps, locally we have this in our `.gitconfigs`:... (full message at <https://catircservices.org/_irc/v1/media/download/AR8yqgKdoVhvrB5z2zWL42yO8O98e4tXfm-QAhK7g5igp-uMsFC6U241047W_TF7mPZ-acB2NFUoXKbH_45Y1fO_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy95REpsY1ZpZWZEZE9sREpCT2NWWVhYa3U>)
<JamesMunns[m]> I THINK using https deps makes it easier (?) somehow to get gha runners to have the auth to access private repos and not need git secrets, but I'd have to look
<Ralph[m]> JamesMunns[m]: yeah, i'm also using HTTPS since i'm using PATs and not SSH keys (though i _guess_ one solution would be to generate an SSH key pair, put the private key in a secret and grant the public key on a user with access to the repo? but that'd give that key access to _everything_ that user sees => ouch!)
<JamesMunns[m]> yeah, I THINK we use orga-scoped read only PATs? I'm not sure tho
mkj[m] has joined #rust-embedded
<mkj[m]> https://github.com/actions/checkout token seems to do it?
<mkj[m]> so could you get cargo to use that...
<Ralph[m]> mkj[m]: that's to clone the main repo. but if that contains a `Cargo.toml` with some dependency which points to another private git repo (with `https` URL) then cargo won't use that `token` and i've found no way to make it use it.
<Ralph[m]> <thejpster[m]> "https://shipyard.rs/pricing..."; <- thanks! that might be an option, though i had hoped to avoid relying on 3rd parties. i'll have to check if that's an option for them... though the paid version is definitely out of scope (going from 0 to 99/month is a huge step for something they're barely using)
pcs38 has quit [Ping timeout: 252 seconds]
pcs38 has joined #rust-embedded
<thejpster[m]> https://jfrog.com/blog/how-to-use-cargo-repositories-in-artifactory/ is $150/month, as is https://cloudsmith.com/pricing. Apparently that's the going rate for private package registries?
diondokter[m] has joined #rust-embedded
<diondokter[m]> We've had a client using cloudsmith. I didn't interact with it, but it seems they were happy with it
davidmpye[m] has joined #rust-embedded
<davidmpye[m]> Postcard question: Trying to copy the basic example, but the compiler hates me because:
<davidmpye[m]> I'd welcome any suggestion as to what I'm missing here - 32 bytes is clearly 'more' than I need for my message
<davidmpye[m]> The example is https://docs.rs/postcard/latest/postcard/
wassasin[m] has joined #rust-embedded
<wassasin[m]> davidmpye[m]: You are probably using heapless 0.8, whereas postcard currently uses heapless 0.7
<davidmpye[m]> Aha
<wassasin[m]> (yes the compiler should be able to emit an error for that)
<davidmpye[m]> wassasin: And yes, just like that, it now works
<davidmpye[m]> Thank you!
<JamesMunns[m]> Someone somewhere implemented a serialization flavor for heapless v8, I don't have it to hand tho
<JamesMunns[m]> You could probably search back in the onevariable room
KevinPFleming[m] has joined #rust-embedded
<KevinPFleming[m]> v9 is coming soon too
<JamesMunns[m]> Luckily you can impl ser/de flavors on any data structure you want!
<JamesMunns[m]> (it was a mistake to ship built-in methods for heapless v7, this will not be present in postcard v2, or will be behind a feature flag)
<davidmpye[m]> <wassasin[m]> "(yes the compiler should be able..." <- That was, of course, exactly the problem
<davidmpye[m]> Thank you very much
pcs38 has quit [Quit: leaving]
<Ralph[m]> <Ralph[m]> "i presume i'm not the only one..." <- i finally managed it, this does the trick (in the GH workflow file):... (full message at <https://catircservices.org/_irc/v1/media/download/AZEz5O7uBpLrOwzRAXhb1niqFydtFgsrVqnAcZ7TTug37kwB2qreLmKA--XNMbwXP-Wj2out_uVMzkb6Z2ScVFC_8AAAAAAAAGNhdGlyY3NlcnZpY2VzLm9yZy9Nb3JSbUJJdG5VTGpjbndadHd2T215TGs>)
Darius has quit [Ping timeout: 245 seconds]
Darius has joined #rust-embedded
dirbaio[m] has joined #rust-embedded
<dirbaio[m]> I think if you drop a .netrc file in $HOME cargo's git picks it up automatically
<dirbaio[m]> or .gitconfig
<Ralph[m]> dirbaio[m]: can you do that in a GH workflow?
<dirbaio[m]> `echo "whatever" > ~/.netrc`
<dirbaio[m]> I have this for gitlab ci
<dirbaio[m]> `echo -e "machine git.example.com\nlogin gitlab-ci-token\npassword ${CI_JOB_TOKEN}" > ~/.netrc`
<Ralph[m]> i wasn't aware that home was writable there. so, that might be a better way of doing things then?
<Ralph[m]> why didn't i ask this a few hours earlier? 😅 (i wasted a lot of time with this)
<dirbaio[m]> run it before any cargo commands
<Ralph[m]> and cargo picks that up? or do i still need to set CARGO_NET_GIT_FETCH_WITH_CLI?
<dirbaio[m]> yeah I have that set as well
<dirbaio[m]> not sure if it's actually required
<dirbaio[m]> probably yes
<Ralph[m]> i can confirm that it works on GH as well 🥳
<Ralph[m]> thank you very much, dirbaio! 🤗
sroemer has quit [Quit: WeeChat 4.5.2]
pcs38 has joined #rust-embedded
newam[m] has quit [Quit: Idle timeout reached: 172800s]
thalesfragoso[m] has quit [Quit: Idle timeout reached: 172800s]
romancardenas[m] has quit [Quit: Idle timeout reached: 172800s]
bartmassey[m] has quit [Quit: Idle timeout reached: 172800s]
jannic[m] has quit [Quit: Idle timeout reached: 172800s]
danielb[m] has quit [Quit: Idle timeout reached: 172800s]
therealprof[m] has quit [Quit: Idle timeout reached: 172800s]
<realroot[m]1> <M9names[m]> "It's not just you" <- Are the rooms read only or something?
<dav1d> How feasible is it to have 64x rc522 modules connected to a single esp32 (a chessboard)?
<thejpster[m]> Wanted: Someone who *really* likes keyboards to review a monster pull request where I totally change how keyboard layouts are defined, and add lots of Unicode-art pictures of keyboards.
<thejpster[m]> I think I didn't break anything - except sometimes Shift + Alt + Key got you the same as Shift + Key and now it (usually) gets you the same as Alt + Key.
<thejpster[m]> Oh wow. Matrix ruined that.
<diondokter[m]> Make it a code block instead of single `
<thejpster[m]> (I'm very sorry people on IRC)
<thejpster[m]> If you have a non-US / UK keyboard, I would love to know if your machine produces the same key combinations as my crate.
pcs38 has quit [Quit: leaving]
rom4ik has quit [Quit: Ping timeout (120 seconds)]
rom4ik has joined #rust-embedded
Hallo124 has joined #rust-embedded
<Hallo124> Hallo
balbi[m] has joined #rust-embedded
<balbi[m]> <thejpster[m]> "I think I didn't break..." <- trying to understand what you mean here. The crate currently misses one of the modifiers?