Make module dependencies explicit across the workspace
This commit is contained in:
1 parent
610478f8c7
commit
1b4db0e681
104 files changed
+614
-203
No files matched your search
@@ -1,4 +1,7 @@
|
||||
use super::*;
|
||||
use super::{
|
||||
Config, ConfigError, Deserialize, default_border_width, default_focus_ring_width,
|
||||
default_shadow_blur, default_shadow_offset_y, default_shadow_opacity, default_window_radius,
|
||||
};
|
||||
|
||||
impl Config {
|
||||
pub(crate) fn focus_effect_settings(&self) -> Result<FocusEffectSettings, ConfigError> {
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use super::*;
|
||||
use super::{
|
||||
BindingIdentity, Config, ConfigError, Deserialize, Direction, HashMap, HashSet, InputSettings,
|
||||
Keycode, keysyms, xkb,
|
||||
};
|
||||
|
||||
mod index;
|
||||
mod modes;
|
||||
|
||||
@@ -1,4 +1,14 @@
|
||||
use super::*;
|
||||
#[cfg(test)]
|
||||
use crate::config::BindingAction;
|
||||
#[cfg(test)]
|
||||
use ferese_layout::Direction;
|
||||
#[cfg(test)]
|
||||
use smithay::input::keyboard::keysyms;
|
||||
|
||||
use super::{
|
||||
Binding, BindingIdentity, BindingMatch, BindingModifiers, HashMap, Keycode,
|
||||
binding_identity_for_runtime,
|
||||
};
|
||||
|
||||
/// Immutable bindings and their keyboard index are replaced together on reload.
|
||||
/// The ordered slice remains available for gestures and the shortcut guide.
|
||||
@@ -87,6 +97,9 @@ impl BindingSet {
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use crate::config::Config;
|
||||
use crate::config::bindings::BindingTrigger;
|
||||
use std::sync::Arc;
|
||||
|
||||
fn binding_for(trigger: BindingTrigger, action: BindingAction) -> Binding {
|
||||
Binding {
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
use super::*;
|
||||
use super::{
|
||||
Binding, BindingAction, BindingConfig, BindingMatch, BindingSet, Config, ConfigError,
|
||||
Deserialize, HashMap, HashSet, InputSettings, Keycode, binding_identity, keysyms,
|
||||
parse_binding, physical_keymap,
|
||||
};
|
||||
#[cfg(test)]
|
||||
use ferese_layout::Direction;
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
#[serde(deny_unknown_fields)]
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
use super::*;
|
||||
use super::{
|
||||
Config, ConfigError, Deserialize, SpringConfig, default_repeat_delay, default_repeat_rate,
|
||||
enabled_by_default,
|
||||
};
|
||||
|
||||
impl Config {
|
||||
pub fn input_settings(&self) -> Result<InputSettings, ConfigError> {
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
use super::*;
|
||||
use super::{
|
||||
ColumnDisplayValue, ColumnWidth, ColumnWidthValue, Config, ConfigError, FocusStrategyValue,
|
||||
GapConfig, LayoutMode, LayoutModeValue, ViewportFocusStrategy,
|
||||
};
|
||||
|
||||
impl Config {
|
||||
pub fn default_column_display(&self) -> ferese_layout::ColumnDisplay {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use super::*;
|
||||
use super::{Config, ConfigError, Deserialize, HashSet, default_true};
|
||||
|
||||
impl Config {
|
||||
pub fn output_profiles(&self) -> Result<Vec<OutputProfile>, ConfigError> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use super::*;
|
||||
use super::{Config, ConfigError, Deserialize, parse_color};
|
||||
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
#[serde(default, deny_unknown_fields)]
|
||||
|
||||
Reference in new issue
Block a user