rust_hdl icon indicating copy to clipboard operation
rust_hdl copied to clipboard

[Enhancement] Mapping libraries and files from other sources

Open rishubn opened this issue 3 years ago • 1 comments

Hi!

I use xeda for building and managing HDL projects and it also uses a similar TOML file for project management and enumerating sources: https://github.com/XedaHQ/xeda#xeda-project-file

It is a pain to maintain both xedaproject.toml and vhdl-ls.toml especially given they do the same thing. Would it be possible to add support for defining sources from xedaproject.toml, or perhaps implement something in a more generic way? Most people use build systems of some kind which already require the project files to be listed, so it may be beneficial to provide a mechanism to integrate with these.

I would be willing to learn Rust and submit a PR (with some kind pointers to where to look in rust_hdl).

Thanks!

rishubn avatar Jun 22 '21 14:06 rishubn

or perhaps implement something in a more generic way? Most people use build systems of some kind which already require the project files to be listed, so it may be beneficial to provide a mechanism to integrate with these.

You might find https://umarcor.github.io/osvb/apis/core.html interesting. See also https://umarcor.github.io/osvb/apis/tool.html.

umarcor avatar Jun 22 '21 14:06 umarcor

Basically all tools have their own project file and there is no standard. The common way is to have one master file and generate the other files from it. Adding support to VHDL LS for reading a lot of different project files just complicates the project and is not desirable for us. The user has to use tools to create a vhdl_ls.toml from their own master file if they want single source of information.

kraigher avatar Dec 07 '22 17:12 kraigher