rust-embed: actix example doesn't load files

The actix example doesn’t load any of the files from Asset, it only shows “Hello World” 😃

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 1
  • Comments: 20 (12 by maintainers)

Most upvoted comments

@Boscop Got it. This kind of use case didn’t cross my mind. Will keep it the same way. Also will look for a proper solution for dev/prod paths being resolved properly. For the time being it works within the project root folder

@Boscop Yes. The crate mime_guess is needed to response content-type. actix-web also relys on that crate (you can find usage in src/fs.rs folder of actix-web).