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

Add possibility to generate resource map without function wrapper #31

Closed
kilork opened this issue Dec 28, 2020 · 0 comments
Closed

Add possibility to generate resource map without function wrapper #31

kilork opened this issue Dec 28, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kilork
Copy link
Owner

kilork commented Dec 28, 2020

rust-analyser fails to resolve functions from included generated files, which shows in the editor errors.

This is not nice for user experience. We would add new functions to generate only hash map.

Then usage is would be like:

fn generate() -> ::std::collections::HashMap<&'static str, actix_web_static_files::Resource> {
  include!(concat!(env!("OUT_DIR"), "/generated.rs"));
}

Looks like it would be more meaningful not only in this case.

@kilork kilork added the enhancement New feature or request label Dec 28, 2020
@kilork kilork added this to the v3.1.0 milestone Feb 20, 2021
@kilork kilork self-assigned this Mar 6, 2021
@kilork kilork closed this as completed in e14e747 Mar 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant