Commit b71eaa9
authored
Move runtime cargo (#1422)
Builds on top of #1420 and in turn of #1411
It finishes moving `crates/codegen/runtime/cargo/crate` to the
`solidity_crate`. Notes on changes:
* The former `src/generated` folder that contained the cst, parser, etc
is renamed to `src/slang`.
* The generation of IR languages posed a challenge: their generation
can't be inlined, as from the same set of templates we generate various
IR languages. This PR replaces the logic to keep the same naming
convention that with the inlined templates: instead of
`<ir>/generated/<template_name>.rs` it generates
`<ir>/<template_name>.generated.rs`.
* There are no more stubs, therefore, a check is added in each IR
template to ensure that it's being generated with the proper model.
Otherwise, an empty string is generated, which isn't written into a
file.
~Note: It can be easily adapted to be independent of #1420 (but not of
#1411). It can also be split in two, with the last commit being in a
different PR. But It's probably OK as is.~1 parent a8cde52 commit b71eaa9
File tree
179 files changed
+971
-4474
lines changed- crates
- codegen
- generator
- src
- ast
- bindings
- ir
- kinds
- parser
- codegen
- grammar
- runner
- src
- runtime/cargo/crate
- src
- extensions
- bindings
- compilation
- utils
- ir
- generated
- runtime
- bindings
- generated
- compilation
- cst
- generated
- parser
- generated
- utils
- generated
- infra
- cli/src/toolchains/wasm
- utils/src/codegen
- solidity/outputs/cargo
- crate
- src
- backend
- l1_structured_ast
- l2_flat_contracts
- bindings
- compilation
- cst
- diagnostic
- extensions
- bindings
- generated
- compilation
- cst
- diagnostic
- parser
- lexer
- parser_support
- scanner_macros
- utils
- ir
- parser
- lexer
- parser_support
- scanner_macros
- utils
- tests
- version
- tests/src/bindings
- bindings_output
- wasm/src
- interface
- wasm_crate
- wrappers
- ast
- bindings
- compilation
- cst
- parser
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
179 files changed
+971
-4474
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | 20 | | |
24 | 21 | | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
28 | 25 | | |
29 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | | - | |
17 | | - | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
| |||
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | 53 | | |
56 | 54 | | |
57 | 55 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments