forked from codefromthecrypt/iota
-
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.
TinyGo Native Iotas and Code Generation enhancements (#49)
* TinyGo Code generation enhancements and expanded testing scenarios in Apex * Removing returned instances until the spec if fleshed out * Version bump apexlang_codegen
- Loading branch information
Showing
66 changed files
with
10,576 additions
and
1,273 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
/testdata/*/actual/* | ||
|
||
# compiled output | ||
bundle.js | ||
dist | ||
tmp | ||
/out-tsc | ||
|
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,6 +1,7 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"deno.enable": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "denoland.vscode-deno" | ||
} | ||
} | ||
} |
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,11 @@ | ||
tasks: | ||
build: | ||
cmds: | ||
- deno bundle src/mod.ts bundle.js | ||
|
||
test: | ||
cmds: | ||
- deno fmt --check src/ test/ | ||
- deno lint src/ | ||
- deno check --unstable src/mod.ts | ||
- deno test --allow-env test/utils.test.ts |
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 |
---|---|---|
@@ -1 +1 @@ | ||
export * from "https://deno.land/x/[email protected].6/go/mod.ts"; | ||
export * from "https://deno.land/x/[email protected].9/go/mod.ts"; |
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 +1 @@ | ||
export * from "https://deno.land/x/[email protected].6/mod.ts"; | ||
export * from "https://deno.land/x/[email protected].9/mod.ts"; |
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 +1 @@ | ||
export * from "https://deno.land/x/[email protected].6/rust/mod.ts"; | ||
export * from "https://deno.land/x/[email protected].9/rust/mod.ts"; |
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 +1 @@ | ||
export * from "https://deno.land/x/[email protected].6/utils/mod.ts"; | ||
export * from "https://deno.land/x/[email protected].9/utils/mod.ts"; |
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 +1 @@ | ||
export * from 'https://deno.land/x/[email protected].2/mod.ts'; | ||
export * from "https://deno.land/x/[email protected].3/mod.ts"; |
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 +1 @@ | ||
export * from "https://deno.land/x/[email protected].2/model/mod.ts"; | ||
export * from "https://deno.land/x/[email protected].3/model/mod.ts"; |
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,7 +1,7 @@ | ||
import { | ||
Configuration, | ||
TaskDefinition, | ||
} from "https://deno.land/x/[email protected].15/src/config.ts"; | ||
} from "https://deno.land/x/[email protected].18/src/config.ts"; | ||
import * as apex from "../deps/core/mod.ts"; | ||
import * as rust from "../deps/codegen/rust.ts"; | ||
import { Context, Operation } from "../deps/core/model.ts"; | ||
|
@@ -37,9 +37,12 @@ export default function ( | |
config.config.name ||= module; | ||
try { | ||
const cargoToml = Deno.readTextFileSync("./Cargo.toml"); | ||
// deno-lint-ignore no-explicit-any | ||
const cargo = parse(cargoToml) as any; | ||
config.config.name ||= cargo.package.name; | ||
} catch {} | ||
} catch { | ||
// Ignore | ||
} | ||
if (!config.config.name) { | ||
throw new Error( | ||
"No name provided in config, and no Cargo.toml found with a name", | ||
|
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
import { | ||
Context, | ||
Interface, | ||
Kind, | ||
ObjectMap, | ||
Operation, | ||
Stream, | ||
|
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,4 +1,4 @@ | ||
import { Template } from "https://deno.land/x/[email protected].15/src/config.ts"; | ||
import { Template } from "https://deno.land/x/[email protected].18/src/config.ts"; | ||
|
||
const template: Template = { | ||
info: { | ||
|
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,4 +1,4 @@ | ||
import { Template } from "https://deno.land/x/[email protected].15/src/config.ts"; | ||
import { Template } from "https://deno.land/x/[email protected].18/src/config.ts"; | ||
|
||
const template: Template = { | ||
info: { | ||
|
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,3 +1,3 @@ | ||
{ | ||
"recommendations": ["apexlang.apexlang"] | ||
} | ||
} |
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,7 +2,7 @@ | |
import { | ||
FSStructure, | ||
Template, | ||
} from "https://deno.land/x/[email protected].15/src/config.ts"; | ||
} from "https://deno.land/x/[email protected].18/src/config.ts"; | ||
|
||
const importUrl = new URL(".", import.meta.url); | ||
function urlify(relpath: string): string { | ||
|
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,3 +1,8 @@ | ||
{ | ||
"task.allowAutomaticTasks": "on" | ||
"task.allowAutomaticTasks": "on", | ||
"editor.formatOnSave": true, | ||
"deno.enable": true, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "denoland.vscode-deno" | ||
} | ||
} |
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,7 +2,7 @@ | |
import { | ||
FSStructure, | ||
Template, | ||
} from "https://deno.land/x/[email protected].15/src/config.ts"; | ||
} from "https://deno.land/x/[email protected].18/src/config.ts"; | ||
|
||
const importUrl = new URL(".", import.meta.url); | ||
function urlify(relpath: string): string { | ||
|
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
Oops, something went wrong.