How to make a tree of libraries nested in folders in a project?

Hi, I want to make the structure of files and folders in the project so that large parts of the application are in folders. How can I do this without creating the file Forc.toml and linking it to each folder in the main file Forc.toml

main.sw
structs/
    struct1.sw
    struct2.sw
    struct3.sw
    mod.sw
functions
    fn1.sw
    fn2.sw
    mod.sw
abi.sw
    ...

Can you please send me a tutorial or a repository so I can figure out how to do it?

1 Like

If I understand the question correctly, the dep keyword is your friend here. The standard library does this with a single Forc.toml. Note that you can also provide a path to dep.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.