<re_irc>
< (@orclev:matrix.org)> only problem I can see is that's enabled when compiling without optimizations, and it's pretty common to enable optimizations even when doing debug builds since space is at such a premium
<re_irc>
< (@9names:matrix.org)> If you want more control, #[cfg(feature)] works pretty well
<re_irc>
< (@orclev:matrix.org)> yeah, that's the other option, declare a debug feature (or you know, give it a better name)
<re_irc>
< (@firefrommoonlight:matrix.org)> Lumpio-: Is that teh part that converts 0-3.3v to the differential thing can uses?
conplan has quit [Ping timeout: 260 seconds]
conplan has joined #rust-embedded
<re_irc>
< (@9names:matrix.org)> yep. integrated CAN controller + transceiver, so you don't require any external hardware (except termination resistors) to talk on a CAN bus. the NXP chip that Tom linked is such a device.
<re_irc>
< (@firefrommoonlight:matrix.org)> Thx!
conplan has quit [Ping timeout: 260 seconds]
conplan has joined #rust-embedded
bpye has quit [Ping timeout: 276 seconds]
bpye has joined #rust-embedded
causal has quit [Read error: Connection reset by peer]
causal has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
dc740 has joined #rust-embedded
bjc has joined #rust-embedded
bjc has quit [Remote host closed the connection]
bjc has joined #rust-embedded
a2800276 has joined #rust-embedded
conplan has quit [Remote host closed the connection]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
GenTooMan has quit [Ping timeout: 255 seconds]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Excess Flood]
GenTooMan has joined #rust-embedded
GenTooMan has quit [Ping timeout: 255 seconds]
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
IlPalazzo-ojiisa has quit [Ping timeout: 272 seconds]
IlPalazzo-ojiisa has joined #rust-embedded
cr1901 has quit [Remote host closed the connection]
cr1901 has joined #rust-embedded
emerent has quit [Ping timeout: 246 seconds]
emerent has joined #rust-embedded
<re_irc>
< (@orclev:matrix.org)> So, question that isn't _technically_ about embedded Rust, but is adjacent to it. I've got a macro crate I want to use, but it isn't declared no-std, but all the macros just output variants of "const &str" (they're all string literals). It doesn't seem like there's a way to actually use the crate though without forking it and slapping "#![no_std]" into it. Is there any other way of doing this or is the...
<re_irc>
... only option to modify the macro crate?
<re_irc>
< (@chemicstry:matrix.org)> : If it's a proc macro, then it is okay if it uses std. If it is macro reexport or a declarative macro then you will have to add "#![no_std]". Is adding that a big problem though? Most maintainers are happy to accept PRs
conplan has quit [Ping timeout: 260 seconds]
conplan has joined #rust-embedded
GenTooMan has joined #rust-embedded
<re_irc>
< (@orclev:matrix.org)> : It looks like it's not _technically_ a proc macro. Apparently the authors used something called proc_macro_hack which if I'm understanding what the crate says is to add support for proc macros to versions of Rust between 1.31 and 1.45. I forked the library and added the no_std declaration as well as made a entry on their issue tracker to get that change merged in. I was just hoping there was a way to do...
<re_irc>
... this without modifying the library itself since then I could just use the version off crates.io rather than needing to pull in my fork.