Closed kilork closed 3 years ago
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.
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:
Looks like it would be more meaningful not only in this case.