Closed andar1an closed 3 weeks ago
I had single line comments before the cargo doc comments to direct to links for rust-script.org.
Because rust-script expects the first single line comment to be a type of dependency, the following dependencies were not being used.
Moving the cargo fence to just after hash-bang corrected issue.
I am trying to get an example script working with dependencies from the example repo, but for either dependency inclusion method, it seems that dependencies are not being compiled and cargo toml and lock may not be generated? I need to path explicit flag still to see what is happening.
For example:
will state
use of undeclared crate or module "time"
.I have tried with various quotes e.g. /// vs //! vs // vs no quotes with just fence, as well as use statements and other methods of including dependency, and making sure file is executable but can't seem to get this working.
Am I missing something?
Log:
No matter what I do, dependencies in generated toml is empty