-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting up native tasks for identity worker (#3129)
* initial setup direct call requests * adding direct call request handler init * fixing typo * adding io handler * fixing dependencies * fixing build * cleaning up unused code * fixing fmt issue * extracting types * fixing typo * renaming DirectCallTask to NativeRequest * refactoring names and improving error responses * refactor: replace unwrap with expect in thread spawns * fixing taplo issue * Revert "refactor: replace unwrap with expect in thread spawns" This reverts commit 3485f04.
- Loading branch information
Showing
12 changed files
with
704 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
67 changes: 67 additions & 0 deletions
67
tee-worker/identity/litentry/core/native-task/receiver/Cargo.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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
[package] | ||
name = "lc-native-task-receiver" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
futures = { workspace = true, optional = true } | ||
futures_sgx = { workspace = true, features = ["thread-pool"], optional = true } | ||
sgx_tstd = { workspace = true, features = ["net", "thread"], optional = true } | ||
|
||
|
||
codec = { package = "parity-scale-codec", workspace = true } | ||
log = { workspace = true } | ||
sp-core = { workspace = true, features = ["full_crypto"] } | ||
|
||
ita-sgx-runtime = { package = "id-ita-sgx-runtime", path = "../../../../app-libs/sgx-runtime", default-features = false } | ||
ita-stf = { package = "id-ita-stf", path = "../../../../app-libs/stf", default-features = false } | ||
itp-enclave-metrics = { workspace = true } | ||
itp-extrinsics-factory = { workspace = true } | ||
itp-node-api = { workspace = true } | ||
itp-ocall-api = { workspace = true } | ||
itp-sgx-crypto = { workspace = true } | ||
itp-sgx-externalities = { workspace = true } | ||
itp-stf-executor = { package = "id-itp-stf-executor", path = "../../../../core-primitives/stf-executor", default-features = false } | ||
itp-stf-primitives = { workspace = true } | ||
itp-stf-state-handler = { workspace = true } | ||
itp-top-pool-author = { package = "id-itp-top-pool-author", path = "../../../../core-primitives/top-pool-author", default-features = false } | ||
itp-types = { workspace = true } | ||
|
||
frame-support = { workspace = true } | ||
lc-data-providers = { workspace = true } | ||
lc-dynamic-assertion = { workspace = true } | ||
lc-native-task-sender = { workspace = true } | ||
litentry-macros = { workspace = true } | ||
litentry-primitives = { workspace = true } | ||
|
||
[features] | ||
default = ["std"] | ||
sgx = [ | ||
"futures_sgx", | ||
"sgx_tstd", | ||
"ita-stf/sgx", | ||
"itp-top-pool-author/sgx", | ||
"sp-core/full_crypto", | ||
"litentry-primitives/sgx", | ||
"itp-node-api/sgx", | ||
"itp-extrinsics-factory/sgx", | ||
"lc-native-task-sender/sgx", | ||
] | ||
std = [ | ||
"futures", | ||
"log/std", | ||
"ita-stf/std", | ||
"itp-types/std", | ||
"itp-top-pool-author/std", | ||
"itp-stf-primitives/std", | ||
"itp-extrinsics-factory/std", | ||
"sp-core/std", | ||
"litentry-primitives/std", | ||
"ita-sgx-runtime/std", | ||
"frame-support/std", | ||
"itp-node-api/std", | ||
"lc-native-task-sender/std", | ||
] | ||
development = [ | ||
"litentry-macros/development", | ||
] |
Oops, something went wrong.