@@ -28,13 +28,13 @@ pub struct RawAppManifest {
28
28
#[ serde( flatten) ]
29
29
pub info : RawAppInformation ,
30
30
31
- /// Application-specific configuration schema.
32
- #[ serde( default , skip_serializing_if = "HashMap::is_empty" ) ]
33
- pub variables : HashMap < String , RawVariable > ,
34
-
35
31
/// Configuration for the application components.
36
32
#[ serde( rename = "component" ) ]
37
33
pub components : Vec < RawComponentManifest > ,
34
+
35
+ /// Application-specific configuration schema.
36
+ #[ serde( default , skip_serializing_if = "HashMap::is_empty" ) ]
37
+ pub variables : HashMap < String , RawVariable > ,
38
38
}
39
39
40
40
/// General application information.
@@ -71,10 +71,10 @@ pub struct RawComponentManifest {
71
71
pub wasm : RawWasmConfig ,
72
72
/// Trigger configuration.
73
73
pub trigger : TriggerConfig ,
74
- /// Component-specific configuration values.
75
- pub config : Option < HashMap < String , String > > ,
76
74
/// Build configuration for the component.
77
75
pub build : Option < RawBuildConfig > ,
76
+ /// Component-specific configuration values.
77
+ pub config : Option < HashMap < String , String > > ,
78
78
}
79
79
80
80
/// Build configuration for the component.
@@ -92,8 +92,6 @@ pub struct RawBuildConfig {
92
92
#[ derive( Clone , Debug , Deserialize , Serialize ) ]
93
93
#[ serde( deny_unknown_fields, rename_all = "snake_case" ) ]
94
94
pub struct RawWasmConfig {
95
- /// Environment variables to be mapped inside the Wasm module at runtime.
96
- pub environment : Option < HashMap < String , String > > ,
97
95
/// Files to be mapped inside the Wasm module at runtime.
98
96
///
99
97
/// In the local configuration file, this is a vector, each element of which
@@ -105,6 +103,8 @@ pub struct RawWasmConfig {
105
103
pub exclude_files : Option < Vec < String > > ,
106
104
/// Optional list of HTTP hosts the component is allowed to connect.
107
105
pub allowed_http_hosts : Option < Vec < String > > ,
106
+ /// Environment variables to be mapped inside the Wasm module at runtime.
107
+ pub environment : Option < HashMap < String , String > > ,
108
108
}
109
109
110
110
/// An entry in the `files` list mapping a source path to an absolute
0 commit comments