File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,14 @@ impl LocalLoader {
313
313
let content = file_content_ref ( self . app_root . join ( path) ) ?;
314
314
( content, export)
315
315
}
316
+ v2:: ComponentDependency :: HTTP {
317
+ url,
318
+ digest,
319
+ export,
320
+ } => {
321
+ let content = self . load_http_source ( & url, & digest) . await ?;
322
+ ( content, export)
323
+ }
316
324
} ;
317
325
318
326
Ok ( LockedComponentDependency {
Original file line number Diff line number Diff line change @@ -135,6 +135,15 @@ pub enum ComponentDependency {
135
135
/// Optional export name
136
136
export : Option < String > ,
137
137
} ,
138
+ /// `... = { url = "https://example.com/component.wasm", sha256 = "..." }`
139
+ HTTP {
140
+ /// URL to Wasm
141
+ url : String ,
142
+ /// SHA256 Checksum of the component. The string should start with 'sha256:'
143
+ digest : String ,
144
+ /// Optional export name
145
+ export : Option < String > ,
146
+ } ,
138
147
}
139
148
140
149
/// Component definition
You can’t perform that action at this time.
0 commit comments