Skip to content
Discussion options

You must be logged in to vote

Also something I've missed as I do t get notifications for the q&a section... sorry!

Dynamic support is completely supported and baked-in! In fact, that's what I use in my own project.

You just need to implement the Node trait on top of some Vec, like either heapless::Vec or - if you are OK with allocations - on top of alloc:vec::Vec and then serve with it a bunch of Endpoint<'static> instances.

The catch a bit is that you cannot really change your dynamic Node layout while you are serving requests with your async handler. You have to wrap it with an async rw lock or mutex and then only change it when you are able to lock it - I.e. between two requests.

Replies: 1 comment 17 replies

Comment options

You must be logged in to vote
17 replies
@ivmarkov
Comment options

@gmarcosb
Comment options

@ivmarkov
Comment options

ivmarkov Jun 7, 2025
Collaborator

@madchicken
Comment options

@ivmarkov
Comment options

ivmarkov Jun 9, 2025
Collaborator

Answer selected by kedars
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants