edjx function build
Builds the sample function after using the function init command.
You must be in the function directory to execute this command, that is, the directory that contains the edjconfig.yaml
file.
Options
Option | Required | Type | Description |
---|---|---|---|
|
No |
string |
Directory to store all generated artifacts. |
Global Flags
Option | Required | Type | Description |
---|---|---|---|
|
No |
Displays inline help for the command. |
|
|
No |
string |
Location of client configuration file (default file path is |
Build a Rust function
-
Set the organization to be associated with all EDJX operations.
edjx config organization -i
If no organizations display, create one using EdjConsole.
-
Create an application.
edjx application create -n <string>
-
Set the application to be associated with any new functions.
edjx config application -i
-
Create a function within the application.
If you already have the function code, skip to step 4b.-
Create the directory and set the function parameters.
edjx function init <string> Function Name: project00 ✔ WASM ✔ Rust ✔ HTTP ✔ 30 ✔ 64 Setting up project with starter files...... Project successfully initialized in project directory
-
Change to the function directory.
cd <function-directory>
-
Open VS Code.
code .
VS Code displays the directory and files of your function.
-
Modify the code as desired.
-
-
Execute the build command to build the function based on the .wasm file you created.
edjx function build
The default build location is
/home/<username>/<function-name>/target/wasm32-unknown-unknown/release/<newwasmfile>.wasm
.
Build a C++ function
-
Set the organization ID associated with all EDJX operations.
edjx config organization -i
If no organizations display, create one using EdjConsole.
-
Create an application.
edjx application create -n <string>
-
Set the application ID to be associated with any new functions.
edjx config application -i
-
Create a function within the application.
If you already have the function code, skip to step 4b.-
Create the directory and set the function parameters.
edjx function init <string> Function Name: project01 ✔ WASM ✔ C++ ✔ HTTP ✔ 30 ✔ 64 Setting up project with starter files...... Project successfully initialized in project directory
-
Change to the function directory.
cd <function-directory>
-
Open VS Code.
code .
VS Code displays the directory and files of your function.
-
Modify the code as desired.
-
-
Execute the build command to build the function based on the .wasm file you created.
edjx function build
The default build location is
/home/<username>/<function-name>/bin/<newwasmfile>.wasm
.