adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
<AlexandrosLiarok>
Are there any recommendations for `pinned-init` `new` methods for structs using generings and taking ownership in their new methods? should one use `impl Init<T>` instead of taking `T` as an argument ?
sroemer has joined #rust-embedded
sroemer has quit [Ping timeout: 248 seconds]
ivche has quit [Ping timeout: 260 seconds]
<ivmarkov[m]>
<AlexandrosLiarok> "Are there any recommendations..." <- I usually leave `T` as-is. But this means size_of(T) must be small, for the move not to matter. I have a few exceptions where I take impl Init<T> too, where T is large and needs to be constructed in-place.
Makarov has quit [Quit: Ping timeout (120 seconds)]
Makarov has joined #rust-embedded
Makarov has quit [Client Quit]
<JamesMunns[m]>
yes, if you've initalized TIMER_CALLBACKS before you call that
<JamesMunns[m]>
and there are no other references live while you are holding timer_callbacks
<JamesMunns[m]>
* and there are no other references derived from TIMER_CALLBACKS live while you are holding timer_callbacks
cr1901_ has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
sroemer has joined #rust-embedded
ak79[m] has quit [Quit: Idle timeout reached: 172800s]
nadja has quit [Read error: Connection reset by peer]
rafael[m] has quit [Ping timeout: 265 seconds]
whitequark[cis] has quit [Ping timeout: 265 seconds]
whitequark[cis] has joined #rust-embedded
rafael[m] has joined #rust-embedded
nadja has joined #rust-embedded
<nickez[m]>
Great! Next up I'm trying to wrap a struct that has a `PhantomData<>` in it and it complains that `*const ()` in `PhantomData` does not implement `Sync`. Is this the same issue that I had previously?
sroemer has quit [Ping timeout: 248 seconds]
<nickez[m]>
Last time, I could just add a Sync bound to the callback type. This time I'm not sure exactly where I would put that
<nickez[m]>
Perhaps it is easier to just patch Grounded and remove that bound?
<VaradShinde[m]>
hi everyone, currently i am trying to make a test case scenario for a rust program i made for stm32407 , is there a way how just in a std environment, we can implement a similar testing program ?
<nickez[m]>
I wonder what phantomdata is used for in my specific case. Perhaps I can use phantomdata without it being owned by the struct
AdinAck[m] has joined #rust-embedded
<AdinAck[m]>
<VaradShinde[m]> "hi everyone, currently i am..." <- you could use defmt-test to deploy tests to the microcontroller
okhsunrog[m] has joined #rust-embedded
<okhsunrog[m]>
is there a way to make output of probe-rs and cargo-embed more verbose? like enabling trace logs
<AdinAck[m]>
okhsunrog[m]: if you’re using defmt-rtt you can set the log level to trace, yes
<VaradShinde[m]>
AdinAck[m]: will surely look into this, also if by any chance is there a tool which can be used to generate a test report like we have for embedded C?
<AdinAck[m]>
VaradShinde[m]: i don’t know exactly what you mean by this but defmt-test certainly outputs the results of the tests and i suppose you could pipe it to a file
<okhsunrog[m]>
AdinAck[m]: no, not the device's logs. cargo-embed fails to connect, saying only "Error Failed to attach to RTT: Timeout". and I want more logs to figure out why
<VaradShinde[m]>
AdinAck[m]: cool thans for the help
<AdinAck[m]>
okhsunrog[m]: ah yes, there is a way to do that! i don’t remember, you should ask daniel in the probe-rs chat
<okhsunrog[m]>
how do I find the probe-rs chat?
<AdinAck[m]>
i think it’s on their website, i’m on my phone right now i don’t know how to get/share the link
<AlexandrosLiarok>
pinned-init has a #[test] which apparently prevents me from building it due to missing rust-std in my environment.
<AlexandrosLiarok>
is there any way to disable a dependency's tests ?
<AdinAck[m]>
#probe-rs:matrix.org
<AdinAck[m]>
i don’t think that worked
<AlexandrosLiarok>
huh I guess the issue is it doesn't use the cfg test pattern.
Makarov has joined #rust-embedded
Makarov has quit [Ping timeout: 256 seconds]
<okhsunrog[m]>
<AdinAck[m]> "i don’t think that worked" <- it did!
DanielDuque[m] has quit [Quit: Idle timeout reached: 172800s]
romancardenas[m] has quit [Quit: Idle timeout reached: 172800s]
almindor[m] has joined #rust-embedded
<almindor[m]>
remind me, what was the reason we don't have Iterator support in things like SPI::write ?
<almindor[m]>
* remind me, what was the reason we don't have Iterator support in things like SPI::write as part of embedded-hal ?
dirbaio[m] has joined #rust-embedded
<dirbaio[m]>
doesn't play well with dma, doesn't play well with linux spidev and other rtos's apis that require the buffer upfront
huayra1[m] has quit [Quit: Idle timeout reached: 172800s]
i509vcb[m] has quit [Quit: Idle timeout reached: 172800s]
jiande2020 has quit [Quit: Ping timeout (120 seconds)]
jiande2020 has joined #rust-embedded
ZannaTilda[m]1 has joined #rust-embedded
<ZannaTilda[m]1>
💘💘💘THIS PORN GAME WILL MAKE YOU CUM IN YOUR PUSSY, ASS AND MOUTH IN 30 SECONDS💦 https://epdd.quoo.eu?sub1=elz
ZannaTilda[m]1 has left #rust-embedded [#rust-embedded]
<JamesMunns[m]>
btw dirbaio if you use the reason "spam" in the ban reason, I think the bot automatically adds them to the spam ban list
<dirbaio[m]>
oh, TIL
<dirbaio[m]>
will do
<dirbaio[m]>
and unban + ban with the reason works? :D
<JamesMunns[m]>
Oh I added them to the list manually
<JamesMunns[m]>
I *think* if you say "spam" the bot auto-adds them to the list. When you don't we get a prompt in the mod room "would you like to add this banned user to one of the lists"
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
<AlexandrosLiarok>
what's the best way to get a lazy static for no_std ?