Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

foo.rs, foo/a.rs #24

Open
mirsella opened this issue Aug 20, 2024 · 1 comment
Open

foo.rs, foo/a.rs #24

mirsella opened this issue Aug 20, 2024 · 1 comment

Comments

@mirsella
Copy link

hello !

with this directory sturcture:

foo.rs
foo/
     - a.rs
     - b.rs

having a automod::dir!("src/foo") gives error: couldn't read crate/src/a.rs: No such file or directory (os error 2)

thanks !

@mirsella
Copy link
Author

update, the problem was because i had a module where the filename had a dash in it, and the #[path] attribute didn't work in this case

i was able to resolve my issue, so it can be closed, but i think the underlying issue is still here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant