dioxus-cli 0.7.6

CLI for building fullstack web, desktop, and mobile apps with a single codebase.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::component::ComponentRegistry;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};
use std::path::PathBuf;

/// Configuration for the `dioxus component` commands
#[derive(Debug, Clone, Serialize, Deserialize, Default, JsonSchema)]
pub(crate) struct ComponentConfig {
    /// The component registry to default to when adding components
    #[serde(default)]
    pub(crate) registry: ComponentRegistry,

    /// The path where components are stored when adding or removing components
    #[serde(default)]
    pub(crate) components_dir: Option<PathBuf>,
}