@@ -198,7 +198,7 @@ impl Default for UpdaterConfig {
198198#[ derive( PartialEq , Deserialize , Debug , Clone , Default ) ]
199199#[ serde( rename_all = "camelCase" ) ]
200200pub struct SecurityConfig {
201- /// Content security policy to inject to HTML files with the custom protocol .
201+ /// Content security policy to inject to HTML files with `tauri://` and other user-defined custom protocols .
202202 pub csp : Option < String > ,
203203}
204204
@@ -301,21 +301,30 @@ pub struct CliArg {
301301 pub index : Option < u64 > ,
302302}
303303
304- /// The CLI root command definition.
304+ /// The CLI command definition.
305305#[ derive( PartialEq , Deserialize , Debug , Clone ) ]
306306#[ serde( rename_all = "camelCase" ) ]
307- #[ allow( missing_docs) ] // TODO
308307pub struct CliConfig {
308+ /// Command description which will be shown on the help information.
309309 pub description : Option < String > ,
310+ /// Command long description which will be shown on the help information.
310311 pub long_description : Option < String > ,
312+ /// Adds additional help information to be displayed in addition to auto-generated help.
313+ /// This information is displayed before the auto-generated help information.
314+ /// This is often used for header information.
311315 pub before_help : Option < String > ,
316+ /// Adds additional help information to be displayed in addition to auto-generated help.
317+ /// This information is displayed after the auto-generated help information.
318+ /// This is often used to describe how to use the arguments, or caveats to be noted.
312319 pub after_help : Option < String > ,
320+ /// List of arguments for the command
313321 pub args : Option < Vec < CliArg > > ,
322+ /// List of subcommands of this command
314323 pub subcommands : Option < HashMap < String , CliConfig > > ,
315324}
316325
317326impl CliConfig {
318- /// List of args for the command
327+ /// List of arguments for the command
319328 pub fn args ( & self ) -> Option < & Vec < CliArg > > {
320329 self . args . as_ref ( )
321330 }
@@ -426,10 +435,10 @@ pub enum AppUrl {
426435#[ derive( PartialEq , Deserialize , Debug ) ]
427436#[ serde( rename_all = "camelCase" ) ]
428437pub struct BuildConfig {
429- /// the devPath config .
438+ /// Directory path or URL to use on development. Default to `http://localhost:8080` .
430439 #[ serde( default = "default_dev_path" ) ]
431440 pub dev_path : AppUrl ,
432- /// the dist config .
441+ /// Distribution directory to use in release build. Default to `../dist` .
433442 #[ serde( default = "default_dist_path" ) ]
434443 pub dist_dir : AppUrl ,
435444 /// Whether we should inject the Tauri API on `window.__TAURI__` or not.
@@ -467,7 +476,7 @@ pub struct PackageConfig {
467476 pub version : Option < String > ,
468477}
469478
470- /// The tauri.conf.json mapper .
479+ /// The config type mapped to ` tauri.conf.json` .
471480#[ derive( Debug , Default , PartialEq , Deserialize ) ]
472481#[ serde( rename_all = "camelCase" ) ]
473482pub struct Config {
0 commit comments