I wish to introspect these types and manipulate them from a very basic web front end defined in web.rs.
So I need to somehow get the types to describe themselves (name, types and constructor) to Javascript.
Does anyone have any suggestions for reading material or could suggest crates for this sort of thing ?
Where a user can organise how the Rust structs are connected to one another.
They are basically arranged in a tree like structure.
Some Rust structs can attach to others but not all. It depends on their input / output types . Therefore I will need to pass to Javascript the "capabilities" of each Rust type.
The standard way to do this is to write a custom derive (a compiler plugin) that generates the required rust code. You may be able to use the introspection crate (below) but it's not very powerful: