ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to and logged at, code of conduct at
mrkajetanp has quit [Ping timeout: 240 seconds]
starblue has quit [Ping timeout: 260 seconds]
starblue has joined #rust-embedded
explore has joined #rust-embedded
mrkajetanp has joined #rust-embedded
jackneillll has quit [Remote host closed the connection]
jackneillll has joined #rust-embedded
emerent_ has joined #rust-embedded
emerent has quit [Killed ( (Nickname regained by services))]
emerent_ is now known as emerent
explore has quit [Quit: Connection closed for inactivity]
tokomak has quit [Ping timeout: 240 seconds]
starblue has quit [Ping timeout: 240 seconds]
starblue has joined #rust-embedded
re_irc has quit [Remote host closed the connection]
re_irc has joined #rust-embedded
<agg> (testing bridge)
<re_irc> <adamgreig> (testing bridge other way)
<cr1901> Yay, it's back
<re_irc> <firefrommoonlight> newam: Thanks for the tips!
<re_irc> <huw.> Hey all, getting started with embedded rust (hope this is an okay place for beginner question). I notice when I try to make a reference to "&dyn InputPin" it isn't possible because it has an associated type "Error" which is unknown.
<re_irc> What is the normal way to write abstracted drivers for this? Is there a reason for not making the type object safe?
<re_irc> <ryan-summers> You would instead take in a reference to "&impl InputPin"
<re_irc> <ryan-summers> Or make the function generic over "<T: InputPin>"
<re_irc> <ryan-summers> Like: "pub fn my_function<T: InputPin>(pin: &mut T)"
<re_irc> <ryan-summers> +or "pub fn my_function(pin: &mut impl InputPin)"
<re_irc> <huw.> Ah, fantastic thanks. It was a rust beginner question, not rust embedded beginner one then 😅 enjoying the helpful and kind atmosphere in this chat room
<re_irc> <ryan-summers> No stupid questions here :)
<re_irc> <ryan-summers> * There are no
cr1901 has quit [Read error: Connection reset by peer]
cr1901_ has joined #rust-embedded
<re_irc> <firefrommoonlight> Yes there are - I ask them all the time
cr1901_ has quit [Ping timeout: 240 seconds]
cr1901 has joined #rust-embedded
<re_irc> <ryan-summers> Ah wow, that case actually resulted in the adoption of 62304, very interesting
<re_irc> <heksa> Therac-25 is referenced in at least two courses in my university's software production curriculum.
<re_irc> <dirbaio> how do you map array to array without alloc?
<re_irc> <dirbaio> the stackoverflows tell me to map, collect to vec, then try_into to array, but that uses alloc...
<re_irc> <dirbaio> do I really have to mess with MaybeUninit to do this? :'(
<re_irc> <jacobrosenthal> I think some of is const? but can also blow stack sometimes
<re_irc> <jacobrosenthal> I was watching this issue for a while
<re_irc> <dirbaio> oh there's an why didn't google find it? 😂
<re_irc> <jacobrosenthal> I think stable? i think is still nightly
<re_irc> <dirbaio> oof at that stack usage 😂
<cr1901> James Munns: Can postcard be reasonably used to create serialization formats that can be constructed by hand (to talk to/from a vintage machine w/o a Rust compiler)?
<cr1901> Hmmm, responses seem to not be showing up on my side again. Does anyone on the Matrix side see this msg?