Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(core-backend): Remove host proc macro #3342

Merged
merged 40 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
3721a9a
Hide gas counter in macro
ark0f Sep 20, 2023
b0db5a9
Initial design
ark0f Sep 22, 2023
18fcb8b
Infallible sys-call support
ark0f Sep 22, 2023
dd7e214
Support value returning sys-calls
ark0f Sep 22, 2023
14c0eed
Check specific sys-calls are supported
ark0f Sep 22, 2023
47e66a1
Reorganize content
ark0f Sep 22, 2023
c9f369d
Pass value from sys-calls
ark0f Sep 22, 2023
5a7264d
Move `FallibleSysCallError`
ark0f Sep 22, 2023
08861cb
Check env can be built
ark0f Sep 22, 2023
d277f6f
Port all sys-calls to the new design
ark0f Sep 22, 2023
fec3144
Introduce `maybe_with_gas` constructor for packets
ark0f Sep 22, 2023
2bab838
Remove `host` backend macro
ark0f Sep 22, 2023
cd528fa
Remove obsolete comment
ark0f Sep 22, 2023
8a12d4e
Fix gasfull costs are forgotten
ark0f Sep 22, 2023
def32c0
`SysCallFabric` -> `SysCallBuilder`
ark0f Sep 24, 2023
30b9697
Lower trait bound requirements
ark0f Sep 24, 2023
722d0cf
Move and rename `SandboxValue` into funcs.rs
ark0f Sep 24, 2023
aefa730
Trace log sys-calls
ark0f Sep 24, 2023
cbe6963
Make traits crate public
ark0f Sep 25, 2023
73d9d64
Don't create caller in macro
ark0f Sep 26, 2023
f7cd9cb
Rename builder generics
ark0f Sep 26, 2023
3a62d20
Add comment to `wrap_syscall`
ark0f Sep 26, 2023
e83d3c9
Merge remote-tracking branch 'origin/master' into al/no-host-proc-macro
ark0f Oct 5, 2023
151921f
Add comment for `impl_syscall_builder`
ark0f Oct 5, 2023
638e863
Refactor `InitPacket` constructors
ark0f Oct 5, 2023
64cf960
Merge remote-tracking branch 'origin/master' into al/no-host-proc-macro
ark0f Oct 18, 2023
0fb6821
Return `#[track_caller]` back for `prepare`
ark0f Oct 18, 2023
8a53782
Move log entities into special module
ark0f Oct 18, 2023
b796d33
Use `Gas` alias
ark0f Oct 18, 2023
b1631d1
Remove accidental comment
ark0f Oct 18, 2023
e09e69f
Import `Caller`
ark0f Oct 18, 2023
188e7dd
Turn `FallibleSysCall` into structure
ark0f Oct 18, 2023
84c3348
Turn `InfallibleSysCall` into structure
ark0f Oct 18, 2023
e0c21c6
Turn `SimpleSysCall` into structure
ark0f Oct 18, 2023
fd928f2
`SimpleSysCall` -> `RawSysCall`
ark0f Oct 18, 2023
ca927b2
Add some docs
ark0f Oct 18, 2023
0c5bbb9
Use `Gas` alias in some other places too
ark0f Oct 18, 2023
20f53cf
Rename generics
ark0f Oct 18, 2023
e870d2d
Rename generics in `execute`
ark0f Oct 18, 2023
bc0e5b5
Merge remote-tracking branch 'origin/master' into al/no-host-proc-macro
ark0f Oct 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ members = [
"common/codegen",
"core",
"core-backend",
"core-backend/codegen",
"core-processor",
"core-errors",
"examples/async",
Expand Down Expand Up @@ -196,7 +195,6 @@ gsys = { path = "gsys" }
gtest = { path = "gtest" }
gmeta = { path = "gmeta" }
gear-authorship = { path = "node/authorship" }
gear-core-backend-codegen = { path = "core-backend/codegen" }
gear-core-backend = { path = "core-backend", default-features = false }
gear-call-gen = { path = "utils/call-gen" }
gear-common = { path = "common", default-features = false }
Expand Down
1 change: 0 additions & 1 deletion core-backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ repository.workspace = true
[dependencies]
gear-core.workspace = true
gear-core-errors = { workspace = true, features = ["codec"] }
gear-core-backend-codegen.workspace = true
gear-lazy-pages-common.workspace = true
gsys = { workspace = true }

Expand Down
19 changes: 0 additions & 19 deletions core-backend/codegen/Cargo.toml

This file was deleted.

265 changes: 0 additions & 265 deletions core-backend/codegen/src/host.rs

This file was deleted.

Loading