-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from redbadger/reorg
reorg components and wits
- Loading branch information
Showing
56 changed files
with
109 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
wasm-components/rust/data-init/src/lib.rs → wasm-components/data-init/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package platform-poc:data-init@0.1.0; | ||
|
||
world data-init-service { | ||
import wasmcloud:postgres/query@0.1.1-draft; | ||
import wasi:keyvalue/store@0.2.0-draft; | ||
import wasi:logging/logging@0.1.0-draft; | ||
|
||
export init-funcs; | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...omponents/rust/http-controller/src/lib.rs → wasm-components/http-controller/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This file is automatically generated. | ||
# It is not intended for manual editing. | ||
version = 1 | ||
|
||
[[packages]] | ||
name = "wasi:http" | ||
registry = "wasi.dev" | ||
|
||
[[packages.versions]] | ||
requirement = "=0.2.2" | ||
version = "0.2.2" | ||
digest = "sha256:a1f129cdf1fde55ec2d4ae8d998c39a7e5cf7544a8bd84a831054ac0d2ac64dd" | ||
|
||
[[packages]] | ||
name = "wasi:keyvalue" | ||
registry = "wasi.dev" | ||
|
||
[[packages.versions]] | ||
requirement = "=0.2.0-draft" | ||
version = "0.2.0-draft" | ||
digest = "sha256:f5afa14646d3f32cee23106add8d7da53774083fef32f5648176aee7be61d36b" | ||
|
||
[[packages]] | ||
name = "wasi:logging" | ||
registry = "wasi.dev" | ||
|
||
[[packages.versions]] | ||
requirement = "=0.1.0-draft" | ||
version = "0.1.0-draft" | ||
digest = "sha256:09621a45b12b0a9cddc798517f778aac0e5ae4bd234077b3d70758d6cf625580" | ||
|
||
[[packages]] | ||
name = "wasmcloud:messaging" | ||
registry = "wasmcloud.com" | ||
|
||
[[packages.versions]] | ||
requirement = "=0.2.0" | ||
version = "0.2.0" | ||
digest = "sha256:bd2182f0a304b9a54a6b363f2f655422c8c0f00a03073c0195f1614a92dfdc7b" | ||
|
||
[[packages]] | ||
name = "wasmcloud:postgres" | ||
registry = "wasmcloud.com" | ||
|
||
[[packages.versions]] | ||
requirement = "=0.1.1-draft" | ||
version = "0.1.1-draft" | ||
digest = "sha256:8bb72ea90cecb5c87e463da8c1a7642b61a44e6c7993fcab6112c03f44a9140a" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...onents/rust/http-controller/wit/world.wit → ...-components/http-controller/wit/world.wit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ponents/rust/inventory-service/src/lib.rs → wasm-components/inventory-service/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name = "inventory-service" | ||
version = "0.1.0" | ||
language = "rust" | ||
type = "component" | ||
|
||
[component] | ||
wit_world = "inventory-service" | ||
wasm_target = "wasm32-wasi" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package platform-poc:inventory@0.1.0; | ||
|
||
world service { | ||
import wasmcloud:postgres/query@0.1.1-draft; | ||
import wasi:logging/logging@0.1.0-draft; | ||
|
||
export inventory; | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ents/rust/notification-service/src/lib.rs → ...omponents/notification-service/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...s/rust/notification-service/wit/world.wit → ...onents/notification-service/wit/world.wit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...components/rust/orders-service/src/lib.rs → wasm-components/orders-service/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...nts/rust/inventory-service/wasmcloud.toml → ...-components/orders-service/wasmcloud.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name = "inventory-service" | ||
name = "orders-service" | ||
version = "0.1.0" | ||
language = "rust" | ||
type = "component" | ||
|
||
[component] | ||
wit_world = "inventory-service" | ||
wit_world = "orders-service" | ||
wasm_target = "wasm32-wasi" | ||
|
||
[[registry.pull.sources]] | ||
target = "platform-poc:inventory" | ||
source = "file://../../wit/inventory" | ||
source = "file://../inventory-service/wit" |
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
...ponents/rust/orders-service/wit/world.wit → wasm-components/orders-service/wit/world.wit
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package platform-poc:orders-service; | ||
package platform-poc:orders@0.1.0; | ||
|
||
world orders-service { | ||
world service { | ||
import wasi:logging/logging@0.1.0-draft; | ||
import wasmcloud:postgres/query@0.1.1-draft; | ||
import wasmcloud:messaging/consumer@0.2.0; | ||
|
||
import platform-poc:inventory/inventory@0.1.0; | ||
|
||
export platform-poc:orders/orders@0.1.0; | ||
export orders; | ||
} |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...mponents/rust/products-service/src/lib.rs → wasm-components/products-service/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package platform-poc:products@0.1.0; | ||
|
||
world service { | ||
import wasi:keyvalue/store@0.2.0-draft; | ||
import wasi:logging/logging@0.1.0-draft; | ||
|
||
export products; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[toolchain] | ||
components = ["rust-src"] | ||
targets = ["wasm32-wasip2"] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
|
||
cargo clean | ||
fd --type dir deps -x rm -rf | ||
rm -rf */build |
File renamed without changes.
File renamed without changes.