Make 'build-assets' an optional capability for application

Also structure features a bit more clever to avoid duplication of
feature dependency declarations.
This commit is contained in:
Martin Nordholts committed 2021-08-17 10:58:21 +02:00
1 parent deddc81426
commit 25fa577cd0
8 files changed
+45 -44

No files matched your search

+1 -1
View File
@@ -88,7 +88,7 @@ pub struct Config<'a> {
pub use_custom_assets: bool,
}
#[cfg(all(feature = "application", feature = "paging"))]
#[cfg(all(feature = "minimal-application", feature = "paging"))]
pub fn get_pager_executable(config_pager: Option<&str>) -> Option<String> {
if let Ok(Some(pager)) = crate::pager::get_pager(config_pager) {
Some(pager.bin)