dtolnay / automod

Pull in every source file in a directory as a module
Apache License 2.0
157 stars 21 forks source link

foo.rs, foo/a.rs #24

Open mirsella opened 3 weeks ago

mirsella commented 3 weeks ago

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 commented 3 weeks ago

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