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
GenTooMan has quit [Ping timeout: 260 seconds]
GenTooMan has joined #rust-embedded
duderonomy has quit [Ping timeout: 244 seconds]
duderonomy has joined #rust-embedded
starblue has quit [Ping timeout: 250 seconds]
starblue has joined #rust-embedded
<re_irc> <@jordens:matrix.org> Is there a crate that gives me "String" and "Vec" that are backed by a slice?
<re_irc> <@krensito:matrix.org> : https://docs.rs/tinyvec/latest/tinyvec/
<re_irc> Maybe this is worth a try :-)
<re_irc> <@jordens:matrix.org> ckrenslehner: Nice. That gives me "SliceVec" but not "SliceString" yet.
<re_irc> <@krensito:matrix.org> Just googled "rust tinyvec string" and was lucky
<re_irc> <@jordens:matrix.org> ckrenslehner: Those are either backed by "Vec" or by "array".
<re_irc> <@krensito:matrix.org> I guess you need the borrow feature?
<re_irc> <@krensito:matrix.org> Maybe you can submit a feature request to tinyvec_string. As far as I understand, this crate more ore less wraps tinyvec. So maybe they can implement a slice backed string.
<re_irc> <@jordens:matrix.org> ckrenslehner: I would need "SliceString".
<re_irc> <@jordens:matrix.org> Sure. I had "SliceString" mostly written already.
<re_irc> <@jordens:matrix.org> https://godbolt.org/z/3csYfannz
IlPalazzo-ojiisa has joined #rust-embedded
<re_irc> <@jordens:matrix.org> https://crates.io/crates/slice-string
<re_irc> <@ryan-summers:matrix.org> : This is basically what we were discussing Friday. Heapless-like primitives (VEC and string) that use borrowed buffers instead
<re_irc> <@ryan-summers:matrix.org> Could be a nice crate
<re_irc> <@jordens:matrix.org> : Now it is.
<re_irc> <@firefrommoonlight:matrix.org> https://docs.rs/heapless/latest/heapless/
<re_irc> <@jordens:matrix.org> ckrenslehner: Thanks for the pointers!
emerent has quit [Ping timeout: 244 seconds]
emerent has joined #rust-embedded
<re_irc> <@tr09:matrix.org> Hi all,
<re_irc> Anyone knowledgeable with *smoltcp*? I’ve implemented a smoltcp::phy::Device and basically have a copy of examples/client.rs, but TxToken consume is never called. Must RxToken consume really return something (as it is called on repeat) or have I made a mistake in app layer?
<re_irc> (Alternatively, maybe I’m not even supposed to send these bytes down UART to a EC25’s PPP connection…)
<re_irc> <@dkhayes117:matrix.org> Is there a way to define a feature flag where that flag has options it must choose from? Or is it better to have a feature-flag/environment variable tag team? IE "trace" flag and "level" options.
<re_irc> <@dngrs:matrix.org> : unfortunately no
<re_irc> <@dkhayes117:matrix.org> Well that stinks
<re_irc> <@dngrs:matrix.org> you can work around it by writing custom "cfg" logic, I think has done that, but it's work
<re_irc> <@dkhayes117:matrix.org> I noticed that embassy-executor had what looked like a work-around for arch
<re_irc> [features]
<re_irc> # Architecture
<re_irc> _arch = [] # some arch was picked
<re_irc> arch-std = ["_arch", "critical-section/std"]
<re_irc> arch-cortex-m = ["_arch", "dep:cortex-m"]
<re_irc> arch-xtensa = ["_arch"]
<re_irc> arch-riscv32 = ["_arch"]
<re_irc> arch-wasm = ["_arch", "dep:wasm-bindgen", "dep:js-sys"]
<re_irc> <@dkhayes117:matrix.org> It needed a macro to make sure only a single flag was selected though
<re_irc> <@dngrs:matrix.org> yeah, that's what I meant
IlPalazzo-ojiisa has quit [Quit: Leaving.]
crabbedhaloablut has quit []
pbsds has joined #rust-embedded
lightningwright has quit [Quit: ZNC - https://znc.in]
lightningwright has joined #rust-embedded